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: Private Messages/ friends  (Read 3990 times)

0 Members and 1 Guest are viewing this topic.

justindee

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Private Messages/ friends
« on: August 23, 2007, 10:01:11 pm »

is it possible. when u have a unread pm, or a freind to accept. it wil change to a difrent color ? if so could sombody help me code it ? , thanks in advance
« Last Edit: September 05, 2007, 08:59:51 pm by Stramm »
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Private Messages/ friends
« Reply #1 on: August 28, 2007, 08:42:49 pm »

What should change its color?

justindee

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Private Messages/ friends
« Reply #2 on: September 04, 2007, 08:52:35 pm »

the links in {fourm} , i.e (you have 0 messages) < will be black (you have 1 message) << wil be red. nibbler coded this for me before but i lost all my files !.
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Private Messages/ friends
« Reply #3 on: September 04, 2007, 09:04:27 pm »

in themes.inc.php find
Code: [Select]
$loginFormHtml .= "<a href='pms.php'>".$lang_loginform['pms']."</a> ".$tot_new_messages.$lang_loginform['unread_total'].$tot_all_messages."</div>";
and replace with
Code: [Select]
$color = ($tot_new_messages > 0) ? "style='color:red'" : "";
$loginFormHtml .= "<a href='pms.php' $color>".$lang_loginform['pms']."</a> ".$tot_new_messages.$lang_loginform['unread_total'].$tot_all_messages."</div>";

justindee

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Private Messages/ friends
« Reply #4 on: September 05, 2007, 05:41:52 pm »

Thanks alot stramm this has awnserd my quistion !!!
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 19 queries.