Posts: 16
Threads: 5
Joined: Oct 2012
So I use this CMS on 3 different subdirectories on my site.
If I add a plugin I have to add them to each plugin folder. Is there a way to put the plugin in my main directory and point the subdirectory to the same plugin folder.
How and where in the code is the plugin folder link so I can change it to point somewhere else?
I use version 3.1.2 - all I want to do is change them so they read the plugins folder in a different directory. Hope you can help - let me know if you have a question what I am needing.
Posts: 1,108
Threads: 70
Joined: Aug 2009
GSPLUGINPATH which is used internally for the Plugin path is defined on line 48 of /admin/inc/common.php
you could try messing about with that. Bear in mind your changing the core and any update you do might overwrite this...
Posts: 16
Threads: 5
Joined: Oct 2012
(2012-11-01, 07:24:12)n00dles101 Wrote: GSPLUGINPATH which is used internally for the Plugin path is defined on line 48 of /admin/inc/common.php
you could try messing about with that. Bear in mind your changing the core and any update you do might overwrite this...
______________
Yeah I saw this and figured this is probably it - will play around with the paths and see what I can figure out - was hoping there was a more direct easy path.
Thanks for the quick response,
Posts: 6,266
Threads: 181
Joined: Sep 2011
Could you use symbolic links ?
Posts: 687
Threads: 63
Joined: Nov 2011
Yeah I was also thinking symlinks might work. I'm moving this thread to the other section since it makes more sense there.
Posts: 16
Threads: 5
Joined: Oct 2012
(2012-11-01, 09:12:13)shovenose Wrote: Yeah I was also thinking symlinks might work. I'm moving this thread to the other section since it makes more sense there.
________________
But looking under common.php at --> define('GSPLUGINPATH', GSROOTPATH. 'plugins/'); I could not just change 'plugins/' to a new path that reads to the main directory? How would you use the symlinks?
Posts: 687
Threads: 63
Joined: Nov 2011
Well, you should certainly try changing that setting.
If it doesn't work, however, you may want to read this:
http://en.wikipedia.org/wiki/Symbolic_link