Global Admin Template
-----
| Author | Message | |
|---|---|---|
|
Jleagle |
||
| Mon Sep 18, 2006 10:28 am Post subject: Global Admin Template | ||
|
hi there ive just installed this mod on my forum and it doesnt seem to be anything, it just stays exactly how it was, with no errors.
Im using extreme styles mod too but the latest version of it doesnt need to be fixed. Quote: define('XS_TPL_PATH', defined('XS_GLOBAL_ADMIN') ? '../xs_mod/tpl/' : '../../xs_mod/tpl/');
any ideas what ive done wrong? |
||
|
Thoul |
||
| Mon Sep 18, 2006 10:45 pm Post subject: re: Global Admin Template | ||
|
One of the goals of this mod is to work without any visible changes. All it is meant to do is move the admin .tpl files to a new location and allow the forum to work with them. You shouldn't really "see" any changes or errors, as it's all behind the scenes type of stuff.
Quote: Im using extreme styles mod too but the latest version of it doesnt need to be fixed.
Yeah, that was mentioned in the current release. The old fix was included just for completeness. I don't see the code you quoted in my copy of eXtreme Styles, but no fixes or changes should be needed at all for the latest version. |
||
|
Jleagle |
||
| Tue Sep 19, 2006 2:09 pm Post subject: re: Global Admin Template | ||
|
sorry i didnt really explain the problem very well.. the admin panel still uses the current templates TPLs instead of the ones i moved into admin/ so when i chance the template it changes the admin template too. instead of showing one admin template for all forum templates.
ive checked through the edites again and cant see what im doing wrong for the mod to not affect anything at all. |
||
|
Thoul |
||
| Tue Sep 19, 2006 2:30 pm Post subject: re: Global Admin Template | ||
|
Ah. That's got to be caused by the stuff added in includes/functions.php. The placement of it is very important - make sure you added the code after the find and not before.
|
||
|
Jleagle |
||
| Tue Sep 19, 2006 5:57 pm Post subject: | ||
|
im pretty sure its in the right place.. i have this..
Code: $template_path = 'templates/' ;
$template_name = $row['template_name'] ; $template = new Template($phpbb_root_path . $template_path . $template_name); //------------------------------------------------------------------------------ // Global Admin Template - Begin Code Alteration // if ( defined('IN_ADMIN') ) { $template->set_rootdir($phpbb_root_path . 'admin/templates'); } // // Global Admin Template - End Code Alteration //------------------------------------------------------------------------------ if ( $template ) |
||
|
Thoul |
||
| Tue Sep 19, 2006 7:27 pm Post subject: re: Global Admin Template | ||
|
Yeah, that looks right. What other mods do you have installed on this file? Perhaps one of them is interfering with it.
|
||
|
Jleagle |
||
| Thu Sep 21, 2006 4:06 pm Post subject: re: Global Admin Template | ||
|
the only mod i have is multi-forums, which doesnt affect functions.php
|
||
|
Thoul |
||
| Thu Sep 21, 2006 6:37 pm Post subject: re: Global Admin Template | ||
|
I did some testing and found that this can happen when the tpl files have been copied to an incorrect location, so double check that they are in the right place. Your forum should now have a directory structure like this:
Code: root
-admin -templates -admin -all the old templates/subSilver/admin files should be here -includes -language -templates -subSilver The admin/templates/admin path is a little confusing at first, even to me, so that might have thrown you off when copying the files. |
||
|
Jleagle |
||
| Fri Sep 22, 2006 3:52 am Post subject: re: Global Admin Template | ||
|
thats how it is..
i have 3 TPL files in admin/templates/ and admin/ which contains all the admin TPLs from the subSilver template... |
||
|
Thoul |
||
| Fri Sep 22, 2006 2:48 pm Post subject: re: Global Admin Template | ||
|
Ok, that sounds right. Hm. Ok, let's do a little debugging to see if the code in functions.php is working. After this line:
Code: $template->set_rootdir($phpbb_root_path . 'admin/templates'); Add this: Code: var_dump($template->root);
Then when you view a page in the admin panel, there should be some text at the top of the page. It'll say something like string "9" ("some text"). Post that text here, please. You can remove the new line after that. |
||