Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
TW7S - Notifications Alert - Easier To See Details »»
TW7S - Notifications Alert - Easier To See
Version: 1.00, by LifesGreatestGift LifesGreatestGift is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 01-02-2010 Last Update: 01-02-2010 Installs: 83
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

This will change the way you are alerted about notifications. The default vBulletin notification on the header is sometimes hard to see.

Demo Screenshots
(Demo's display one private message, and one visitor message)
Firefox Browsers: http://i50.tinypic.com/158b0g1.jpg
Non-Firefox Browsers: http://i50.tinypic.com/2yv59o1.jpg

Instructions
  • Upload files
  • Perform template edits


Open header

Find:
PHP Code:
<vb:if condition="$notifications_total">
                <
li class="popupmenu notifications" id="notifications">
                    <
class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}: <span class="notifications-number"><strong>{vb:raw notifications_total}</strong></span></a>
                    <
ul class="popupbody popuphover">
                        {
vb:raw notifications_menubits}
                    </
ul>
                </
li>
                <
vb:else />
                <
li class="popupmenu nonotifications" id="nonotifications">
                    <
class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
                    <
div class="popupbody popuphover">
                        <
p>{vb:rawphrase no_new_messages}</p>
                        <
p><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></p>
                    </
div>
                </
li>
                </
vb:if> 

Replace With:
PHP Code:
<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li

Open template headinclude

Add the following code to the bottom:
PHP Code:
<!-- TheWindows7Site Notifications -->
<
script type="text/javascript">
<!--
if ( 
document.all )
{
    function 
blink_show()
    {
        
blink_tags  document.all.tags('blink');
        
blink_count blink_tags.length;
        for ( 
0blink_counti++ )
        {
            
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 ( 
0blink_counti++ )
        {
            
blink_tags[i].style.visibility 'hidden';
        }
        
window.setTimeout'blink_show()'250 );
    }
    
window.onload blink_show;
}
-->
</
script>
<!-- / 
TheWindows7Site Notifications --> 

Open template navbar

Find:
PHP Code:
<div class="body_wrapper"

Add After:
PHP Code:
<!-- TheWindows7Site Notifications -->

<
vb:if condition="$notifications_total">

<
div style="margin: 5px 5px;"> <div style="padding-top:10px; padding-left: 5px; padding-right: 5px;"> <div style=" -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; background:#fff2f4 none repeat scroll 0 0; border:1px solid #be0000; margin:5px 10px 0; text-align:justify; "

<
div style="padding-top:3px; padding-bottom:3px;">

<
table width="100%" border="0"> <tbody> <tr
<
td width="5%" align="center"><img alt="" src="./images/notification.png" width="40" height="40"/></td
<
td width="90%">


                
                    <
b><u>{vb:rawphrase your_notifications}</u>: <span class="notifications-number"><blink>{vb:raw notifications_total}</span></b></blink>
                    
                        <
li><ul>{vb:raw notifications_menubits}</ul>
                    
                </
li>
                

</
td
<
td width="5%"></td
</
tr
</
tbody
</
table
</
div>
</
div
</
div
</
div>
</
vb:if>

<!-- / 
TheWindows7Site Notifications --> 


Enjoy!

Download Now

File Type: zip TheWindows7Site Notifications.zip (5.9 KB, 388 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-14-2010, 01:52 PM
DeviantFlash DeviantFlash is offline
 
Join Date: Mar 2009
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How does it look on dark themes?
Reply With Quote
  #13  
Old 02-22-2010, 07:00 PM
cTak cTak is offline
 
Join Date: Sep 2006
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can you change the color of the text?

I have a dark theme with white text and the text is not visible.

Thanks!
Reply With Quote
  #14  
Old 03-08-2010, 08:54 PM
rmxs rmxs is offline
 
Join Date: Apr 2006
Posts: 419
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
  #15  
Old 03-08-2010, 10:15 PM
MrMister MrMister is offline
 
Join Date: Jun 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect. I have had an issue with my dropdown box and this eliminated the box... Perfect!

Thank you a lot for this one!
Reply With Quote
  #16  
Old 03-12-2010, 02:57 PM
Front Range 4x4 Front Range 4x4 is offline
 
Join Date: Jan 2009
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, much better display than standard vBulletin *installed*
Reply With Quote
  #17  
Old 03-12-2010, 06:25 PM
Markos Markos is offline
 
Join Date: Aug 2006
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to get it like mine in navbar use the code below





Code:
<!-- TheWindows7Site Notifications -->

<vb:if condition="$notifications_total">

<div style="margin: 5px 5px;"> <div style="padding-top:10px; padding-left: 5px; padding-right: 5px;"> <div style=" -moz-border-radius-bottomleft:5px; -moz-border-radius-bottomright:5px; -moz-border-radius-topleft:5px; -moz-border-radius-topright:5px; background: none repeat scroll 0 0; border:1px solid #be0000; margin:5px 10px 0; text-align:justify; "> 

<div style="padding-top:3px; padding-bottom:3px;">

<table width="100%" border="0"> <tbody> <tr> 
<td width="5%" align="center"><img alt="" src="./images/notification.png" width="40" height="40"/></td> 
<td width="90%">


                
                    <b><u>{vb:rawphrase your_notifications}</u>: <span class="notifications-number"><blink>{vb:raw notifications_total}</span></b></blink>
                    
                        <li><ul>{vb:raw notifications_menubits}</ul>
                    
                </li>
                

</td> 
<td width="5%"></td> 
</tr> 
</tbody> 
</table> 
</div>
</div> 
</div> 
</div>
</vb:if>

<!-- / TheWindows7Site Notifications -->
Reply With Quote
  #18  
Old 03-15-2010, 02:37 AM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you make Group Invitation notifications go away? I clicked on it and it takes me to my list of group invitations. There is only a 'join' button, no other button to deny the invitation to get rid of the notification.
Reply With Quote
  #19  
Old 03-15-2010, 06:57 PM
PukkaBen PukkaBen is offline
 
Join Date: Apr 2009
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and it works great!! Only thing is, I am missing the 'forum/images/notification.png' image, is this something that you have added into the code that we need to download or should I have it from the vB uploaded files?
Reply With Quote
  #20  
Old 03-15-2010, 10:22 PM
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
Location: Louisville, KY USA
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

should be in the attachment.
Reply With Quote
  #21  
Old 03-16-2010, 06:00 AM
zeroality zeroality is offline
 
Join Date: Jul 2006
Posts: 187
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheWindows7Site View Post
should be in the attachment.
Hi Windows7, can you help me here (post above)?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:24 AM.


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.04676 seconds
  • Memory Usage 2,370KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (5)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete