Is there a template conditional in VB5 that will allow me to show some text in a post if a member is in usergroup X only..
Template Conditional
Collapse
X
-
Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
-
The member that is viewing the post.
But after many many tries and page investigation, I think I found it.
Perhaps can you confirm?
Code:<vb:if condition="$user['usergroupid'] == XX">
Can you also confirm that in $user['xxx'], the xxx can be replaced by any field of the table "user"?
ThanksComment
-
use is_member_of($VAR, VALUE); instead, it checks additional and primary usergroups.Comment
-
I would guess the total contents of the array would on the location it is used at. Would probably need an extension to do a var_dump of the array in the location where you're using it at.Translations provided by Google.
Wayne Luke
The Rabid Badger - a vBulletin Cloud demonstration site.
vBulletin 5 APIComment
-
Comment
Related Topics
Collapse
-
by BiggarFor our forums, I'd like to give staff members a differently coloured backgrounds in their posts. To this end, I'd like to add the HTML class "staffPost" to each post made by a staff member...
-
Channel: Support Issues & Questions
-
-
by bbaxter51When posting, how do I show a member # in users profiles like in 3.x versions?
...-
Channel: Support Issues & Questions
-
Comment