PDA

View Full Version : Mini Mods - New Notification Box below Navbar


Sofia
27 May 2009, 23:40
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.


http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=214703


https://www.vbulletin.org/forum/external/2010/05/28.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) :

<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>Add below:

<!-- 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 -->

goxy63
28 May 2009, 00:16
First :)
Installed, rated, nominated

Thanks

cspears22
28 May 2009, 01:00
Thanks!

Mike-D
28 May 2009, 06:52
Keep in mind that Blink effects are being supported only for Firefox Browsers...

<div style="text-decoration: blink; ... >


Most Browsers does not support this so you have have to extend this with a simple JS ;)

Sofia
28 May 2009, 07:10
Keep in mind that Blink effects are being supported only for Firefox Browsers...

<div style="text-decoration: blink; ... >
Most Browsers does not support this so you have have to extend this with a simple JS ;)

You're right. Directly fixed with blink tags. ;)

DobieGillis©
28 May 2009, 13:14
You're right. Directly fixed with blink tags. ;)

so it does work with IE now?

Sofia
28 May 2009, 13:25
so it does work with IE now?

Yes :)

DobieGillis©
28 May 2009, 13:34
thanks Sofia, as always!

Black Tiger
01 Jun 2009, 00:29
Oh nice I was looking for something like this, thank you!!

JointRolla420
30 Jun 2009, 05:05
AWESOME!!!! My custom skin designer did not include the notifications code because he moved the pm's thing into header and removed the navbar that shows your username and pm count etc.

Now ppl will know when they have a visitor msg again xD

thanks

ahmer
30 Jul 2009, 21:08
working gr8

gearspro
05 Sep 2009, 16:57
thanks, works great. installed

enemy@fps
05 Sep 2009, 21:54
installed works great

thanks

COL NIL SATIS
06 Sep 2009, 18:14
wheres the template navbar???

Ice-Maiden
07 Sep 2009, 15:44
installed and works like a dream thankyou! :)

t6mnt
09 Sep 2009, 20:13
Thanks

Installation is in

Forums T6mnt

www.t6mnt.com/vb

Deviant K1
09 Sep 2009, 21:14
INSTALLED!

Works great... THANKS! :)

The Coon
09 Sep 2009, 21:53
Installed! Cool & THX!

kylek
18 Oct 2009, 03:21
Glad I found this, just wondered what controls the background color of the box, would like to have it stick out a bit more when its activated.

COL NIL SATIS
21 Oct 2009, 15:55
installed now!!! thanks

kylek
23 Oct 2009, 03:28
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.

Log on
24 Oct 2009, 08:29
Great

Kingdombuilder
26 Oct 2009, 17:03
Very nice hack, Thank you I'm installing now...

Kingdombuilder
26 Oct 2009, 17:17
Works Great!!! Thank you...

Bansheebob
27 Jan 2010, 15:59
Must be only me then, didnt work. All I got was a "download now" text under navbar.

Mostjolly
16 Aug 2010, 06:43
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?

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 -->

WingsAA
10 Dec 2010, 15:08
Is there a way to get the blink working in Chrome? I have it working in IE

mastertek2000
09 Jan 2011, 22:54
is there a way to make this larger thanks great work

Rean
19 Jan 2011, 04:51
my style doesn't support notifications.... what should i do to install this mod? thanx

ricardoNJ
05 Mar 2011, 22:50
Hi, I want to know if is possible to do this:

https://www.vbulletin.org/forum/ (http://img146.imageshack.us/i/notid.jpg/)

This notifications in this "red square" .
Thanks!

ricardoNJ
19 Mar 2011, 21:55
Nobody knows?

Hornstar
02 Apr 2011, 00:21
Hi, I want to know if is possible to do this:

http://img146.imageshack.us/img146/1363/notid.jpg (http://img146.imageshack.us/i/notid.jpg/)

This notifications in this "red square" .
Thanks!

Yeah that looks very sexy!

wish I knew how to do that.

nacaruncr
21 Apr 2011, 19:04
how i can show it as same as when aren't any one notification???