Kunena 6.0.9.1 Released
The Kunena team has announce the arrival of Kunena 6.0.9.1 [K 6.0.9.1] which is now available for download as a native Joomla extension for J! 4.2.x. This version addresses most of the issues that were discovered in K 6.0 and issues discovered during the development stages of K 6.0.
Question How to add color to a echo command with a variable?
How do I get to make this variable red, green, whatever? I tried to put $myvariable between the tag font color but it didn't work. Surelly I don't know how to connect them.
Any tip?
P.S. it will need to supress/overcome the css style.
Thanks in advance.
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Please Log in or Create an account to join the conversation.

change COLORCODE to the css color code you wish
Please Log in or Create an account to join the conversation.
Cerberus wrote: another one i can help you with
Code:<?php echo "<font color=\"#COLORCODE\"> $myvariable; </font>"; ?>
change COLORCODE to the css color code you wish
Hmmm, almost there. There is some error. It shows a semicolon and just the semicolon gets the color and the variable doesn't. I tried to remove the 1st semicolon, but the css style seems to override this command.
Any other comment?
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Please Log in or Create an account to join the conversation.
iLucato wrote:
Cerberus wrote: another one i can help you with
Code:<?php echo "<font color=\"#COLORCODE\"> $myvariable </font>"; ?>
change COLORCODE to the css color code you wish
Hmmm, almost there. There is some error. It shows a semicolon and just the semicolon gets the color and the variable doesn't. I tried to remove the 1st semicolon, but the css style seems to override this command.
Any other comment?
yer sry missed that semi colon, try now
Please Log in or Create an account to join the conversation.
I tried to remove the 1st semicolon, but the css style seems to override this command.
So, in sum, didn't work buddy. I was trying to make that moved "register" link you helped me in other thread to be in another color different from the CSS a:link for the all rest.
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Please Log in or Create an account to join the conversation.
Blue Eagle vs. Crypsis reference guide
Read my blog and

Please Log in or Create an account to join the conversation.
sozzled wrote: Try this instead:
Mind you, I really hate the use of the <font> tag. Much better to create a <div> or <span> and use CSS to change the colour.Code:<?php echo '<font color="#COLORCODE">' . $myvariable . '</font>'; ?>
Hey Sozzled, good morning. Thanks for your try too, but it didn't work too. I don't have knowledge about PHP stuffs I move into programming by trial, error, hit and guessing. Well, actually it is among a span tag, but as I don't know how these stuff works I'm not sure if the variable in question would call another style that is overriding this command we put the variable into. As I said, I was trying to change the register link color to be different from all others where the code is:
Anyway, thanks for your help.
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Please Log in or Create an account to join the conversation.
At the end of the all styles I added:
and at the PHP code I added in the class the kregisterlink, so it looked like that:
No success too.
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Please Log in or Create an account to join the conversation.
if I understand right you want to change color ONLY for Register link in profilebox.
If that is right you need to do some step, becouse all links are probably already defined in your joomla template and also in kunena.
You can do it in this way:
1. you need to add new class for only that link.
Open the file login.php in /loginbox/ dir. Find that code
as you can see I have added new class "k-reg" only for that link
2. you need to add color for that link in kunena css file
2.1 - open the file kunena.forum.css and add that rule at the end of file
now, if you just put file kunena.forum.css on server will not work becouse kunena use compressed file kunena.forum-min.css if not in debug mode.
3.1 - Go here refresh-sf.com/yui/ and compress kunena.forum.css file, you will have kunena.forum-min.css
3.2 - Now you can put file kunena.forum-min.css on your server and overwrite existing file
That's all.
P.S. If you want to make some change to kunena template, to avoid to do all this step for every change, in the configuration of Kunena set Enable Debug Mode option to "Yes", then you can make all changes you want to kunena.forum.css and kunena will load that file.
One time you have finished to personnalise your template, compress that file like I have described above and turn Enable Debug Mode option to "No".
Hope this helps
Best Regards
Please Log in or Create an account to join the conversation.
Ops, I'm sorry for my delay on this one.
Very interesting tip. Thanks a lot. I didn't know this debug feature.
Just one question. As I didn't know it, I have made some changes directly in the compressed file (kunena.forum-min.css). So I think my uncompressed is different now.
Is there a way to do the inverse way?
I mean, decompress to make my "kunena.forum-min.css" become a "kunena.forum.css", so when turning on the debug mode I can have the latest changes I have made. Now a days if I turn it on, I'm not getting my latest lay-out. I think it is due I have changed into "-min" instead. :0)
Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9
EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br
Please Log in or Create an account to join the conversation.