Osclass Community Market Osclass Community Market Osclass Community Market
September 20, 2020, 12:38:08 am

News:

Osclass 3.9 released!


vQmod for Osclass

Started by adrianolmedo, January 31, 2020, 08:47:23 pm

Previous topic - Next topic

adrianolmedo

January 31, 2020, 08:47:23 pm Last Edit: February 09, 2020, 03:26:47 am by adrianolmedo
vQmod for Osclass


An adaptation inspired in the vQmod of OpenCart. ¡Now for Osclass!


What is vQmod?

vQmod™ (aka Virtual Quick Mod) is an override system designed to avoid having to change core files. Instead of making changes to the core files directly, the changes are created as xml search/replace script files. The original source file is never altered. This results in a "virtual" change to the core during execution without any actual modification to the core files.

Visit the vQmod™ official project in Github to know more.


Installation

  • Download vQmod for Osclass.
  • Install uploading in your Osclass.
  • Go to the 'Manage mods' tab and click in 'Enable' button. It's all!


Usage

  • Click in 'Manage mods' tab, then clic in 'Add mod file'.
  • Select and upload a zip file that contains the mod's xml file.
  • Enable the xml file.


Test a mod

Show premium items first in Dashboard and Public profile.
Download: show-premium-items-first-mod.zip

Visit How to make vQmod Scripts and learn some Examples.


vQmod scripts Wiki

  • IMPORTANT - To make mods aimed at specifically modifying another Osclass plugin, it is recommended that the name of the xml file SHOULD BE THE SAME NAME AS THE FOLDER of the target plugin. If you uninstall the target plugin, the mod xml will automatically be disabled, and the cache will be purged as well.

For more information about it, visit How to make vQmod Scripts and learn some Examples.


Links

Github page of vQmod for Osclass
https://github.com/codexilab/osclass-vqmod

vQmod for Osclass releases
https://github.com/codexilab/osclass-vqmod/releases

Github page of vQmod™ project
https://github.com/vqmod/vqmod

vQmod official wiki
https://github.com/vqmod/vqmod/wiki

marius-ciclistu

Nice. On the old forum I asked about this because I had to make very many changes in the core to fix bugs and create new functionalities. Now it is not the case anymore, for me at least:)

Web-Media

Congratulations !
One thing  at first look .  Do not bring admin functions into front side .
Wrap in a class and make it available when OC_ADMIN is defined and true

adrianolmedo

Quote from: marius-ciclistu on January 31, 2020, 09:43:46 pmNice. On the old forum I asked about this because I had to make very many changes in the core to fix bugs and create new functionalities. Now it is not the case anymore, for me at least:)

It had also occurred to me, until I got to work. Better late than never.

adrianolmedo

Quote from: Web-Media on January 31, 2020, 10:38:40 pmCongratulations !
One thing  at first look .  Do not bring admin functions into front side .
Wrap in a class and make it available when OC_ADMIN is defined and true

@Web-Media Gracias por la observación ¿podrías indicar específicamente en qué parte haría eso, o dónde fue mi descuido? Mencionaré tu aporte en el código junto a tu cuenta en Github. Sí quieres colaborar directamente en el código, estaré agradecido también.

Web-Media

Manos a  la obra !  Le echaré un vistazo.

WEBmods

This is pretty much a gamechanger. I'll check it out ASAP!
Like my work? Buy me a coffee or request a quote for custom development.

adrianolmedo

@Web-Media @WEBmods I have released a new version with considerable improvements.

CHANGELOG:

vQmod for Osclass 1.2 2019-02-03
----------------------
- vqmod folder is relocated to the root
- Installation/uninstallation vQmod is more robust
- Changed name of variables, constants and some functions to avoid confusion to developers
- Fixed issue with button links that redirect to blank page
- Fixed other small issues

Osclass user

February 19, 2020, 11:08:41 am #8 Last Edit: February 19, 2020, 12:01:04 pm by Osclass user
Quote from: adrianolmedo on February 03, 2020, 10:10:40 am@Web-Media @WEBmods I have released a new version with considerable improvements.

CHANGELOG:

vQmod for Osclass 1.2 2019-02-03
----------------------
- vqmod folder is relocated to the root
- Installation/uninstallation vQmod is more robust
- Changed name of variables, constants and some functions to avoid confusion to developers
- Fixed issue with button links that redirect to blank page
- Fixed other small issues

@adrianolmedo
Thank you very much for this great job!

1. How can i move vQmod folder from osclass root to vQmod plugin folder? (I want to keep all vQmod stuff in vQmod plugin folder)

2. Can i use "offset" with (after)?
Example: <search position="after" offset="7">

3. Is there vQmod for phpBB?

Thank you
Regards

adrianolmedo

February 19, 2020, 12:24:55 pm #9 Last Edit: February 19, 2020, 12:36:49 pm by adrianolmedo
Quote from: Osclass user on February 19, 2020, 11:08:41 am
Quote from: adrianolmedo on February 03, 2020, 10:10:40 am@Web-Media @WEBmods I have released a new version with considerable improvements.

CHANGELOG:

vQmod for Osclass 1.2 2019-02-03
----------------------
- vqmod folder is relocated to the root
- Installation/uninstallation vQmod is more robust
- Changed name of variables, constants and some functions to avoid confusion to developers
- Fixed issue with button links that redirect to blank page
- Fixed other small issues

@adrianolmedo
Thank you very much for this great job!

1. How can i move vQmod folder from osclass root to vQmod plugin folder? (I want to keep all vQmod stuff in vQmod plugin folder)

2. Can i use "offset" with (after)?
Example: <search position="after" offset="7">

3. Is there vQmod for phpBB?

Thank you

@Osclass user

1. The only recoverable from the root vqmod folder is the xml files. The xml files are the ones that automatically generate or restore the rest of the files in the vqmod folder. I could enable the option to directly download the xml.

2. Yes, I have also used it that way. In the next update there will be a help page to create vQmod scripts. With advanced, specific advice that I had with my experience in vQmod.

3. I would have to observe if the phpBB structure is "vQmodable", for now vQmod for Osclass is an enterprise of its own.

Osclass user

Quote from: adrianolmedo on February 19, 2020, 12:24:55 pm
Quote from: Osclass user on February 19, 2020, 11:08:41 am
Quote from: adrianolmedo on February 03, 2020, 10:10:40 am@Web-Media @WEBmods I have released a new version with considerable improvements.

CHANGELOG:

vQmod for Osclass 1.2 2019-02-03
----------------------
- vqmod folder is relocated to the root
- Installation/uninstallation vQmod is more robust
- Changed name of variables, constants and some functions to avoid confusion to developers
- Fixed issue with button links that redirect to blank page
- Fixed other small issues

@adrianolmedo
Thank you very much for this great job!

1. How can i move vQmod folder from osclass root to vQmod plugin folder? (I want to keep all vQmod stuff in vQmod plugin folder)

2. Can i use "offset" with (after)?
Example: <search position="after" offset="7">

3. Is there vQmod for phpBB?

Thank you

@Osclass user

1. The only recoverable from the root vqmod folder is the xml files. The xml files are the ones that automatically generate or restore the rest of the files in the vqmod folder. I could enable the option to directly download the xml.

2. Yes, I have also used it that way. In the next update there will be a help page to create vQmod scripts. With advanced, specific advice that I had with my experience in vQmod.

3. I would have to observe if the phpBB structure is "vQmodable", for now vQmod for Osclass is an enterprise of its own.


Thank you @adrianolmedo
You didn't answer my first question!
1. I don't want to have vQmod folder in osclass root. I want all the folders and contents of vQmod be in plugin folder. How can i do that?
Thanks
Regards

adrianolmedo

QuoteYou didn't answer my first question!
1. I don't want to have vQmod folder in osclass root. I want all the folders and contents of vQmod be in plugin folder. How can i do that?
Thanks

The first versions of this plugin worked like this, but you had to write the path like this: ../../../oc-admin/~

And the checked.cache file grew enormously because it generated duplicate lines.

I had to patch the code of vqmod.php.

Investigating more about how vQmod worked best, it is recommended that the vqmod folder be at the root, so it works in OpenCart and any other installation.

Osclass user

Quote from: adrianolmedo on February 19, 2020, 10:01:57 pm
QuoteYou didn't answer my first question!
1. I don't want to have vQmod folder in osclass root. I want all the folders and contents of vQmod be in plugin folder. How can i do that?
Thanks

The first versions of this plugin worked like this, but you had to write the path like this: ../../../oc-admin/~

And the checked.cache file grew enormously because it generated duplicate lines.

I had to patch the code of vqmod.php.

Investigating more about how vQmod worked best, it is recommended that the vqmod folder be at the root, so it works in OpenCart and any other installation.


Got you. Then can we put all the vQmod contents in osclass root? Remove vQmod folder in plugin and make only one folder in osclass root?
Regards

adrianolmedo

Quote from: undefinedGot you. Then can we put all the vQmod contents in osclass root? Remove vQmod folder in plugin and make only one folder in osclass root?

@Osclass user , YES, it could be done, when it is installed for the first time, there could be an option to remove the vqmod folder from the plugin, so that there are no duplicate folders.

It could be a good idea.

Right now you can remove the vqmod folder from plugin folder manually, there would be no problems.

Osclass user

Quote from: adrianolmedo on February 19, 2020, 10:45:03 pm
Quote from: undefinedGot you. Then can we put all the vQmod contents in osclass root? Remove vQmod folder in plugin and make only one folder in osclass root?

@Osclass user , YES, it could be done, when it is installed for the first time, there could be an option to remove the vqmod folder from the plugin, so that there are no duplicate folders.

It could be a good idea.

Right now you can remove the vqmod folder from plugin folder manually, there would be no problems.

Yes, my suggestion is only create one folder for vQmod and put it in osclass root. And make a unique menu for vQmod in admin-panel.
vQmod plugin is NOT a good idea!
I will try to make this happen and upload it here for you to download!
Regards