Page 29 of 35
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Tue Jun 28, 2011 9:02 pm
by DannyMacD
madimar wrote:To be honest Danny, what difficulty you are encountering in vqmod installation? It is everything well written in the instructions... Trying to summarize:
1) copy vqmod folder in your server root (same level of catalog, admin, etc.)
2) open a browser and point to:
http://YOURSITE/vqmod/install
This is enough and it works 99%. For the rest of 1% you need some adjustements or manual installation (well documented too).
M
i have tried but im getting a 500 Internal Server Error when i visit the website..

Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Tue Jun 28, 2011 9:07 pm
by madimar
Ok, this is a good start... next step... to read first post of this discussion... in yellow!
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Tue Jun 28, 2011 9:09 pm
by DannyMacD
just read it haha. just got the message saying its installed (yay)
now to learn how to use it

thanks.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Wed Jun 29, 2011 1:34 am
by DannyMacD
wahoo! system seems to work well! thanks alot!
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Wed Jun 29, 2011 3:20 am
by Ski_K2
vQmod looks very interesting!
Downloaded and testing on OpenCart 1.5.0.5 and so far so good
Made donation today and will make another if I use OpenCart. 1.5.0.5 needs quite a bit more patching before I can use it on a live site!
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Thu Jul 07, 2011 4:33 pm
by uksitebuilder
Will vQmod work OK with the upcoming changes to the index.php files (as per SVN)
Or will new changes other than the existing need to be made to those files?
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Thu Jul 07, 2011 7:11 pm
by Qphoria
uksitebuilder wrote:Will vQmod work OK with the upcoming changes to the index.php files (as per SVN)
Or will new changes other than the existing need to be made to those files?
Don't see any major changes in index.php
It will work fine. Just remember to run the vqmod installer again after you upgrade opencart.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Fri Jul 08, 2011 10:30 am
by rph
Can VQMod not be used to add constants to config.php and admin/config.php? I'm getting no output for those files and no error log even though I've got the operation set to abort on fail.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Fri Jul 08, 2011 11:36 am
by Qphoria
rph wrote:Can VQMod not be used to add constants to config.php and admin/config.php? I'm getting no output for those files and no error log even though I've got the operation set to abort on fail.
By default, I leave the config file out of the installation step because I fear it could be used for bad, but I guess that is possible anyway.
If you want vQmod to work with config.php as well, you need to alter the placement and settings in the index.php files.
Change it from this:
Code: Select all
// Configuration
require_once('config.php');
// Install
if (!defined('DIR_APPLICATION')) {
header('Location: install/index.php');
exit;
}
//VirtualQMOD
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();
To this:
Code: Select all
//VirtualQMOD
require_once('./vqmod/vqmod.php');
$vqmod = new VQMod();
// Configuration
require_once($vqmod->modCheck('config.php'));
// Install
if (!defined('DIR_APPLICATION')) {
header('Location: install/index.php');
exit;
}
So you see, move the virtualQmod initialization above the configuration line
and change the configuration line require_once to have the modcheck
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sun Jul 10, 2011 1:18 am
by rph
Thanks Q. Makes sense. I'll have to look at another way of attacking this one to keep the code portable.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sun Jul 10, 2011 1:59 am
by JAY6390
Yeah. While it's possible, if you're planning a mod you wish to share with others, it's not going to be ideal
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sun Jul 10, 2011 2:48 am
by rph
I'm working on password salting. I took a random sampling of 30 customer passwords from the database and found 23 (76%) were easily cracked.
I've got the code implemented for myself so it's no big deal but I figured others might like it as well. Putting the salt in config.php seemed like the best solution since it's something you don't want people changing after it's set.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sun Jul 10, 2011 2:54 am
by JAY6390
True enough you don't want it altered, but it might be a better idea to simply put it in the startup.php file. That is the first file checked in every run, and its global to both the admin and catalog areas and would essentially do exactly as it would in the config file, just in a different one
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sun Jul 10, 2011 12:50 pm
by rph
Thanks for the idea Jay. I'll take a look at it.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sat Jul 23, 2011 9:04 pm
by i2Paq
Running 1.5.1 SVN 498 and I get blank screens on Storefront and Admin.
Edit:
Storefront loads OK now, nothing changed but a reload of the page.
The Admin shows a 500 Internal Server error, CHMOD 777 or 755.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sat Jul 23, 2011 9:52 pm
by exactweb
I am having a problem getting this to work by editing javascript files. Is this even possible, I see examples that it works for .tpl and .php files. I don't get any errors in the log file?
Code: Select all
<modification>
<id>Theme Changes</id>
<version>1.5.1</version>
<vqmver>1.5.1</vqmver>
<author>exact</author>
<file name="catalog/view/javascript/common.js">
<operation>
<search position="replace"><![CDATA[$('.success img, .warning img, .attention img, .information img').live('click', function() {]]></search>
<add><![CDATA[
$('.success img, .warning img, .attention img, .information img').live('click', function() {
myfunction($(this));
]]></add>
</operation>
</file>
</modification>
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sat Jul 23, 2011 9:55 pm
by fido-x
No. It doesn't work for the javascript files, or for the stylesheets. It only works with the controllers, models, language files and template files.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sat Jul 23, 2011 10:34 pm
by i2Paq
I tried the auto-install, it says it is successful but no changes to the index.php files are made.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sun Jul 24, 2011 3:05 am
by Qphoria
i2Paq wrote:I tried the auto-install, it says it is successful but no changes to the index.php files are made.
Then change your file permissions. If you run the vqmod install multiple times and it says "Successful" every time instead of saying "Already installed".. then that means the index.php files are write protected.
Re: [MOD] - VirtualQMod "vQmod" Virtual File Modification Sy
Posted: Sun Jul 24, 2011 3:11 am
by i2Paq
Qphoria wrote:i2Paq wrote:I tried the auto-install, it says it is successful but no changes to the index.php files are made.
Then change your file permissions. If you run the vqmod install multiple times and it says "Successful" every time instead of saying "Already installed".. then that means the index.php files are write protected.
I did, and they get not changed nor do I get anything else then "successful".
I could PM you my ftp logon.