![]() |
Highlighting Threads by Author's User Group
I want my thread list in each sub-forum to emphasize threads that were created by Administrators. For instance, have their name in red.
It would make sense to edit the memberaction_dropdown template because this is where the user names are printed, but I can't figure out what conditional statement to write. Any suggestions? I already have the posts within a single thread doing custom styling on the username, but this doesn't affect the list of thread in a forum. |
Try a condition like (not exactly like this since I put a comment in it!):
HTML Code:
<vb:if condition="is_member_of($memberinfo, x)"> |
Hi Lynne,
I'm afraid that your suggestion didn't work. No matter what number I substitute for X, it never executes as "true". I suspect that the $member variable doesn't evaluate. Any other suggestions? |
Whoops, sorry, it is $memberinfo. And, I didn't do the else correctly (why did I write another if???).
A correct example for replacing the username (need to do the same for musername): HTML Code:
<vb:if condition="is_member_of($memberinfo, 6)"> |
It works!
Thank you very much! |
Hi, now i think its not woriking ... :(
|
Quote:
|
All times are GMT. The time now is 10:27 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:
|