![]() |
highlighted posts for usergroup
I am thinking of trying to make a hack where if a user of a certain usergroup posts a thread the thread will become highlighted in the forum view. Any ideas to get me started?
|
this could be easily done via templates conditions.
|
Quote:
|
in threadbit
search for: <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a> replace with <a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong><if condition="is_member_of($thread,5)"><span color="red"> $thread[threadtitle]</span><else />$thread[threadtitle]</if></strong><else /><if condition="is_member_of($thread,5)"><span color="red"> $thread[threadtitle]</span><else />$thread[threadtitle]</if></if></a> this changes the threatitle to red if it's of members of usergroupid 5, I didn't test it though |
Quote:
hmmm yeah it doesn't work for me |
anyone know why this doesn't work, does it work for anyone else?
|
has anyone tried it, anyone see anything wrong with the code, seems strange to me
|
All times are GMT. The time now is 08:38 AM. |
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:
|