![]() |
access forumid in a php file
Hi
What do I need to do to access the forumids in a separate php file? I'm currently able to get info from the php file into a template, but would like to fine tune it more based on which forum its is in. I used to use this in templates. <if condition="$forumid == 41"> Thanks |
Is this an external file you're including via a plugin? Try:
Code:
global $foruminfo; |
Hi
I tried this below, after trying it in the full file, but got a blank result in both. In case it's a factor I'm using as the hook gobal_bootstrap_init_start <?php global $foruminfo; $forumid = $foruminfo['forumid']; echo $forumid; ?> thanks |
Yeah I think it is the hook. Try global_bootstrap_complete instead.
|
Wow, that worked.
Thanks for your help |
All times are GMT. The time now is 01:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|