PDA

View Full Version : Is $foruminfo or some equivalent available in global_start?


echamberlain
03-08-2007, 11:50 PM
Is $foruminfo or some equivalent available in global_start?


I'm defining some common functions there and I need to use $foruminfo or equivalent inside those functions.

nexialys
03-09-2007, 12:18 AM
it is, but why asking before trying?

echamberlain
03-09-2007, 12:26 AM
Maybe, I tried it and it isn't working. So given the lack of documentation I thought I would ask.

The answer is that it depends.

In some cases $foruminfo is populated and in other cases it isn't. Generally, when a threadid or forumid is provided in the url, $foruminfo is populated.

In my case, I needed the information in the index.php script. My solution was to pass the non-global $forum within my forumbit_display function calls to the functions I defined in global_start.

Dismounted
03-09-2007, 06:02 AM
$foruminfo isn't available in global_start, it isn't defined yet.