The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
|||
|
|||
![]() Quote:
![]() |
#3
|
|||
|
|||
![]() PHP Code:
|
#4
|
|||
|
|||
![]()
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: |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|