Page 1 of 1
Make a VQMod change to a file in the system folder
Posted: Fri Sep 21, 2018 1:21 am
by Reptile
Can somebody tell me if it is possible to make a file change using vqmod in the system folder.
For one of my extensions I need to make a change to a file from the Journal2 theme but the file is located in the system folder.
I can't seem to get this working. Is it even possible?
Re: Make a VQMod change to a file in the system folder
Posted: Fri Sep 21, 2018 1:41 am
by IP_CAM
Many VqMods access the s
ystem/... directory, the only file, which cannot be changed,
seems to be the
index.php file(s), other vqmods

, as well as stylesheets and scripts.
Ernie
Code: Select all
<file name="system/library/user.php">
<operation>
<search position="after" offset="1"><![CDATA[public function login]]></search>
<add><![CDATA[$user_query = $this->db->query("SELECT * FROM " . DB_PREFIX . "user WHERE LOWER(username) = '" . $this->db->escape(strtolower($username)) . "'");]]></add>
</operation>
</file>
---

Re: Make a VQMod change to a file in the system folder
Posted: Fri Sep 21, 2018 1:44 am
by Reptile
Hmm perhaps I made a typo.
Or could it be because the file is in a folder which doesn’t come with opencart by default?
Re: Make a VQMod change to a file in the system folder
Posted: Fri Sep 21, 2018 1:51 am
by IP_CAM
should not have an influence, at least, if this directory is not CHMOD-ed,
to NOT be accessable by other 'internal' sources.
Ernie
Re: Make a VQMod change to a file in the system folder
Posted: Fri Sep 21, 2018 3:00 am
by Reptile
It is really strange I did multiple test but I can’t seem to make changes to the file.
I can change files in system/journal2
But files (php) located in system/journal2/classes aren’t affected.
Re: Make a VQMod change to a file in the system folder
Posted: Fri Sep 21, 2018 3:55 am
by IP_CAM
Well, then better check with the fellows in charge, I never played around with such
Ernie
https://docs.journal-theme.com/#/home