Page 2 of 3

Re: vQmod Generator, Editor and Log Viewer

Posted: Sat Feb 02, 2013 5:48 pm
by uksitebuilder
vQmod Generator has been updated today

Fixes some issues people were having with \n \r etc

Compatible with the new vQmod 2.3.0 which ads extra tags and attributes.

Added a vqcache file viewer

Separated the language into a language file so it can be translated

Moved the package on to GitHub

http://uksb.github.com/vqgen/

Maybe someone can help with the translations ?

GitHub -> https://github.com/uksb/vqgen

Please fork, use the Develop branch if adding / changnig anything.

If people will copy the package, please retain the copyright info and license from the package.

Any questions, please let me know.

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Feb 06, 2013 2:55 am
by OC2PS
Beautiful plugin. Very useful. Love it.

A major security vulnerability though, is the "Enable this mod" link on top of the page after xml is generated. This way anyone can add mods to anyone's shop without permission, potentially even bringing the roof down. :o

Shop Admin should be required to enable the mod either via FTP or via Admin panel.

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Feb 06, 2013 3:04 am
by uksitebuilder
Not sure how

Firstly the vqgen folder should be password protected

Secondly the Enable this mod only removes an underscore from the extension.xml_ file to make it extension.xml and thus make it live.

If I am missing something glaringly obvious though, please do explain

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Feb 06, 2013 3:23 am
by OC2PS
uksitebuilder wrote:Firstly the vqgen folder should be password protected
That's the "workaround" that I've been using, but most folks don't.
uksitebuilder wrote:Enable this mod only removes an underscore from the extension.xml_ file to make it extension.xml and thus make it live.
And that little task makes all the difference. A malicious person (lets say a competitor) may keep piling on harmful vqmods into the xml folder, but shop would still be safe as long as extension is xml_. As soon as some outside entity gets the power to activate/make live the mod, that's where there's potential for disaster.

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Feb 06, 2013 3:31 am
by ChetanCx
uksitebuilder wrote: Firstly the vqgen folder should be password protected
but generally people don't how to do it .... may be you can add a instruction file for that or implement authentication on vqgen ... anyways very cool extension ...saves developer's time ...

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Feb 06, 2013 3:41 am
by OC2PS
ChetanCx wrote:very cool extension ...saves developer's time ...
+1

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Feb 06, 2013 3:47 am
by uksitebuilder
Ok Guys,

I understand where you are coming from.

Although I do point out in the install text to password protet the folder, but you are right, some people need to have their hand held.

Next update coming in a day or two will have a login/session form/method built in.

In addition I will also be adding the function to view core files in a collapsable splitscreen so you can load up an original file to view the code and work in the editor to vqmod it.

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Feb 06, 2013 4:46 am
by OC2PS
uksitebuilder wrote:Next update coming in a day or two will have a login/session form/method built in.
Cheers!
uksitebuilder wrote:In addition I will also be adding the function to view core files in a collapsable splitscreen so you can load up an original file to view the code and work in the editor to vqmod it.
Ooh! Turning all the bells and whistles on, are we? ;) :joker:

Seriously, though, that will make this module indispensable!

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Feb 06, 2013 7:01 am
by uksitebuilder
** Just added a Hotfix release to fix backwards compatibility issue with older xml files

Please update your versions

Re: vQmod Generator, Editor and Log Viewer

Posted: Sat Feb 09, 2013 1:32 pm
by pagemakers
I installed and ran VQGEN and got the message: Parse error: syntax error, unexpected $end, expecting ',' or ';' in /home/goingthi/public_html/vqgen/index.php on line 490 - did I do something wrong during installation?

Re: vQmod Generator, Editor and Log Viewer

Posted: Sat Feb 09, 2013 4:57 pm
by uksitebuilder
Which version of vQgen ?

Re: vQmod Generator, Editor and Log Viewer

Posted: Fri Mar 01, 2013 1:48 am
by kjg
Hi
Thank you for a nice tool

I have a question:
Why do you set permission to 777 on new or edited files created via the mod?
For me (the environment we are in) it should be 644
Suppose I could just change the code at line 146 in action.php to 644 instead, or would that mess things up?

Thank You

// kjg

Re: vQmod Generator, Editor and Log Viewer

Posted: Sat Mar 02, 2013 7:45 am
by marvmen21
Hi, thanks for your great extension.
I am using the latest vqgen, latest vqmod 2.3.2, and oc 1.5.4.1
I don't know what I am missing but all generated xmls are not working because vqgen is adding lots of \\\ everywhere. See example below from the search operation.

Code: Select all

 <td class=\\\"left\\\"><?php if ($sort == \\\'status\\\') { ?>

Regards,

Marvin Mendez

vQmod Generator, Editor and Log Viewer

Posted: Sun Mar 03, 2013 6:38 am
by uksitebuilder
I will check it our and release a fix soon

Most probably due to php magic_quotes_gpc on your server

vQmod Generator, Editor and Log Viewer

Posted: Sun Mar 03, 2013 6:48 am
by uksitebuilder
If magic_quotes_gpc is on (most likely), then ot should be turned off either in php.ini or htaccess

If your host does not allow this, please try adding the following to the top of index.php, after the opening <?php tag

Code: Select all

if (get_magic_quotes_gpc()) {
    function stripslashes_gpc(&$value)
    {
        $value = stripslashes($value);
    }
    array_walk_recursive($_GET, 'stripslashes_gpc');
    array_walk_recursive($_POST, 'stripslashes_gpc');
    array_walk_recursive($_REQUEST, 'stripslashes_gpc');
}

Re: vQmod Generator, Editor and Log Viewer

Posted: Mon Mar 04, 2013 1:33 pm
by marvmen21
Thanks for your reply, I'll check my server config to see if that's on. I'll let you know tomorrow cuz I am falling asleep atm... going to bed now. ;D

Thanks.
Marvin

Re: vQmod Generator, Editor and Log Viewer

Posted: Sat Mar 16, 2013 11:22 pm
by ifixrobot
Thanks for vQmod. I use in on a localhost. The only version that works for me is the version from AvanOsch (1st page). Otherwise the edit area is blank. Can you review his version and provide an update to yours so it works on a localhost?

Re: vQmod Generator, Editor and Log Viewer

Posted: Thu Aug 15, 2013 4:33 am
by moneycarlo
maybe add a version number in the footer so we know which we have in case of updates?

Re: vQmod Generator, Editor and Log Viewer

Posted: Thu Aug 15, 2013 4:53 am
by butte
Need to escape certain characters, such as by "\" in "\n" or "\r", and need to double-up what will later fall away, suggest a quirk of fancybox or ckeditor. Be sure to toggle Source mode into Source mode when inserting code with editors driven by similar means.

On needing permission, check permissions, dirs 755, files 644. On modern Linux servers set up to prevent the risks of 777, setting 777 can actually lock dir and file access. The final 7 gives outside anonymous "world" all rights to read, write, execute. The middle 7 does so for "group" including the system. Thus, 5 in 2nd and 3rd positions, and nowadays for 777 expect misbehaviors and hacking.

Re: vQmod Generator, Editor and Log Viewer

Posted: Wed Oct 23, 2013 6:34 pm
by robchef
hi im a new to all this vqmod thing do i install the vqmod generator in the site im working on or does it need to be on a clean version of open cart hope some one can help me