![]() |
How to add text in postbit_userinfo based on usergroup?
Somebody over on vB.com suggested that I try some code along the lines of :
<if condition="is_member_of($post, USERGROUPID_OF_THE_GROUP)">whateverIwanttowrite</if> I'm need to know the exact code that I would use for this, and if I need to do anything else. What I'm doing, is adding members who donate to a secondary usergroup. I want "donating member" or something like that to be in their info. |
If you're using vB2 right now I suggest you use Logician's conditionals hack
|
Quote:
|
Just to note, no vB2 hacks will work with vB3. Also, if you want to show text for a certain usergroup, you would use in your template:
Code:
<if condition="$bbuserinfo[usergroupid]==xx"> |
Quote:
|
Quote:
<if condition="is_member_of($post, USERGROUPID_OF_THE_GROUP)">Supporting Member</if> |
1 Attachment(s)
Quote:
|
Quote:
is_member_of should work perfectly. it was designed to do just what im telling you |
Quote:
Code:
<if condition="is_member_of($post, 14)">Supporting Member</if> |
should work just fine does it?
|
Quote:
If it matters, I'm on beta 6. |
Quote:
i only have beta 7 instaltions where i work so i couldnt tell you |
Quote:
|
I used this on my gamma installation and believe it is working now.
|
thanks, this was useful as it is one of the few things that shows up when searching is_member_of
|
Quote:
|
All times are GMT. The time now is 07: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:
|