admin
15-05-2011, 09:36 AM
This mod/hack gives you a very simple yet much more noticeable Private Message notification. When the user has any PM's a red box will be added to the header of your website notifying the user of a new PM. It has animated text which is shown in the .gif screenshot attached below.
=|= Install =|=
Open Template - header
Add at Top -
<!-- Private Message Alert -->
<style type="text/css">
.alert {
background-color:#F00;
width:100%;
height:30px;
color:#fff;
font-size:14px;
display:block;
}
.alert p {
padding:5px;
}
.alert a {
color:#ccc;
text-decoration:none;
}
</style>
<vb:if condition="$bbuserinfo[pmunread]">
<div class="alert">
<p><span style="text-decoration:blink; font-weight:bold;">ATTENTION! {vb:raw bbuserinfo.username}</span> You've got {vb:raw bbuserinfo.pmunread} unread private message(s), click <a href="private.php">here</a> to view.</p></div>
</vb:if>
<!-- Private Message Alert End -->
Demo: http://www.vbulletin.org/forum/attac...5&d=1304172078 (http://www.vbulletin.org/forum/attachment.php?attachmentid=128655&d=1304172078)
http://upload.itvnn.net/do.php?img=53 (http://upload.itvnn.net/)
=|= Install =|=
Open Template - header
Add at Top -
<!-- Private Message Alert -->
<style type="text/css">
.alert {
background-color:#F00;
width:100%;
height:30px;
color:#fff;
font-size:14px;
display:block;
}
.alert p {
padding:5px;
}
.alert a {
color:#ccc;
text-decoration:none;
}
</style>
<vb:if condition="$bbuserinfo[pmunread]">
<div class="alert">
<p><span style="text-decoration:blink; font-weight:bold;">ATTENTION! {vb:raw bbuserinfo.username}</span> You've got {vb:raw bbuserinfo.pmunread} unread private message(s), click <a href="private.php">here</a> to view.</p></div>
</vb:if>
<!-- Private Message Alert End -->
Demo: http://www.vbulletin.org/forum/attac...5&d=1304172078 (http://www.vbulletin.org/forum/attachment.php?attachmentid=128655&d=1304172078)
http://upload.itvnn.net/do.php?img=53 (http://upload.itvnn.net/)