View Full Version : highlighted posts for usergroup
dethfire
12-26-2004, 04:30 AM
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?
deathemperor
12-27-2004, 08:54 AM
this could be easily done via templates conditions.
dethfire
12-27-2004, 03:54 PM
this could be easily done via templates conditions.
do you know what template and what variable to test?
deathemperor
12-28-2004, 05:01 AM
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
dethfire
12-29-2004, 02:32 AM
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
hmmm yeah it doesn't work for me
dethfire
12-31-2004, 06:11 PM
anyone know why this doesn't work, does it work for anyone else?
dethfire
01-10-2005, 05:53 AM
has anyone tried it, anyone see anything wrong with the code, seems strange to me
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.