The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBulletin5 Variables
Hello,
I am trying to get the value of vBulletin variable "$bbuserinfo['usergroupid']" and print the value from template hook. I have used "if-condition" to verify the logged in user's usergroupid. But I am not able to store it in a variable and print it. Can someone help me out. P.S the code snippet below: <vb:if condition=" $bbuserinfo['usergroupid'] == 6"> // code block </vb:if> I want to set this variable's value and output it using {vb:raw}. Please help. |
#2
|
|||
|
|||
I haven't worked a lot with vBulletin 5, but maybe the following will work: {vb:raw bbuserinfo.usergroupid}.
|
#3
|
|||
|
|||
Hi Dave,
Had tried this too.. It dint work..:-( |
#4
|
||||
|
||||
user.usergroupid is already set. You can display it with {vb:raw user.usergroupid}
|
#5
|
|||
|
|||
This worked...Thanx!!!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|