I'd like to see a way to organize all the files and directories associated with VQMod. Right now there are 5 items in my root directory; vqcache, vqmod, vqmod.log, vqmod.php, vqprotect.txt. Could these be put in their own directory, perhaps in 'system', so the root directory is kept as clean as possible?
BTW, I really like the new version, especially:
- New "all" position to replace entire file
- Protected file list
- Added divider lines to logging
Thanks,
Marc
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
You're right, but it's early enough in it's existence that, if you're going to do it, now is the time. If you wait until everyone finds out about it, Oy!Qphoria wrote:but that will of course break the current setup so I've refrained from doing so

OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
Code: Select all
/vqmod
/vqcache/
/vqlog/
/*.xml
You could even do that now.
1. EDIT: vqmod.php
2. FIND:
Code: Select all
public $logFilePath = './vqmod.log';
Code: Select all
public $logFilePath = './vqmod/vqlog/vqmod.log';
Code: Select all
private $vqCacheDir = 'vqcache';
Code: Select all
private $vqCacheDir = 'vqmod/vqcache';
Code: Select all
public $protectedFilelist = 'vqprotect.txt';
Code: Select all
public $protectedFilelist = 'vqmod/vqprotect.txt';
So now I have:
Code: Select all
/vqmod
/vqcache/
/vqlog/vqmod.log
/*.xml
/vqmod.php
/vqprotect.txt
OpenCart v1.4.9.4
VQMod | Categories Home | Cleaner By Default - 2 Column | Speak Good English
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
I tried it this way with no luck.
I'm using Open Cart 1.5.4.1 on http://www.importpieseauto.ro
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Yea.. it was actually a request from Lao that I added it. just leave the search tags empty and set position="all"Xsecrets wrote:please we are already getting people trying to use it. PLEASE PLEASE PLEASE only use all as a last resort if you absolutely need to replace everything in a file. if everyone replaces the entire file everytime having more than one mod modifying the same file is going to become increasingly difficult, not to mention that if you are simply overwriting the file 10 times during load that can't be too good.
For top, bottom, and all positions, the search data is ignored
I thought this was a write once and then use that file from cache or whatever?
930sc ... because it is fun!
only if you turn caching on, but more than that if people just go erasing files and replacing them with whatever they feel like it then it is quite likely that any other mods will not work not to mention that if a mod that does it correctly gets applied first then someone comes along and does a replace all they will have just completely wiped out the other mod with no errors to show for it.SapporoGuy wrote:huh?
I thought this was a write once and then use that file from cache or whatever?
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
That is awesome for modding! Now, I really am going to have to play with this!
However, I should have quoted X:
So, I was wondering if vqm is being loaded per mod per page load ...if you are simply overwriting the file 10 times during load that can't be too good.
930sc ... because it is fun!
Is there any "sort order" for vQmod file that modificating the same file ?Xsecrets wrote:but more than that if people just go erasing files and replacing them with whatever they feel like it then it is quite likely that any other mods will not work not to mention that if a mod that does it correctly gets applied first then someone comes along and does a replace all they will have just completely wiped out the other mod with no errors to show for it.
And I think it will better if vQmod able to duplicate the file, make a new pseudo-file, search and replace. Rather than "replace all".
If SapporoGuy misunderstood these, what you think the other (i.e: meQphoria wrote:Looks like you gots some reading to doSapporoGuy wrote: So, I was wondering if vqm is being loaded per mod per page load ...

You need to make Quick Explanation and put it on first post. I will add it on file collection.
TODO:qahar wrote: Is there any "sort order" for vQmod file that modificating the same file ?
============
Add sortability based on filename (or master sort control list file)
It does normally. I just added the option to replace "all" for specific moments. I don't recommend using it unless you know what you are doing. In this case, the initial request was for the footer.tpl file. While he should have just replaced or overwrote that file, he wanted to try just swapping the contents on his own personal site. But I agree, this is not something developers who are pushing these out to others should ever use.qahar wrote: And I think it will better if vQmod able to duplicate the file, make a new pseudo-file, search and replace. Rather than "replace all".
I had the idea to add the option to support eval() from the modfile so that depending on certain conditions, the <add> code could change. But I only see that as a major security hole and a nightmare so I'm going to leave it out.
thank you for leaving out eval() that certainly would have opened up all kinds of security issues.Qphoria wrote:TODO:qahar wrote: Is there any "sort order" for vQmod file that modificating the same file ?
============
Add sortability based on filename (or master sort control list file)
It does normally. I just added the option to replace "all" for specific moments. I don't recommend using it unless you know what you are doing. In this case, the initial request was for the footer.tpl file. While he should have just replaced or overwrote that file, he wanted to try just swapping the contents on his own personal site. But I agree, this is not something developers who are pushing these out to others should ever use.qahar wrote: And I think it will better if vQmod able to duplicate the file, make a new pseudo-file, search and replace. Rather than "replace all".
I had the idea to add the option to support eval() from the modfile so that depending on certain conditions, the <add> code could change. But I only see that as a major security hole and a nightmare so I'm going to leave it out.
as for the all I still really don't like that it's in there it's like in an fps game you have three weapons available the pistol the sniper rifle and the bfg. Lots of people are going to just grab the bfg because it's easier for them and they don't have to think about aiming.
Besides you can always say in the case of the footer.tpl put <!-- at the top and --> at the bottom then add your code, which still poses the same problems as the all, but at least the developer still has to think, so I would say there is a little bit better chance they will only change what they need to.
Though that does bring up another question what happens if you do two bottom or two top additions on the same file in the same mod? Say for instance you did a bottom with "-->" then another bottom with "my crap here" would it add them both in the order that you put them in?
OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter
Yes, it does each operation individually and passes the newly changed data into the subsequent operationsXsecrets wrote: Though that does bring up another question what happens if you do two bottom or two top additions on the same file in the same mod? Say for instance you did a bottom with "-->" then another bottom with "my crap here" would it add them both in the order that you put them in?
so if the first bottom adds "-->" to the code, it takes that change and passes it as the new "source" for the next operation.
so then the second bottom adds "my new code" to the previous changes of the first operation
So the result will be:
Code: Select all
...........
...existing stuff...
-->
my new code
Ok I cleaned up the first post to make it easier to understand (i hope):qahar wrote: If SapporoGuy misunderstood these, what you think the other (i.e: me).
You need to make Quick Explanation and put it on first post. I will add it on file collection.
http://forum.opencart.com/viewtopic.php ... 15#p120715
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

Users browsing this forum: No registered users and 11 guests