Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 02 Dec 2015, 11:31
VineetN VineetN is offline
Join Date: Nov 2015
vBulletin5 Variables


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

I want to set this variable's value and output it using {vb:raw}.
Please help.
Reply With Quote
Old 02 Dec 2015, 11:41
Dave Dave is offline
Join Date: Jun 2010
Real name: Dave
I haven't worked a lot with vBulletin 5, but maybe the following will work: {vb:raw bbuserinfo.usergroupid}.
__________________ - security, development, exploits, vBulletin

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
Old 02 Dec 2015, 12:22
VineetN VineetN is offline
Join Date: Nov 2015
vBulletin variables

Hi Dave,

Had tried this too.. It dint work..:-(
Reply With Quote
Old 04 Dec 2015, 05:48
Replicant's Avatar
Replicant Replicant is offline
Join Date: Sep 2014
Real name: Mel
user.usergroupid is already set. You can display it with {vb:raw user.usergroupid}
VB5 mods - RepliClock VB4 mods - Member Online Status
Reply With Quote
Old 11 Dec 2015, 07:29
VineetN VineetN is offline
Join Date: Nov 2015
This worked...Thanx!!!
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 11:10.

Layout Options | Width: Wide Color: