News:

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

Main Menu

Today / Yesterday Text

Started by tennis4you, December 25, 2010, 07:15:39 PM

Previous topic - Next topic

tennis4you

When I was using SMF Version 1.12 I was able to modify the color of text that says "Yesterday" & "Today" to show when posts were made.

Can someone give me instructions on how to do that in SMF 2.04?

Thank you!

kat

Admin>Features and options>Layout>Enable shorthand date display?

tennis4you

That's enabled, but is there a way to make that text colored?  Right now it is just black and bold.

tennis4you



tennis4you

:)

F.L.A.M.E.R. had me do the following to index.english.php in case anyone is interested.  This is a great addition to the forum!

$txt['today'] = '<font color="#FF0000"><strong>Today</strong></font> at ';
$txt['yesterday'] = '<font color="#00FF00"><strong>Yesterday</strong></font> at ';

Of course you can change the colors to whatever you wish them to be.

Advertisement: