Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 02 Dec 2015, 10:31
VineetN VineetN is offline
 
Join Date: Nov 2015
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.
Reply With Quote
  #2  
Old 02 Dec 2015, 10: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}.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

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

Hi Dave,

Had tried this too.. It dint work..:-(
Reply With Quote
  #4  
Old 04 Dec 2015, 04: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
  #5  
Old 11 Dec 2015, 06:29
VineetN VineetN is offline
 
Join Date: Nov 2015
This worked...Thanx!!!
Reply With Quote
Reply



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 20:36.

Layout Options | Width: Wide Color: