Log in

View Full Version : Title in postbit_legacy


Tailfeathers
08-25-2010, 09:38 AM
Hi everyone,

I used to have a thing in postbit_legacy that showed "Supporter!" if a member was part of usergroup 5. Can somebody help me with the code to make this happen again? I can't find it anymore in any of my records...

It was just something that checked whether or not a member was part of a certain usergroup, and if so, it showed a bit of text in postbit_legacy.

Thanks! :)

mmoore5553
08-25-2010, 11:22 AM
what was the custom profile name or usergroup id ? Which is added in postbit legacy ..oops i seen you said five

it was probably just an if condition like this.

<vb:if condition="is_member_of($bbuserinfo, 5)">Supporter!</vb:if>

Tailfeathers
08-25-2010, 12:17 PM
That was exactly it. Thank you :)

mmoore5553
08-25-2010, 12:19 PM
you are welcome.

Tailfeathers
08-25-2010, 12:20 PM
Oh sorry, I don't think it was quite it. I entered one for supporters, admins, and moderators - so people know who the supporters, admins, and mods are - but I see the admin one under every single username. I guess this means all mods will see the mod tag under everyone, and the supporters the supporter tag under everyone. I was hoping instead to have it so that only supporters have it under their username but so that all members can see it. Any ideas?

Thanks :)

mmoore5553
08-25-2010, 12:32 PM
can you link me a post ....not sure what you are saying but i might be just missing something this morning.

--------------- Added 1282747155 at 1282747155 ---------------

You might need to just add it like this ....


<vb:if condition="is_member_of($bbuserinfo, 5,)">
Show this to only supporter.

<vb:elseif condition="is_member_of($bbuserinfo, 5,6)" />
Show this to user group 5 and 6 which is mods and admins

<vb:else />
Show this to all registered users

</vb:if>

Lynne
08-25-2010, 12:52 PM
$bbuserinfo is you, the viewer. If you are doing this in the postbit, then I would guess you want to do something regarding the poster, not you. So, the variable to use would most likely be $post, not $bbuserinfo.

mmoore5553
08-25-2010, 12:56 PM
oops ha did not catch that one . Ugh it is going to be on of those mornings. Thanks lynne for catching that.

Tailfeathers
08-25-2010, 02:01 PM
That did the trick. Thank you!