Firefox PHP

"New private message" - animated .gif

Posted by Mandingo 
"New private message" - animated .gif
May 29, 2004 05:24AM
I think this should be fairly simple, but I can't quite figure it out. I want to replace the 'x new' message that appears when you have new private messages with a small animated .gif image.



Edited 1 time(s). Last edit at 05/29/2004 06:42AM by Mandingo.
Re: "New private message"-animated .gif
May 29, 2004 05:54AM
O.K. I got it, see the post below. Sorry for posting two messages before I got to it.



Edited 1 time(s). Last edit at 05/29/2004 06:44AM by Mandingo.
Re: "New private message"-animated .gif
May 29, 2004 06:42AM
Right, I got it -

find the lines relating to private messages in -

'index.tpl', 'read.tpl', and 'list.tpl'


they are -

<a class="PhorumNavLink" href="{PRIVATE_MESSAGES->inbox_url}">{LANG->PrivateMessages}{IF PRIVATE_MESSAGES->new}&nbsp;({PRIVATE_MESSAGES->new} {LANG->newflag}){/IF}</a>

and replace with -

<a class="PhorumNavLink" href="{PRIVATE_MESSAGES->inbox_url}">{LANG->PrivateMessages}</a>{IF PRIVATE_MESSAGES->new}<img src="[yoururl];{/IF}</a>

of course, ="[yoururl]; should be the URL of whatever picture you're going to use.




Edited 1 time(s). Last edit at 05/29/2004 06:42AM by Mandingo.
Re: "New private message"-animated .gif
June 01, 2004 04:39PM
you can also add it to cc_menu.tpl

I prefer just using the same "newflag" class as messages use:

from
{LANG->INBOX} </a>
to
{LANG->INBOX} {IF PRIVATE_MESSAGES->new}<span class="PhorumNewFlag">({PRIVATE_MESSAGES->new} {LANG->newflag})</span>{/IF}</a>
Sorry, only registered users may post in this forum.

Click here to login