The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
$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 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 (: |
#2
|
|||
|
|||
vbuserinfo
|
#3
|
||||
|
||||
WOW.. that was quick!! :O
thanks for reply hmm.. the "vbuserinfo" has to written with $this-> OR $vbulletin-> (or something else) before that? |
#4
|
||||
|
||||
When did they add that one? I have never heard of it before.
|
#5
|
||||
|
||||
it also doesn't work, to me
with $this-> OR $vbulletin-> OR nothing of them. Anybody know about something else? :erm: |
#6
|
||||
|
||||
Try this since it is the postbit:
$postuserinfo['buddylist']); |
#7
|
||||
|
||||
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:
|
#8
|
||||
|
||||
Try globalizing $vbulletin.
global $vbulletin; |
#9
|
||||
|
||||
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!) |
#10
|
||||
|
||||
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|