![]() |
Which Hook to access forumid / userid before display?
Hello,
I have a script that places images (banners) where I choose, but for logging purposes I need to access the vBulletin $foruminfo['forumid'] & $bbuserinfo['userid'] variables. I have placed the include file (through plug-in system) in global_start, and the images are displayed, but are missing the forumid / userid elements. Which hook should I place my include into so I can access those variables and still be able to insert my output within the templates for display? sample code of what I'm trying to do... PHP Code:
Thank you. |
Quote:
|
PHP Code:
|
I actually had tried it under both of those hooks and it did not work.
I think my major problem was an error in another function where I did not reference the global $x_userID variable where I was trying to store the userid. I also used the $vbulletin->userinfo['userid'] pointer instead, then put it back into parse_templates hook and it works perfectly. Thank you both. :up: |
All times are GMT. The time now is 08:38 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:
|