The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
New Notification Box below Navbar Details »» | |||||||||||||||||||||||||||
New Notification Box below Navbar This mod allows you to add a Notification Box. This box shows up below navbar only when a member receive a notification (private message, visitor message, friends, social groups, etc...). There is a blink effect on the text. https://vborg.vbsupport.ru/vborg_mis...hreadid=214703 Installation In your template headinclude Add at the bottom: HTML Code:
<!-- 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) : HTML Code:
<if condition="$show['member'] AND $notifications_total"> <!-- notifications menu --> <div class="vbmenu_popup" id="notifications_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr> $notifications_menubits </table> </div> <!-- / notifications menu --> </if> HTML Code:
<!-- notifications box --> <if condition="$show['member'] AND $notifications_total"> <!-- notifications menu --> <div class="vbmenu_popup" id="notifbox_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr> $notifications_menubits </table> </div> <!-- / notifications box --> </if> <!-- notification box --> <if condition="$show['notifications']"> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <if condition="$show['member']"> <td class="alt2" align="center" nowrap="nowrap"> <div class="smallfont"> <if condition="$show['notifications']"> <div><span id="notifbox"><blink><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <font color="red"><strong>$notifications_total</strong></font></blink></span></div> <if condition="$show['popups']"> <script type="text/javascript"> vBmenu.register("notifbox"); </script> </if> </if> </div> </td> </if> </tr> </table> <br /> </if> <!-- / notification box --> Screenshots
Show Your Support
|
Comments |
#22
|
|||
|
|||
One problem, member logged on and has 22 visitor messages showing, how does one get them removed from showing? Not as in delete them but have it not show the amount. Like when you have 1 pm showing, you view it and then you have no pm's showing.
|
#23
|
|||
|
|||
Great
|
#24
|
||||
|
||||
Very nice hack, Thank you I'm installing now...
|
#25
|
||||
|
||||
Works Great!!! Thank you...
|
#26
|
|||
|
|||
Must be only me then, didnt work. All I got was a "download now" text under navbar.
|
#27
|
||||
|
||||
Will somebody show me how to use the <else/>..
Currently, whenever there is a notification message the box/message pops up which is perfect, however I want the box/message "Remains Visible" EVEN if there isn't any new notification. Below, I believe the <else/> code are the only code to satisfy my request, it's just I don't have a clue how the <else/> works... Please have a look below, I place the <else/> after the have notification.. this way if there's NO new message shouldn't it display the corresponding code I provide? Code:
You currently have <!-- notifications box --> <if condition="$show['member'] AND $notifications_total"> <!-- notifications menu --> <div class="vbmenu_popup" id="notifbox_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr> $notifications_menubits </table> </div> <!-- / notifications box --> </if> <!-- notification box --> <if condition="$show['notifications']"> <if condition="$show['member']"> <if condition="$show['notifications']"> <span id="notifbox"><blink><font color="orange"><strong>$notifications_total</strong></font><a href="usercp.php$session[sessionurl_q]"></a> </blink></span> Notification Messages. <else/> <strong><blink><a href="usercp.php$session[sessionurl_q]"><font color="orange">$notifications_total</font></a></blink></strong> Notification Messages. <if condition="$show['popups']"> <script type="text/javascript"> vBmenu.register("notifbox"); </script> </if> </if> </if> </if> <!-- / notification box --> |
#28
|
|||
|
|||
Is there a way to get the blink working in Chrome? I have it working in IE
|
#29
|
|||
|
|||
is there a way to make this larger thanks great work
|
#30
|
|||
|
|||
my style doesn't support notifications.... what should i do to install this mod? thanx
|
#31
|
|||
|
|||
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|