forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: justindee on August 23, 2007, 10:01:11 pm

Title: Private Messages/ friends
Post by: justindee 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
Title: Re: Private Messages/ friends
Post by: Stramm on August 28, 2007, 08:42:49 pm
What should change its color?
Title: Re: Private Messages/ friends
Post by: justindee 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 !.
Title: Re: Private Messages/ friends
Post by: Stramm 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>";
Title: Re: Private Messages/ friends
Post by: justindee on September 05, 2007, 05:41:52 pm
Thanks alot stramm this has awnserd my quistion !!!