Log in

View Full Version : PM notification


Rat1972
01-04-2008, 06:41 PM
I have searched the forums for hours, but i couldn't find it. I am searching for a mod/hack for new pm messages. I mean that the box (welcome box with the info when you last visited the forum and how many pm's you have) is going to flash/blink when there is a new message. I have found a hack that show a envelope, but i want that the whole box is flashing.

Anyone knows of there is such a hack on this forum?

dismas
01-04-2008, 08:50 PM
The whole box or just the line that says "Private Messages: Unread X, Total XX."? In order to have just that line blink, you don't need a hack. Just edit the template and put in some HTML to make the text blink.

Rat1972
01-04-2008, 09:13 PM
And how do you do that? Any suggestions?

thanks in advance

dismas
01-04-2008, 09:23 PM
The template that you want to edit is the navbar template. The line you're looking for is


<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>


And replace it with:

<if condition="$show['pmstats']"><br /><blink><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></blink></if>


Although, that won't work in IE since it's not supported. Most people don't like blinking text and it makes the page harder to read for those with vision difficulties, so it's largely unused. If you still want it to blink, you could write up some javascript for it. Here (http://www.w3schools.com/jsref/jsref_blink.asp) is a link to w3schools.com for that.

Rat1972
01-05-2008, 12:30 PM
Oke thanks mate