Post by Reptile » Fri Sep 21, 2018 1:21 am

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?

All my extensions: Click here or Click here


User avatar
Active Member

Posts

Joined
Mon Jan 30, 2012 7:23 pm
Location - The Netherlands

Post by IP_CAM » Fri Sep 21, 2018 1:41 am

Many VqMods access the system/... directory, the only file, which cannot be changed,
seems to be the index.php file(s), other vqmods :D , 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>
---
Image
Last edited by IP_CAM on Fri Sep 21, 2018 1:47 am, edited 2 times in total.

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Reptile » Fri Sep 21, 2018 1:44 am

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?

All my extensions: Click here or Click here


User avatar
Active Member

Posts

Joined
Mon Jan 30, 2012 7:23 pm
Location - The Netherlands

Post by IP_CAM » Fri Sep 21, 2018 1:51 am

should not have an influence, at least, if this directory is not CHMOD-ed,
to NOT be accessable by other 'internal' sources.
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Reptile » Fri Sep 21, 2018 3:00 am

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.

All my extensions: Click here or Click here


User avatar
Active Member

Posts

Joined
Mon Jan 30, 2012 7:23 pm
Location - The Netherlands

Post by IP_CAM » Fri Sep 21, 2018 3:55 am

Well, then better check with the fellows in charge, I never played around with such ;)
Ernie
https://docs.journal-theme.com/#/home

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 6 guests