color in coppermine color in coppermine
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

color in coppermine

Started by neeth, June 30, 2005, 06:31:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neeth

i need that all of this code be red, (cod from onlinestats.php)
need that number of users and users be red

echo ($num_online2 == 1) ? "We have 1 user online in last 24h" : "We have {$num_online2} users online in last 24h\n";

echo " :: {$num_reg_online2} Registered, and ";

echo ($num_guests2 == 1) ? "1 Guest<br>" : "{$num_guests2} Guests<br>\n";

echo "Registered Users: {$logged_in_names2}<br />\n";

echo '</td></tr>';


thnx for any help

NeMo
[

OmegaGOD

echo ($num_online2 == 1) ? "<font color=#FF0000>We have 1 user online in last 24h" : "We have {$num_online2} users online in last 24h\n";

echo " :: {$num_reg_online2} Registered, and ";

echo ($num_guests2 == 1) ? "1 Guest<br>" : "{$num_guests2} Guests<br>\n";

echo "Registered Users: {$logged_in_names2}<br /></font>\n";

echo '</td></tr>';
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

neeth

[

neeth

hm, i dont have luck with colors ;)

i try, and try to change color, and places of code, but color dont change ??
[

Joachim Müller

try$linebreak = "\n";
echo '<span style="color:red">';
echo ($num_online2 == 1) ? 'We have 1 user online in last 24h' : 'We have ' . $num_online2 . ' users online in last 24h' . $linebreak;
echo ' :: {$num_reg_online2} Registered, and ';
echo ($num_guests2 == 1) ? '1 Guest<br />' : $num_guests2 . ' Guests<br />' . $linebreak;
echo 'Registered Users: ' . $logged_in_names2 . '<br />' . $linebreak;
echo '</span>';
echo '</td></tr>'

If this doesn't work, post a link, so we can see the context the code is in.