Sofia
05-27-2009, 10:00 PM
New PM Box below Navbar
This mod allows you to add a New PM Box. This box shows up below navbar only when a member receive a new PM. There is a blink effect on the text (works with firefox and IE :) ).
3.8 version : https://vborg.vbsupport.ru/showthread.php?t=214703
http://www.picdo.net/Fichiers/4a82b5167b6666fa1c4a1666c4a7b6db/1.png
Installation
In your template headinclude
Add at the bottom:
<!-- notifications blink -->
<script type="text/javascript">
<!--
if ( document.all )
{
function blink_show()
{
blink_tags = document.all.tags('blink');
blink_count = blink_tags.length;
for ( i = 0; i < blink_count; i++ )
{
blink_tags[i].style.visibility = 'visible';
}
window.setTimeout( 'blink_hide()', 700 );
}
function blink_hide()
{
blink_tags = document.all.tags('blink');
blink_count = blink_tags.length;
for ( i = 0; i < blink_count; i++ )
{
blink_tags[i].style.visibility = 'hidden';
}
window.setTimeout( 'blink_show()', 250 );
}
window.onload = blink_show;
}
-->
</script>
<!-- / notifications blink -->
In your template Navbar,
Find (at the end of this template) :
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>
<!-- / PAGENAV POPUP -->
</if>Add below:
<!-- pm notification -->
<if condition="THIS_SCRIPT != 'private' && $show['member'] && $show['pmstats'] && $vbulletin->userinfo['pmunread']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="alt1" align="center">
<div style="text-align: center">
<blink><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]"><font color="red">$vbphrase[private_messages_nav]</font></phrase></blink>
</div>
</td>
</tr>
</tbody>
</table>
<br />
</if>
<!-- / pm notification -->Enjoy :)
This mod allows you to add a New PM Box. This box shows up below navbar only when a member receive a new PM. There is a blink effect on the text (works with firefox and IE :) ).
3.8 version : https://vborg.vbsupport.ru/showthread.php?t=214703
http://www.picdo.net/Fichiers/4a82b5167b6666fa1c4a1666c4a7b6db/1.png
Installation
In your template headinclude
Add at the bottom:
<!-- notifications blink -->
<script type="text/javascript">
<!--
if ( document.all )
{
function blink_show()
{
blink_tags = document.all.tags('blink');
blink_count = blink_tags.length;
for ( i = 0; i < blink_count; i++ )
{
blink_tags[i].style.visibility = 'visible';
}
window.setTimeout( 'blink_hide()', 700 );
}
function blink_hide()
{
blink_tags = document.all.tags('blink');
blink_count = blink_tags.length;
for ( i = 0; i < blink_count; i++ )
{
blink_tags[i].style.visibility = 'hidden';
}
window.setTimeout( 'blink_show()', 250 );
}
window.onload = blink_show;
}
-->
</script>
<!-- / notifications blink -->
In your template Navbar,
Find (at the end of this template) :
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>
<!-- / PAGENAV POPUP -->
</if>Add below:
<!-- pm notification -->
<if condition="THIS_SCRIPT != 'private' && $show['member'] && $show['pmstats'] && $vbulletin->userinfo['pmunread']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr>
<td class="alt1" align="center">
<div style="text-align: center">
<blink><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]"><font color="red">$vbphrase[private_messages_nav]</font></phrase></blink>
</div>
</td>
</tr>
</tbody>
</table>
<br />
</if>
<!-- / pm notification -->Enjoy :)