View Full Version : How to add text in postbit_userinfo based on usergroup?
WichitaRacing
12-02-2003, 12:22 AM
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.
Koutaru
12-02-2003, 02:27 AM
If you're using vB2 right now I suggest you use Logician's conditionals hack
WichitaRacing
12-02-2003, 06:51 PM
If you're using vB2 right now I suggest you use Logician's conditionals hack
vB3 for me. Will those hacks not work w/ 3? Where do I find them?
assassingod
12-02-2003, 06:54 PM
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:
<if condition="$bbuserinfo[usergroupid]==xx">
some text
<else />
text for noone in that usergroup
</if>
WichitaRacing
12-02-2003, 09:42 PM
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:
<if condition="$bbuserinfo[usergroupid]==xx">
some text
<else />
text for noone in that usergroup
</if>
Hmm, I guess that doesn't work for "additional usergroups." I've added on called "Donating Members," but this code isn't making the text appear for users that have this checked as an additional usergroup. :(
Zachery
12-02-2003, 09:50 PM
Hmm, I guess that doesn't work for "additional usergroups." I've added on called "Donating Members," but this code isn't making the text appear for users that have this checked as an additional usergroup. :(
yes it does. i told you how to check for that over at vb.com :D
<if condition="is_member_of($post, USERGROUPID_OF_THE_GROUP)">Supporting Member</if>
WichitaRacing
12-03-2003, 01:51 AM
yes it does. i told you how to check for that over at vb.com :D
<if condition="is_member_of($post, USERGROUPID_OF_THE_GROUP)">Supporting Member</if>
:(
Zachery
12-03-2003, 01:54 AM
:(
wheres that second part from?
is_member_of should work perfectly. it was designed to do just what im telling you
WichitaRacing
12-03-2003, 01:57 AM
wheres that second part from?
That's what it told me when I tried to save the template after adding the following:
<if condition="is_member_of($post, 14)">Supporting Member</if>
14 is the id, from the usergroup manager, of my "Donating Members" usergroup.
Zachery
12-03-2003, 02:10 AM
should work just fine does it?
WichitaRacing
12-03-2003, 11:51 AM
should work just fine does it?
Nope. I get the error message that I attached above.
If it matters, I'm on beta 6.
Zachery
12-03-2003, 02:08 PM
Nope. I get the error message that I attached above.
If it matters, I'm on beta 6.
mmm it might, but i dont think so.....
i only have beta 7 instaltions where i work so i couldnt tell you
WichitaRacing
12-03-2003, 03:13 PM
mmm it might, but i dont think so.....
i only have beta 7 instaltions where i work so i couldnt tell you
I'm going straight to gamma when it comes out, so I'll try it then (hopefully in the next couple days?).
WichitaRacing
12-14-2003, 05:27 AM
I used this on my gamma installation and believe it is working now.
zajako
02-04-2004, 09:30 PM
thanks, this was useful as it is one of the few things that shows up when searching is_member_of
T3MEDIA
01-23-2005, 10:42 PM
should work just fine does it?
any updates on this?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.