vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Mini Mods - New Notification Box below Navbar (https://vborg.vbsupport.ru/showthread.php?t=214703)

Sofia 05-27-2009 10:00 PM

New Notification Box below Navbar
 
1 Attachment(s)
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>

Add below:

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


goxy63 05-27-2009 11:16 PM

First :)
Installed, rated, nominated

Thanks

cspears22 05-28-2009 12:00 AM

Thanks!

Mike-D 05-28-2009 05:52 AM

Keep in mind that Blink effects are being supported only for Firefox Browsers...

HTML Code:

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

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

Sofia 05-28-2009 06:10 AM

Quote:

Originally Posted by Mike-D (Post 1818574)
Keep in mind that Blink effects are being supported only for Firefox Browsers...

HTML Code:

<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? 05-28-2009 12:14 PM

Quote:

Originally Posted by Sofia (Post 1818585)
You're right. Directly fixed with blink tags. ;)

so it does work with IE now?

Sofia 05-28-2009 12:25 PM

Quote:

Originally Posted by DobieGillis? (Post 1818719)
so it does work with IE now?

Yes :)

DobieGillis? 05-28-2009 12:34 PM

thanks Sofia, as always!

Black Tiger 05-31-2009 11:29 PM

Oh nice I was looking for something like this, thank you!!

JointRolla420 06-30-2009 04:05 AM

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


All times are GMT. The time now is 11:36 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01123 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete