Private Messages/ friends Private Messages/ friends
 

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

Private Messages/ friends

Started by justindee, August 23, 2007, 10:01:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

justindee

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

Stramm


justindee

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 !.

Stramm

in themes.inc.php find
$loginFormHtml .= "<a href='pms.php'>".$lang_loginform['pms']."</a> ".$tot_new_messages.$lang_loginform['unread_total'].$tot_all_messages."</div>";

and replace with
$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

Thanks alot stramm this has awnserd my quistion !!!