PDA

View Full Version : Forum Display Enhancements - Change new posts link color


pein87
02-22-2009, 10:00 PM
Yet again another simple mod that you can use to change the links of your new posts color. You can also change the individual color of the thread on index.php.

This time no bothersome alexD on this one lol.

#########################################
# changing a new threads color on index and forumdisplay #
# copy right blue phoenix 2008-2009 edit by: pein87 #
# edit covers 3.8.x versions and is untested on 3.7.x #
#########################################
This template edit allows you to change the color of your threads when they have a new post or the thread has is new
I've gotten it to work on both the forumdisplay.php and on
index.php.

-------------------------------

Open the "threadbit" template to the style you wish to do this edit on.

Find:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold "</if>>$thread[threadtitle]</a>Find in:

style="font-weight:bold"Replace with:

style="font-weight:bold; color:#000000;"SPECAIL NOTE * swicth the color to your own color I choose black because its a dark color and easy to see on white.


Example with a html color name (linkchange2.jpg)

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold; color:red;"</if>>$thread[threadtitle]</a>
-------------------------------

Adding this to index.php is another simple edit

open the template "forumhome_lastpostby"

find:


<a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$lastpostinfo[lastthreadid]" style="white-space:nowrap" title="<phrase 1="$lastpostinfo[lastthread]">$vbphrase[go_first_unread_in_thread_x]</phrase>"><strong>$lastpostinfo[trimthread]</strong></a>Find in:

style="white-space:nowrap"Replace with:

style="white-space:nowrap; color:#000000;"and your done now your links color will change color if theres a new unread thread on both forumdisplay.php and index.php

adhmwagde
02-24-2009, 11:07 AM
installed .. thanks man :)

pein87
02-24-2009, 04:51 PM
Welcome thanks for installing if you need some help post and I`ll get right on it for you.

baghdad4ever
02-25-2009, 07:00 AM
thanks

reserved

Sp32
03-10-2009, 02:23 AM
installed, great idea, fairly easy, well done :)

marshal_ramdev
03-14-2009, 03:47 PM
thank you :)

Jasem
03-19-2009, 08:22 PM
Good work, thank you......

Installed

Alisa Lindsay
08-06-2009, 05:52 PM
This mod looks good. Quick question before I try it...does it only change the color if the thread/post is New or does it also change the color if a post has been edited?

Log on
09-03-2009, 08:37 AM
Great

a9eel
01-18-2010, 01:21 PM
thnx

hayaldunya
03-28-2010, 07:24 AM
thanks

hotlovercool4
05-14-2020, 08:00 PM
i have install in frist its show red color perfect after i was try to put back icon in admincp thread display option > Show Default Post Icon > i put back > images/icons/icon1.gif

after i removed again still not showing color now what to do please tell me

im haveing 3.8.11 version
why it happen i did anything

revert and again did still same

one thing more in index.php its showing black color it mean index working only