color in coppermine color in coppermine
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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.