Code: Select all
.....
<file name="catalog/controller/information/information.php">
<operation>
<search position="after"><![CDATA[public function {]]></search>
<add><![CDATA[
$this->load->helper('string');
]]></add>
</operation>
.....
</file>
.....
$this->load->helper('string'); after each public function {.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
well it probably didn't work since there is no "public function {" in that file. Granted with a regex you could do something like that, but I wouldn't call it a bug that it doesn't match non-existent text.JNeuhoff wrote:Another problem I'm having:
I was trying to add the lineCode: Select all
<file name="catalog/controller/information/information.php"> <operation> <search position="after"><![CDATA[public function {]]></search> <add><![CDATA[ $this->load->helper('string'); ]]></add> </operation> </file>
$this->load->helper('string'); after each public function {.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
I've not yet seen any spots where the logging hasn't work. If you can send me that part of the mod I can try it out in my debugger.. Normally it should say "OPERATION FAILED: NO MATCH FOR SEARCH" if it couldn't match. Same thing with your other mismatch for:JNeuhoff wrote:There is still an issue of not doing the logging correctly.
I have an XML file where it ignores an <operation> , probably due to some unknown error, yet it doesn't log anything, making it hard to track down the error cause.
public function {
You are skipping the name of the function in attempts to match all public functions but still have the "{" there so it will never match. Remove the { and it should work.
@Jay.
RegEx support is planned. I'm not well versed in regex so I have to do a bit more research on it but I guess if I let you set the pattern in the search area, I can plug that into a preg_replace function and use the matches.
You are right, there shouldn't have been a '{' in the search expression.You are skipping the name of the function in attempts to match all public functions but still have the "{" there so it will never match. Remove the { and it should work.
And the logging is now working fine.
Maybe I need a break ....
Too much work ....
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
i just identify the bug with example u give to us include at vqmod... "Show List quantity product" if i not wrong...
the issue.. when someone buy with certain quantity and proceed .. let say i set it 20 Quantity.. then buy 5 quantity at same time... but when i try to buy again lets say as a another customer.. at page it still shown 20 quatity...i sure that the quantity left should be 15 right? ... at admin office it looks ok with 15 quantity left...
its bug or what we call it? could u plz indentify the problem and make it work properly... let me know if i wrong..tq
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Yea its already been identified and fixed abovewandotshop wrote:Dear Q,
i just identify the bug with example u give to us include at vqmod... "Show List quantity product" if i not wrong...
the issue.. when someone buy with certain quantity and proceed .. let say i set it 20 Quantity.. then buy 5 quantity at same time... but when i try to buy again lets say as a another customer.. at page it still shown 20 quatity...i sure that the quantity left should be 15 right? ... at admin office it looks ok with 15 quantity left...
its bug or what we call it? could u plz indentify the problem and make it work properly... let me know if i wrong..tq
If I'm not mistaken unless you specifically set it to cache mode it recreates the files on each load anyways.JNeuhoff wrote:Would it be possible for vqmod to recreate the files in the vqcache folder automatically after a change to a vqmod XML file? For example, a simple comparison of the file dates of the XML file and the ones in the vqcache folder could trigger a re-creation of the cached files if the XML is newer.
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Correct. If useCache is true then it only creates the files if they dont already exist. If false then they are generated each time. It sounds like JN wants a hybrid of sorts where only changed xml files get reprocessed. I did think about doing this but wondered if checking the files for changes each time would be beneficial or take the same amount of time as just recreating anyway. I suppose reading is faster than writing, but any performance effefct seems to be pretty much insignificant anyway.Xsecrets wrote:If I'm not mistaken unless you specifically set it to cache mode it recreates the files on each load anyways.JNeuhoff wrote:Would it be possible for vqmod to recreate the files in the vqcache folder automatically after a change to a vqmod XML file? For example, a simple comparison of the file dates of the XML file and the ones in the vqcache folder could trigger a re-creation of the cached files if the XML is newer.
Not sure of the best way to monitor either. I could keep a txt file list of all the file date modified timestamps I guess, or md5 matches then compare each current file to the list.
v1.0.6 - 2011-JAN-12
- Added RegEx Support
- Added new "all" position to replace entire file
- Added new protected file list option to prevent some files from being modded for security
- Additional performance improvements
- Added divider lines to logging to improve readability between files
- Added version to log print
oh boy I can see this one getting severely abused.Qphoria wrote:UPDATE IN FIRST POST!
v1.0.6 - 2011-JAN-12
- Added RegEx Support
- Added new "all" position to replace entire file
what kind of performance improvements?- Added new protected file list option to prevent some files from being modded for security
- Additional performance improvements
- Added divider lines to logging to improve readability between files
- Added version to log print
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
With great power comes great responsibilityXsecrets wrote: oh boy I can see this one getting severely abused.
1. I had a few too many str_replace functions on the same string multiple times. Now I changed it to do it in one placeXsecrets wrote: what kind of performance improvements?
2. The initial search check was searching each line for a match. So if there are 1000 lines in a file, and the change is on line 900, the initial search would scan the file for the first match... which happens at 900.. Then that was being used more like a boolean. I wasn't returning that line number so the real modify function would start over scanning again at line 1. But since the initial search was at line 900, I know that is where the first match is, so I pass that line number back into the modify function. So now it just starts at the exact same line to do the change. So thats 899 less lines to scan. So it theoretically is a big performance improvement for mods of larger source files that had the changes towards the end of the file.
(i don't like the sound of vQmod Mods )
Made Stickyqahar wrote:Q, if you don't mind i make vQmod File Collection. I hope it's can help people to get the vQmod file
(i don't like the sound of vQmod Mods )
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Yea great!.. I was going to do this too but your collection threads always look nicerqahar wrote:Q, if you don't mind i make vQmod File Collection. I hope it's can help people to get the vQmod file
(i don't like the sound of vQmod Mods )
Users browsing this forum: No registered users and 19 guests