color in coppermine color in coppermine
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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.