PDA

View Full Version : vBulletin5 Variables


VineetN
12-02-2015, 09:31 AM
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.

Dave
12-02-2015, 09:41 AM
I haven't worked a lot with vBulletin 5, but maybe the following will work: {vb:raw bbuserinfo.usergroupid}.

VineetN
12-02-2015, 10:22 AM
Hi Dave,

Had tried this too.. It dint work..:-(

Replicant
12-04-2015, 03:48 AM
user.usergroupid is already set. You can display it with {vb:raw user.usergroupid}

VineetN
12-11-2015, 05:29 AM
This worked...Thanx!!!