Posts: 260
Threads: 39
Joined: Jun 2014
2016-08-11, 23:47:24
(This post was last modified: 2016-08-19, 02:59:11 by Hypertexter.)
Hi,
I would like to completely rename my individually tuned Innovation theme, to InnovationNN, which could survive updates without any hazard. (Just adding some templates would not help me since I also changed header and footer and css files).
Therefore I renamed:
the /themes/Innovation folder to "InnovationNN"
the /plugins/InnovationPlugin.php to "InnovationNNPlugin.php"
the /plugins/InnovationPlugin folder to "InnovationNNPlugin".
It seems to work, but the settings for the theme in the GUI have disappeared. I suppose that comes from the InnovationNNPlugin.php file. I can activate it at Plugins, but the settings stay disappeared.
Seems I need to edit the file, but I do not know how exactly.
Could you help me?
Hypertexter
Posts: 6,266
Threads: 181
Joined: Sep 2011
I thought i modified that to work with renames, but I do not see the changes.
hmm where did i do that ?
Posts: 260
Threads: 39
Joined: Jun 2014
If you did: would my renames be correct? These two folders and the php file?
Posts: 3,491
Threads: 106
Joined: Mar 2010
You probably have to change several strings in the main php file too:
"Innovation" and 'Innovation' in lines 34, 35
Posts: 260
Threads: 39
Joined: Jun 2014
OK I'll do... what about line 12:
$innovation_file=GSDATAOTHERPATH .'InnovationSettings.xml';
Do I need a InnovationSettingsNN.xml?
Posts: 3,491
Threads: 106
Joined: Mar 2010
Yes!
[edit] Perhaps it's not necessary.
Posts: 260
Threads: 39
Joined: Jun 2014
I did all the changes (lines 12, 34, 35 and the folders and file), and it now shows the Innovation theme settings in Templates.
BUT: In Plugins the two files InnovationNNPlugin and InnovationPlugin seem to have a conflict.
I activate InnovationNNPlugin and it disappears from the plugin list. (but the theme settings then appear in Templates).
When I activate the standard InnovationPlugin, which is still shown in Plugins, I get an error message and when refreshing the page, GS crashes/shows nothing any more, no page.
I have to remove the InnovationPlugin.php file to get my website back...
Something seems to compete there.
Posts: 6,266
Threads: 181
Joined: Sep 2011
well you cant have the both loaded at the same time, because all the functions are named the same.
so maybe both are active ?
Posts: 260
Threads: 39
Joined: Jun 2014
OK. I thought I could make a completely independent custom theme, next to the standard theme...
Posts: 6,266
Threads: 181
Joined: Sep 2011
since it uses a plugin its gonna be a bunch of work, but if only one plugin is active at a time it should be ok.
Posts: 6,266
Threads: 181
Joined: Sep 2011
I think i was thinking of this change
http://get-simple.info/forums/showthread...u#pid54071
it lets you use the same plugin for other themes.
Posts: 260
Threads: 39
Joined: Jun 2014
OK... but this is no solution to have two innovation themes activated at the same time?
Posts: 6,266
Threads: 181
Joined: Sep 2011
string replace all functon names
Posts: 260
Threads: 39
Joined: Jun 2014
Do you mean editing the InnovationPlugin.php by doing a string search and replace of all hits "Innovation" by "InnovationNN"?
Posts: 6,266
Threads: 181
Joined: Sep 2011