Support Forums

Private message notification

This is a discussion on Private message notification within the Templates, HTML, CSS, and Design Help forums, part of the General category; Hi all, Just wondered whether it is possible in the private messages section on the layout.tpl page to make a ...


Go Back   68 Classifieds Forums > General > Templates, HTML, CSS, and Design Help

Reply
 
Thread Tools Display Modes
Old 02-03-2010, 04:45 AM   #1
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default Private message notification

Hi all,

Just wondered whether it is possible in the private messages section on the layout.tpl page to make a slight alteration, in that when there are no new unread messages the info stays as it is.

But when there is one or more new messages for the number amount {$totalpms} to change color to say red to highlight the fact there is a new message ?

{if $pmon=="Y"}
<br />
<a href="{$smarty.const.URLS}/private.php">{$smarty.const.LANG_PRIVATE_MESSAGES} :<br></a> {$smarty.const.LANG_UNREAD} {$unreadpms}, {$smarty.const.LANG_TOTAL} {$totalpms}.
{/if}


Any thoughts gratefully received
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 02-03-2010, 06:33 AM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

Try replacing just this part {$smarty.const.LANG_UNREAD} {$unreadpms}, {$smarty.const.LANG_TOTAL} {$totalpms}. with something like this


{if $totalpms <> "0"}

<font color=red>
{$smarty.const.LANG_UNREAD} {$unreadpms}, {$smarty.const.LANG_TOTAL} {$totalpms}.
</font>

{else}

{$smarty.const.LANG_UNREAD} {$unreadpms}, {$smarty.const.LANG_TOTAL} {$totalpms}.

{/if}

I think this will work.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Old 02-03-2010, 07:46 AM   #3
Customer
 
jason1971's Avatar
 
Join Date: Jan 2009
Location: England
Posts: 147
Rep Power: 13
jason1971 is on a distinguished road
Default

Thanks your a star, worked a treat !

Jason
__________________
v4.1.8 Hosted - using Templatecodes neo2- green template
jason1971 is offline   Reply With Quote
Old 02-03-2010, 12:52 PM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 3,342
Rep Power: 84
seymourjames is a jewel in the rough
Default

When are you going to invest then Got a young lady designer on board that is into doing great logos and banners too.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68C, Version 4 Templates & Modules
Get the Best U.S Hosting, Best U.K Hosting
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Email notification when a private is send student21 Customizations 1 12-12-2009 05:24 PM
To show th subject of the private in the notification damiun Templates, HTML, CSS, and Design Help 6 12-09-2009 06:20 PM
Private Message Question .... MrGForce Technical Support 0 08-14-2009 11:04 AM
Problem with private message kayfi Technical Support 9 06-12-2009 09:22 AM
Thank you message page- custom message? zman78 Templates, HTML, CSS, and Design Help 6 04-05-2006 08:58 PM


All times are GMT -4. The time now is 04:06 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0