News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Any chance to change the "topic title color" ?!?

Started by kyle007, March 28, 2008, 09:40:22 AM

Previous topic - Next topic

kyle007

Kender & JohnyB , thx so much...

Sorry i'm a nooby :D But i manage at last :p

Thx again,i think it comes in handy for everyone.....

Kender

thats what a "community" does, is help eachother
http://chucknorris2012.com  Avoid a roundhouse kick to the head!  Sign the petition

Bulakbol

Thanks Kender. Help is very much appreciated.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

kyle007

#23
I add the solution in my first post for everyone... ;)

Changed the icon so :=)

Bulakbol

You forgot to edit the message icon. Change it to "solved".  ;)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Eliana Tamerin

#25
I was just thinking about this, not that you need to do so, but more information.

If you chose JohnyB's solution and want to include more topics, you can always change the line
if ($row['ID_TOPIC'] == '122')
to
if ($row['ID_TOPIC'] == '122' || $row['ID_TOPIC'] == 'xxx')

replacing xxx with any topic ID you want. Add additional topics by just expanding the code by one more || $row['ID_TOPIC'] == 'xxx' line.

Not sure if that would work for Kendar's solution, but it might if you did this:

$color = $row['ID_TOPIC'] == '6395' ? 'red' : '';
$weight = $row['ID_TOPIC'] == '6395' ? 'font-weight: bold;' : '';

to
$color = $row['ID_TOPIC'] == '6395' || $row['ID_TOPIC'] == 'xxx' ? 'red' : '';
$weight = $row['ID_TOPIC'] == '6395' || $row['ID_TOPIC'] == 'xxx' ? 'font-weight: bold;' : '';
Do NOT PM me for support.

SimplePortal 2.3.6 is OUT!
SimplePortal Project Manager
Download | Docs
SimplePortal: Power of Simplicity!

Don Pepito


Bulakbol

Quote from: Don Pepito on April 07, 2008, 05:59:02 AM
How can i find out ID_TOPIC?
TNX.

Do you mean the id number of a topic? Hover your mouse over the topic title and the id number will show up in your browser's progress bar. It's in the bottom of your browser, something like this.

http://..../.../index.php?topic=116.0

The 116 is the topic id.
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines


Advertisement: