Page 1 of 2

XML modules generator for vQMod

Posted: Mon Sep 12, 2011 8:26 pm
by araminho
Hello!
Has anyone met an XML module generator for vQmod, in order not to write the difference of comparisons manually?
Thanks!

Re: XML modules generator for vQMod

Posted: Sat Oct 22, 2011 1:56 pm
by Jeremy Fisk
the user UKSITEBUILDER has a great page here...

try this http://www.opencart-extensions.co.uk/vqgen/

I'll be interested to know how you get on

Re: XML modules generator for vQMod

Posted: Sun Oct 30, 2011 11:27 pm
by takahashi1973
Page moved? I got a 404..but very interested!!!

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 12:31 am
by Xsecrets
yeah not sure why he took it down, but he says he's going to release it as a free download, so you can put it on your server or development environment.

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 11:36 am
by Jeremy Fisk
Ok... hang on...

I'll do something

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 11:36 am
by Jeremy Fisk
Try this

http://www.qualchem.co.nz/vqgen.php

Please tell me what you think?

Chears

Jem

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 12:02 pm
by Xsecrets
ok just out of curiosity how did you get ahold of his script?

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 2:27 pm
by Jeremy Fisk
Hiya...

I got this version of the script from UKSITEBUILDER...

He sent me through the php files as I wanted to create a binary desktop application to do this... and I was feeling lazy so instead of creating from scratch, i got ideas from his php file...

I uploaded the php files from UKSITEBUILDER (changed a bit in design) to my website for using while I was creating the app... And i never really got arround to removing it...

I have since also created a OpenCart admin module for this, which i also use now... it allows you once loged in to admin, to go to a page (like settings for example) and create new vQmods, and then when save is clicked it saves the file to a .xml file in the vqmod/xml/ folder in my store root... also, now merged in a few features that are used in the vQmod Mangaer extension... this now allows me to create and control my vQmods...

I will be taking down from my server soon... Thanks for remining me as I have a habit of just leaving stuff on there clutering the folder up (and about 3 months down the track I go to the folder and can't workout what 96.728% of the files are even there for)... I'm hopeless... SIGH...

Hope all is well..

Jem

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 4:18 pm
by takahashi1973
Looks promising.
I do not see the "compare two files" and generate vQMod for all changes but I see that can be a pretty difficult task to automate.

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 4:31 pm
by Jeremy Fisk
Dunno bout in php... but my binary app has coppied abit of source code from an opensource file comparer... and this works fine... I dunno about doing it in php though...

Please note that this vqmod generator will be taken down from my server soon... as I believe if UKSITEBUILDER has taken his down... then i should also take this version down... as 99.99% of this php code came from him...

I believe he is releasing it soon for others to upload themselves...

Chears

Jem

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 5:15 pm
by takahashi1973
Are you going to release the binary app you are talking about?

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 9:02 pm
by Xsecrets
It would be nice to have one where you can just pop in two files and generate a vqmod, but I think this would be very difficult since vqmod is not a diff format it's a search and replace format. I mean what do you do if what you want to replace is between

}

} else {

searching either before or after will not produce a unique string, so you have to start using indexes and such. I can see that being a nightmare to try to code up.

Re: XML modules generator for vQMod

Posted: Mon Oct 31, 2011 10:04 pm
by takahashi1973
Yeah I can imagine that will be difficult.

Re: XML modules generator for vQMod

Posted: Tue Nov 01, 2011 3:03 am
by Jeremy Fisk
Yes, in php it is very hard... (for me anyway)...

But as i have had more experiance at C++ I found it posible to just click to add the two files (obviously the original file as well as the modified file)... and then with another cick it will generate me a vqmod for the difference... easy as that...

But as someone else has already said... one done like this in php would be great... but a little bit over my head... I might have a look into it at some stage though...

In answer to the question of releasing the binary app, yes I will love to... but the probelm is that it is coded into a few custom runtimes that i have on this computer... but i will have a look and see if i can port it across at somestage...


Chears

Jem

Re: XML modules generator for vQMod

Posted: Tue Nov 01, 2011 3:53 am
by Xsecrets
just out of curiosity how did you get around the cases where you have no definitive search terms before or after the added text? I mean getting a diff is pretty simple even in php, but trying to figure out how to apply the search terms indexes and offsets seems like a nightmare.

Re: XML modules generator for vQMod

Posted: Fri Nov 18, 2011 11:01 am
by quocbinhvip
Jeremy Fisk wrote:Try this

http://www.qualchem.co.nz/vqgen.php

Please tell me what you think?

Chears

Jem
Your site is helpful. I love it.
I hope you share the code of the page so I can work conveniently on localhost. sincerely thank

Re: XML modules generator for vQMod

Posted: Fri Nov 18, 2011 5:18 pm
by greymatters
Amazing idea.. it will be helpful if you can provide it as module like vQmod Manager.

Re: XML modules generator for vQMod

Posted: Fri Nov 18, 2011 9:00 pm
by Qphoria
I don't really think it needs to be a module.. You don't necessarily use opencart to create vQmod files. It is just a standalone form. I will be hosting one on the main vQmod site and linking all the others as well to keep them all easy to find in one place

Re: XML modules generator for vQMod

Posted: Sun Dec 04, 2011 3:41 am
by uksitebuilder
Just to let you guys know I have been tinkering with the vqmod generator to improve on it a little and it is now live again

vQmod Generator -> http://www.opencart-extensions.co.uk/vqgen/

You can now edit vqmod files previously generated
I will upload a zip file soon so that you can add it to your site should you want it.

In the version above, interaction with files is all done in a temp directory, however the zip version will allow you to interact with files in your vqmod/xml folder.

It also has a mini file manager for easy enabling/disabling of vqmod files. (not as good as rph's vQmod manager, but ample for this tool.

Re: XML modules generator for vQMod

Posted: Sun Dec 04, 2011 7:12 am
by Xsecrets
uksitebuilder wrote:Just to let you guys know I have been tinkering with the vqmod generator to improve on it a little and it is now live again

vQmod Generator -> http://www.opencart-extensions.co.uk/vqgen/

You can now edit vqmod files previously generated
I will upload a zip file soon so that you can add it to your site should you want it.

In the version above, interaction with files is all done in a temp directory, however the zip version will allow you to interact with files in your vqmod/xml folder.

It also has a mini file manager for easy enabling/disabling of vqmod files. (not as good as rph's vQmod manager, but ample for this tool.
this is not a good idea. I already see some of my commercial vqmod files up there. Could you please remove them? maybe set a timeout or something. The particular ones up there really don't matter too much because they don't do you a lot of good without the rest of the files, but I can see basically every commercial vqmod getting uploaded to this, and some of the commercial contributions are nothing but vqmod files.