![]() |
$bbuserinfo in php dosn't work ><
Hey all,
I'm trying to activate some php code in the plugin system and that dosn't seem to work :confused: PHP Code:
The 2nd row works fine (somebody's buddys array). When I'm writing "$yourbuddys[0]" in the tamplate the output is the first userid of the array. BUT if I writing "$selfbuddys[0]" in the tamplate, nothing! * $bbuserinfo[buddylist] works! the output is an array of user id's. So, is there another way to write $bbuserinfo in php? or maybe the Hook is the problem. If that's not clear, im new to all this php\plugs of vb, but im trying (: |
vbuserinfo
|
WOW.. that was quick!! :O
thanks for reply :) hmm.. the "vbuserinfo" has to written with $this-> OR $vbulletin-> (or something else) before that? |
Quote:
|
Quote:
with $this-> OR $vbulletin-> OR nothing of them. Anybody know about something else? :erm: |
Try this since it is the postbit:
$postuserinfo['buddylist']); |
I don't sure I understand where to put it (Postbit?), cause the problem is in the php code.
At the postbit I need only a var name ($selfbuddys[0]) to display the result (first buddy ID). In the php code it doesn't seem to work too: PHP Code:
|
Try globalizing $vbulletin.
global $vbulletin; |
huh?
Thanks but I don't understand you. what's the meaning of globalizing vbulletin? what should I change in the code? :S --------------- Added [DATE]1204589481[/DATE] at [TIME]1204589481[/TIME] --------------- At vBulletin.com I was told that I should change the Hook (Now: postbit_display_start) and suggested to ask here for that. Anybody? :\ (wooo.. that's "Auto-Merged DoublePost" is cool!) |
PHP Code:
|
All times are GMT. The time now is 12:07 PM. |
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:
|