Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

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

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.0.

This is for users to help other users, to discuss topics that are related to forum administration in general or problems in running Joomla. This is not the place to ask for Joomla support. If you want assistance with Joomla please ask at forum.joomla.org

Question How to add color to a echo command with a variable?

More
15 years 9 months ago - 15 years 9 months ago #53432 by iLucato
Hi folks, if I have a code like that
Code:
<?php echo $myvariable; ?>

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
Last edit: 15 years 9 months ago by iLucato.

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

More
15 years 9 months ago #53434 by Cerberus
another one i can help you with :)
Code:
<?php echo "<font color=\"#COLORCODE\"> $myvariable; </font>"; ?>

change COLORCODE to the css color code you wish

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

More
15 years 9 months ago #53435 by iLucato

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.

More
15 years 9 months ago #53436 by Cerberus

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
Code:
<?php echo "<font color=\"#COLORCODE\"> $myvariable </font>"; ?>

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

More
15 years 9 months ago #53437 by iLucato
Yup, as I said before...

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.

More
15 years 9 months ago #53450 by sozzled
Try this instead:
Code:
<?php echo '<font color="#COLORCODE">' . $myvariable . '</font>'; ?>
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.

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

Time to create page: 0.233 seconds