Page 1 of 1

How to edit an ocmod?

Posted: Tue Jul 12, 2016 9:07 pm
by labeshops
I'm great with vqmods, haven't clue on ocmod.

How do you change one like the file it effects (my custom template instead of default), or change the position of something it adds to a template, etc?

After you install the ocmod thru the modification installer, what happens? Is there a folder similar to the vqmod/xml one somewhere these files go into that I can edit them to make simple changes like the above?? Been looking all over the place and cannot seem to find anything like this.

Re: How to edit an ocmod?

Posted: Tue Jul 12, 2016 10:48 pm
by OSWorX
Answering the subject of this post: simply use an editor ... O0
Okay back to what you want to know.

1. code of OCMods are stored in the database (see table modification)
2. important differences of the code are:

2.1 use path instead name, e.g.

Code: Select all

<file path="admin/view/template/setting/setting.tpl">
2.2 usage of the xml.tag code as identificator (must be unique) e.g.

Code: Select all

<code>name_of_the_mod</code>
2.3 positions are added at the add tag (was before search) e.g.

Code: Select all

<add position="after">
3. if you want to have a link back to the creator, use the xml.tag link in the header e.g.

Code: Select all

<link>https://mysite.com</link>
(will be displayed at the ocmods-summary)

4. editing a ocmod could be done - without any additional tool - only directly in the database (if you want to have a tool to make edits through the admin interface, just pm me)
5. important: OCMods can be dis- and enabled through the admin interface (while vqmods have to be dis- & enabled by FTP or additonal tools like VQMod-Manager)
6. finally: after dis- or enabling any ocmod, the button Refresh has to hit (will clear also cached files)

That are the most basic differences, if I forgot one maybe someone can add it.

Re: How to edit an ocmod?

Posted: Tue Jul 12, 2016 11:26 pm
by labeshops
ah thank you. the part about it being stored in the database is what I was missing :) Kept trying to find it in the files like vqmods do. Now it makes much more sense.

Re: How to edit an ocmod?

Posted: Mon Jul 25, 2016 12:40 am
by cyclops12
you should find them in oc_modification table