• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Today red, yesterday green

#1
Hello,

i would like have on the start site the date of post, when it was today, it will be red, and when it was yesterday it would be green color, and when it was befor to days or longer, it have to be in the normal color. Someone have a idea in what for template i have to search and what i have to change?
 

Jake Bunce

XenForo moderator
Staff member
#2
It's not quite that easy. There is javascript involved. Even inserting HTML into the time templates in page_container_js_body ends up getting escaped.

I don't have a good solution for this off hand. Modifying the javascript file would work but you really don't want to rely on file edits.