View Full Version : vBulletin Internal Variables
Farcaster
Fri 13th Jan '06, 12:17pm
Is there a comprehensive list of internal vBulletin internal variables available? I would like to toy with using template conditionals, but I am not familiar with all the variable names.
Thanks.
Zachery
Fri 13th Jan '06, 3:02pm
No, there are way to many to even begin listing. But if you ask I can attempt to tell you :)
Farcaster
Fri 13th Jan '06, 5:26pm
Okay. Well, at the moment, I am specifically interested in getting the user's primary group id as well as the group id of all secondary groups they are a member of. Could you tell me how to do that?
Zachery
Sat 14th Jan '06, 4:39am
User who is browsing that page, or in a post?
Farcaster
Sat 14th Jan '06, 3:40pm
Page. I am attempting to selectively show certain parts of the forum home based on primary and secondary groups.
Zachery
Sat 14th Jan '06, 8:01pm
You can already do that with usergroup permissions, if you are talking about forums
Farcaster
Sat 14th Jan '06, 8:10pm
I understand. But there are other elements in the template that I specifically want to appear or not to appear based on user groups. Like the welcome message for unregistered users that is mentioned in the forum documentation.... So, without bantering back and forth here any more, could you please point me in the direction of some documentation that describes the user object?
I need be able to put in a conditional statement to display something if a user is either a member of a group or a secondary member of a group. How is that done?
Zachery
Sat 14th Jan '06, 8:18pm
<if condition="is_member_of($bbuserinfo, X)">
Where X is the group you are checking.
This works for both checking primary and secondary, but this is the only way to check a secondary usergroup.
Farcaster
Sat 14th Jan '06, 8:44pm
Thank you kindly!
Powered by vBulletin™ Version 4.0.0 Beta 4 Copyright © 2009 vBulletin Solutions, Inc. All rights