PDA

View Full Version : Colored Thread Title for Moderator Forums


joeychgo
05-12-2004, 11:23 AM
Id like to make it so posts made in my admin/moderator forums come up a different color when "new posts" is clicked - alerting my mods that new message is there for them to read..................

I cant imagine this to be too difficult? But I dont have a clue hoe to do it.........

Xenon
05-12-2004, 11:30 AM
well, very easy i think.

open your threadbittemplate

then where you can find:
<td class="alt1">

add something like
<td class="alt1" <if condition="$thread[forumid] == xx">style="color: red;"</if>>

something like that should do the trick :)

Boofo
05-12-2004, 11:46 AM
There's 3 of them in there. Would you do it to all of them?

Xenon
05-12-2004, 11:49 AM
well, that's up to you, where exactly you change something, i just posted the how to do to mark them a bit more ;)

Boofo
05-12-2004, 11:51 AM
I tried it on the last one (the title) and it didn't work. I must have messed something up. ;)

joeychgo
05-12-2004, 07:58 PM
well, very easy i think.

open your threadbittemplate

then where you can find:
<td class="alt1">

add something like
<td class="alt1" <if condition="$thread[forumid] == xx">style="color: red;"</if>>

something like that should do the trick :)



I did this - and nothing happened, at least nothing I was looking for or noticed.

When you click "NEW POSTS" you get a listing of the new posts -- what I would like is to change the color of the threads listed there that originate from the moderator forum.

:)

joeychgo
05-13-2004, 04:56 PM
any ideas?

Xenon
05-13-2004, 05:04 PM
try to replace


$thread[title]

with

<if condition="$thread[forumid] == xx"><font color="red">$thread[title]</font>
<else />$thread[title]</if>

Boofo
05-13-2004, 05:43 PM
Would that be $$thread[threadtitle] or $thread[forumtitle]? There is no $thread[title] in the threadbit, not in mine, anyway. ;)

Xenon
05-13-2004, 05:52 PM
threadtitle ;)

excuse me, for not knowing every template out of mind :p

joeychgo
05-13-2004, 08:24 PM
try to replace


$thread[title]

with

<if condition="$thread[forumid] == xx"><font color="red">$thread[title]</font>
<else />$thread[title]</if>


That took the title out entirely of some posts but not only the ones in the forumid specified.......

Xenon
05-13-2004, 08:41 PM
read the post above, it's thredttitle, not title..

ap0c
05-13-2004, 09:24 PM
works fine too, thanks

Boofo
05-13-2004, 09:31 PM
threadtitle ;)

excuse me, for not knowing every template out of mind :p
Then I guess someone needs to do some template studying, huh? :p

joeychgo
05-13-2004, 10:58 PM
read the post above, it's thredttitle, not title..

I went to the threadbit template --

I looked for $thread[threadtitle] and replaced it with this <if condition="$thread[forumid] == 50"><font color="red">$thread[title]</font>


I found two instances of $thread[threadtitle] if I replace both instances with the code listed above, I get what you see in the screenshot....... If I replace only one of the two instances - I get some of the listings normal and some screwy (like the screenshot below) What you see below is the posts without titels, only the authors are listed

ap0c
05-14-2004, 09:17 AM
<if condition="$thread[forumid] == xx"><font color="red">$thread[threadtitle]</font>
<else />$thread[threadtitle]</if>

place after <strong>

joeychgo
05-14-2004, 10:13 AM
<if condition="$thread[forumid] == xx"><font color="red">$thread[threadtitle]</font>
<else />$thread[threadtitle]</if>

place after <strong>




this did nothing either - am I suppose to do this alone or in conjunction with the other???

ap0c
05-15-2004, 06:55 PM
this did nothing either - am I suppose to do this alone or in conjunction with the other???

try this:
1) edit the threadbit template
2)find :
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong>$thread[threadtitle]</strong><else />$thread[threadtitle]</if></a>


3) replace with:
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]"><if condition="$show['gotonewpost']"><strong><if condition="$thread[forumid] == xx"><font color="red">$thread[threadtitle]</font>
<else />$thread[threadtitle]</if></strong><else />$thread[threadtitle]</if></a>

then just replace the xx in $thread[forumid] == xx with the forum id of your choice

jisung
06-25-2004, 07:55 AM
where should I start to look to have this hack in 2.2.8?
TIA

Xenon
06-25-2004, 11:43 AM
the easiest way would be to install logician's template conditional hack, then this would be possible in quite the same way :)

jisung
06-27-2004, 04:35 PM
Xenon,
Got idea.
Thanks!

Xenon
06-28-2004, 08:56 PM
:)

you're welcome