GetSimple Support Forum
have 3 CMS read from one plugin Folder? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: have 3 CMS read from one plugin Folder? (/showthread.php?tid=3762)



have 3 CMS read from one plugin Folder? - ohspublishing - 2012-11-01

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.


RE: have 3 CMS read from one plugin Folder? - n00dles101 - 2012-11-01

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...


RE: have 3 CMS read from one plugin Folder? - ohspublishing - 2012-11-01

(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,


RE: have 3 CMS read from one plugin Folder? - shawn_a - 2012-11-01

Could you use symbolic links ?


RE: have 3 CMS read from one plugin Folder? - shovenose - 2012-11-01

Yeah I was also thinking symlinks might work. I'm moving this thread to the other section since it makes more sense there. Smile


RE: have 3 CMS read from one plugin Folder? - ohspublishing - 2012-11-01

(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. Smile

________________

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?


RE: have 3 CMS read from one plugin Folder? - shovenose - 2012-11-01

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