Also updated the vQmod collection file: quick explanation for newbie.Qphoria wrote:Ok I cleaned up the first post to make it easier to understand (i hope):
http://forum.opencart.com/viewtopic.php ... 15#p120715
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
Is there a way to script a minimum OC version requirement for VQM scripts? For example, let's say we have a script that requires v1.4.9.1 or higher. Is there a way to code that so if someone was to try to install it on 1.4.8 or lower, it just wouldn't run? Or better yet, produce a dialog saying "You need at least v1.4.9.x to run this mod."?
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
I can't change to 777, I can't do anything on vqcache folder. And although it's 755 it's "fle (0755)", while others are "flcdmpe (0755)".Qphoria wrote:They autodelete for you but you should always have rights with 755 or just change the folder to 777Lao wrote:Q, can you tell me how can I delete files in vqcache folder? Right now permissions of this folder are "fle (755)" and I can't change them.
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
Then get a new host.. You should have full control of your own foldersLao wrote:I can't change to 777, I can't do anything on vqcache folder. And although it's 755 it's "fle (0755)", while others are "flcdmpe (0755)".Qphoria wrote:They autodelete for you but you should always have rights with 755 or just change the folder to 777Lao wrote:Q, can you tell me how can I delete files in vqcache folder? Right now permissions of this folder are "fle (755)" and I can't change them.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
And that is just fine and normal. Most hosts are going to 0755 max chmod but that doesnt prevent reading or writing. But if he cant even delete files from ftp or cpanel then he needs a new host. vQmod files are text files like any other.Xsecrets wrote:yeah his host probably does not run either suphp or fastcgi and files written by the server are probably owned by the server user instead of the user most hosts have moved to one of the two where this does not happen, because it helps with security at the same time.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I started up a little collection http://gitorious.org/opencart-patches/o ... ster/vqmod. Some need a few additional files that I'll commit soon. non_us_paypal_phone.xml maybe should go in as a fix however the framework for maintainable modifications is really good. Thank you.
Awesome great to see its working so well. A lot of nice vQmod scripts theregrooverdan wrote:Nice work Qphoria!
I started up a little collection http://gitorious.org/opencart-patches/o ... ster/vqmod. Some need a few additional files that I'll commit soon. non_us_paypal_phone.xml maybe should go in as a fix however the framework for maintainable modifications is really good. Thank you.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
For now you can use http://tinyurl.com/vqmodoc
I am having trouble enabling logging to a non-default location (I do not want to open write permissions to the root folder of my site). I want to put the log file in the 'vqcache' directory.
I added the following to my index.php file but no log file is being created.
Code: Select all
require_once('./vqmod.php');
$vqmod = new VQMod('./vqmod');
$vqmod->logFilePath = './vqcache/vqmod.log';
$vqmod->logging = TRUE;
First of all, well done!!! This is a fantastic tool and an amazing achievement.
Just to chime in my 2 pennies.
Would it be possible to add functionality so that a developer can create a list of dependant files with relative filename and location for a mod in the xml file.
For example, the "At-a-glance" mod requires several other files to run and is not just a code addition.
This way we could create an GUI for the cart backend where we can list all VQmod scripts and if we choose to delete a script, we can delete all of the dependant files too and keep the cart directories clean?
Cheers
Gaz
Hmm.... perhaps something like:dry_flood wrote:Hey
First of all, well done!!! This is a fantastic tool and an amazing achievement.
Just to chime in my 2 pennies.
Would it be possible to add functionality so that a developer can create a list of dependant files with relative filename and location for a mod in the xml file.
For example, the "At-a-glance" mod requires several other files to run and is not just a code addition.
This way we could create an GUI for the cart backend where we can list all VQmod scripts and if we choose to delete a script, we can delete all of the dependant files too and keep the cart directories clean?
Cheers
Gaz
Code: Select all
<dependents>
catalog/controller/module/xxx.php
catalog/model/catalog/xxx.php
</dependents>
Code: Select all
<dependent file="catalog/controller/module/xxx.php" />
<dependent file="catalog/model/catalog/xxx.php" />
I am going to change that a bit because you are right.. tho it should actually create 2 log files.. one when the construct loads with the root path, and then one when the new path is set. But no matter, I shouldn't have it creating the log in the construct because it prevents the setting of a diff file path that way. For now the only way is in the code. I'll fix that for 1.0.7daymobrew wrote:Excellent extension - I was dreading maintaining core file modifications across updates.
I am having trouble enabling logging to a non-default location (I do not want to open write permissions to the root folder of my site). I want to put the log file in the 'vqcache' directory.
I added the following to my index.php file but no log file is being created.It works when I modify the $logFilePath in vqmod.php but that is obviously not the best idea.Code: Select all
require_once('./vqmod.php'); $vqmod = new VQMod('./vqmod'); $vqmod->logFilePath = './vqcache/vqmod.log'; $vqmod->logging = TRUE;
I am also going to change the default directory structure a bit like I show in this post to keep things cleaner and more self contained
v1.0.7 - 2011-JAN-18
- Default directory structure changed to put everything inside the /vqmod/ folder
- xml files are now moved to /vqmod/xml/*.xml
- Redesigned the construct to be simpler
- Construct no longer requires a path or log option
- New init() function handles initialization
- Improved log function to use file_put_contents instead of fopen
- Set logging = true by default
ATTENTION!
THIS UPDATE WILL REQUIRE SOME CHANGES IF YOU ARE UPGRADING FROM A PREVIOUS VERSION OF VQMOD!
READ THE opencart_install.txt FILE FOR THE UPGRADE STEPS.
This change will also fix the issue shown above. The new syntax will be:
Code: Select all
require_once('./vqmod/vqmod.php'); <-- Moved class inside the /vqmod/ folder
$vqmod = new VQMod(); <-- No more params for the instantiation. Logging enabled by default
$vqmod->logFilePath = './vqcache/vqmod.log'; <-- This works but the log was moved already so you won't need it.
$vqmod->logging = FALSE; <-- Specifically set this if you want to disable logging
Have created more than 50 <modification>s for my system and modules over the past few days.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Users browsing this forum: No registered users and 100 guests