Global Admin Template


  -----  
Author Message

Jleagle
Member

Fri Sep 22, 2006 3:02 pm   Post subject: re: Global Admin Template
no text comes up...

when i take away the admin TPLs from where they usually are, i get this..
Template->make_filename(): Error - template file not found: admin/index_frameset.tpl
hope thta helps
 

Thoul
Administrator

Fri Sep 22, 2006 3:23 pm   Post subject: re: Global Admin Template
Ok, that means that for some reason your admin panel isn't identifying itself as the admin panel. In your admin/pagestart.php, the first few lines (after the big comment blocks at the top) should be:

Code:

if (!defined('IN_PHPBB'))
{
   die("Hacking attempt");
}

define('IN_ADMIN', true);
// Include files
include($phpbb_root_path . 'common.'.$phpEx);


The define('IN_ADMIN', true); line is what tells phpBB it should be working with the admin panel. This line is either missing or disabled. Check to see if it's in your file. You might also try replacing this file with a fresh, unedited copy to see if that has an effect.
 

Jleagle
Member

Fri Sep 22, 2006 5:17 pm   Post subject: re: Global Admin Template
its defined ok.. same code as you posted.

i did some simple debugging my self eg.
$test=12; in pagestart.php and if (isset($test)) in functions.php which comes back false.. its as if pagestart.php isnt included into it anymore, maybe something with XS mod.

im gonna ask the author for some help, see if he knows

edit:

i also tried to comment out the IF so it outputs that line whatever like this.

Code:

   //------------------------------------------------------------------------------
   // Global Admin Template - Begin Code Alteration
   //
#      if ( defined('IN_ADMIN') )
#      {
         $template->set_rootdir($phpbb_root_path . 'admin/templates');
         var_dump($template->root);
#      }
   //
   // Global Admin Template - End Code Alteration
   //------------------------------------------------------------------------------


and the var_dump line still didnt come up
 

Thoul
Administrator

Fri Sep 22, 2006 8:06 pm   Post subject: re: Global Admin Template
Hm, strange. Even the XS mod shouldn't do something like that. I'm not sure what to tell you. You're sure the XS mod, Multiforums, and this are all that is installed? It would seem to me that some other mod must be installed to disable this whole area like this.
 

Jleagle
Member

Sat Sep 23, 2006 8:33 am   Post subject: re: Global Admin Template
yes they are the only 3

// Uncomment next line if you have global admin template mod installed.
// define('XS_GLOBAL_ADMIN', true);

thats at the top of template.php but uncommenting it doesnt seem to fix theproblem
 

Thoul
Administrator

Sat Sep 23, 2006 12:29 pm   Post subject: re: Global Admin Template
Yeah, that would have only been needed with Global Admin Template 1.0.x. It would have had any good affect here, anyway, since the main GAT code isn't getting fired off.
 

Page 2 of 2
Go to page Previous  1, 2
Display posts from previous: