Advanced search  

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]

Pages: [1]   Go Down

Author Topic: color in coppermine  (Read 3025 times)

0 Members and 1 Guest are viewing this topic.

neeth

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • I love my gallery
    • Gelipo
color in coppermine
« on: June 30, 2005, 06:31:41 pm »

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

Code: [Select]
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
Logged
[

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Re: color in coppermine
« Reply #1 on: June 30, 2005, 07:47:10 pm »

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>';
Logged
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • I love my gallery
    • Gelipo
Re: color in coppermine
« Reply #2 on: June 30, 2005, 08:20:49 pm »

thnx man ;)
Logged
[

neeth

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 131
  • I love my gallery
    • Gelipo
Re: color in coppermine
« Reply #3 on: June 30, 2005, 08:27:49 pm »

hm, i dont have luck with colors ;)

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: color in coppermine
« Reply #4 on: June 30, 2005, 11:47:41 pm »

try
Code: [Select]
$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.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 16 queries.