![]() |
vB conditional for poster usergroup?
I was going to use this...
<vb:if condition="is_member_of($bbuserinfo, 1,2,3)">Show this to user group 1, 2, and 3</vb:if> but I assume that this for the the usergroup of the person viewing the thread/post. Is there a conditional for the person who posted the post? I am trying to get the usergroup of the person who made the thread/post, not the person who is viewing the thread/post. |
You can replace $bbuserinfo with $post (assuming you're using it in postbit or postbit_legacy).
|
Does $post return the usergroup of the poster or does it return the post number?
|
Quote:
It's an array with many entries, but in addition to all the information about the post itself, it contains the userdata from the author of the post, so it can work in place of $bbuserinfo to pass to is_member_of(). |
Great... thanks.
|
All times are GMT. The time now is 10:39 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|