![]() |
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. |
I haven't worked a lot with vBulletin 5, but maybe the following will work: {vb:raw bbuserinfo.usergroupid}.
|
Hi Dave,
Had tried this too.. It dint work..:-( |
user.usergroupid is already set. You can display it with {vb:raw user.usergroupid}
|
This worked...Thanx!!!
|
All times are GMT. The time now is 09:12 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:
|