Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3

Question Change colour of specific word in Language file ?

More
12 years 2 months ago #1 by WCMCC
Hi Folks,

I am wondering if it is possible to select a specific word from the language file and change its colour.
My theory is, I would like to change "Today" to green.
This will immediatly show the forum user which posts are current to date rather than just "unread" ones which may be old.

COM_KUNENA_DT_DATETIME_TODAY_FMT="Today %H:%M"

I have tried: {color:#006600;} ... well, that didn't work.
Obviously, not a big issue, just curious.

Thanks.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago - 12 years 2 months ago #2 by Matias
Just edit the string and add HTML into it (don't use double quotes!!!):

COM_KUNENA_DT_DATETIME_TODAY_FMT="<span style='color:green;'>Today %H:%M</span>"
Last edit: 12 years 2 months ago by Matias.
The following user(s) said Thank You: WCMCC

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #3 by WCMCC
Thank you.
Green & Bold

I used:
<FONT COLOR=#008000><b>Today %H:%M</b></FONT>

Assume it's no different to <span>

I need to get out more :blink:

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #4 by Matias
Well, your way is deprecated in HTML5, but it does the same. It also doesn't validate in XHTML, because of you're missing quotes (and tags are in upper case), here's better version:

<font color='#008000'><b>Today %H:%M</b></font>
The following user(s) said Thank You: WCMCC

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago - 12 years 2 months ago #5 by sozzled
<font color=...> is something that, in my opinion, should have been blown up with 1,000 kgs of cyber-dynamite years ago. <font color=...> was made obsolete in HTML4 as well as XHTML 1.0 and the only reason that it works today is because web browsers still allow for it. In future, web browsers won't allow for it. It's going to be a sad day, I know, when millions of websites around the world will stop "working" because they relied on the misbelief that old technology would be around forever and because no-one bothered to put things right.

Yes, <font color=...> will work but who knows for how long?
Last edit: 12 years 2 months ago by sozzled.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #6 by WCMCC
I Shall change it to "span style" in the interests of leaving old technology behind. ;)
learning something new everyday (although a little knowlege is a dangerous thing)
Note to self: stop messing with your forum codebefore you break it !

Please Log in or Create an account to join the conversation.

Time to create page: 0.509 seconds