The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Title in postbit_legacy
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! |
#2
|
|||
|
|||
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> |
#3
|
||||
|
||||
That was exactly it. Thank you
|
#4
|
|||
|
|||
you are welcome.
|
#5
|
||||
|
||||
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 |
#6
|
|||
|
|||
can you link me a post ....not sure what you are saying but i might be just missing something this morning.
--------------- Added [DATE]1282747155[/DATE] at [TIME]1282747155[/TIME] --------------- 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> |
#7
|
||||
|
||||
$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.
|
#8
|
|||
|
|||
oops ha did not catch that one . Ugh it is going to be on of those mornings. Thanks lynne for catching that.
|
#9
|
||||
|
||||
That did the trick. Thank you!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|