vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Miscellaneous Hacks - TW7S - Notifications Alert - Easier To See (https://vborg.vbsupport.ru/showthread.php?t=232032)

LifesGreatestGift 01-02-2010 10:00 PM

TW7S - Notifications Alert - Easier To See
 
1 Attachment(s)
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! :)

Dr.osamA 01-03-2010 09:47 PM

installed

thanxx man
________
HOW TO INSERT STARCRAFT 2 REPLAYS

Charlie98902 01-03-2010 10:59 PM

What about those using social groups. Also what about those using the social groups notification alert mos in the add ons section? I am interested in this but just had a few questions.

LifesGreatestGift 01-04-2010 10:44 AM

Quote:

Originally Posted by Charlie98902 (Post 1946467)
What about those using social groups. Also what about those using the social groups notification alert mos in the add ons section? I am interested in this but just had a few questions.

Any alert that would normally show up on the header will show up in my mod :)

Charlie98902 01-04-2010 11:01 AM

Thanks for the information. Will install in a few.

Alexandre.R 01-04-2010 02:58 PM

Installed! Great work :)

Trek 01-07-2010 04:01 PM

Tagged until I upgrade, but looks nice and clean. Nice work.

garretbyrne 01-19-2010 02:03 AM

Love it man... well done..

Sador 01-21-2010 11:34 AM

Tagged, looks nice.

saqibnpt 01-21-2010 04:34 PM

thanks looking good

DeviantFlash 02-14-2010 01:52 PM

How does it look on dark themes?

cTak 02-22-2010 07:00 PM

How can you change the color of the text?

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

Thanks!

rmxs 03-08-2010 08:54 PM

Thanks :)

MrMister 03-08-2010 10:15 PM

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

Thank you a lot for this one!

Front Range 4x4 03-12-2010 02:57 PM

Thank you, much better display than standard vBulletin *installed*

Markos 03-12-2010 06:25 PM

to get it like mine in navbar use the code below

http://img.photobucket.com/albums/v3...977/UO0037.jpg

http://img.photobucket.com/albums/v3...977/UO0036.jpg

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


zeroality 03-15-2010 02:37 AM

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.

PukkaBen 03-15-2010 06:57 PM

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?

LifesGreatestGift 03-15-2010 10:22 PM

should be in the attachment.

zeroality 03-16-2010 06:00 AM

Quote:

Originally Posted by TheWindows7Site (Post 2004397)
should be in the attachment.

Hi Windows7, can you help me here (post above)?

zeroality 03-18-2010 07:21 PM

Uninstalled, more bugs popped up.

YankForum 04-07-2010 07:52 AM

nice and clean
certainly installed

Razfaz 04-08-2010 07:52 AM

Hi,
is it possible to show the posts or threads awaiting for moderation for the Mods?

daveaite 04-14-2010 08:08 PM

Don't forget to put a blank index.html in the login folder that you uploaded. Somehow I traveled to the directory one time from the login area.

Iroc88 04-17-2010 05:20 AM

Very Nice TW7S. Installed!! :)

Alecsmith 05-11-2010 07:37 AM

Installed working on VB 4.0.2 but not on 4.0.3 code need to be update

penuch 05-13-2010 05:52 AM

Ok, I really like this, But I have a dark skin installed, how can I change the text color?

hcmagix 05-13-2010 06:23 AM

Quote:

Originally Posted by penuch (Post 2036144)
Ok, I really like this, But I have a dark skin installed, how can I change the text color?


look at line 8
Code:

topright:5px; background:#fff2f4 none repeat scroll 0 0; border:1px solid #be0000; margin:5px 10px 0; text-align:justify; ">
the text color u must insert a own class into additinal.css

Sparrow-Sean 05-13-2010 12:53 PM

Now why did this fail for me?

I must be the only person whos failed :(

kmohamed 06-26-2010 02:32 AM

wow amazing
before my user used to ignore messages
after installing this mod it make their life easier

+ is so easy install just follow the steps
all thanx to you

keep updating this
tagged installed and motm

LuisManson 09-02-2010 08:24 PM

can someone attach or repost screenshots? tinypic banned my country :|

LifesGreatestGift 11-26-2010 01:23 AM

Use my updated version instead

https://vborg.vbsupport.ru/showthread.php?t=254231

Sforums 12-23-2010 07:28 PM

Great mod but I have a problem. When I click on notification following message comes up all the time:

Quote:

The webpage cannot be found
HTTP 404
Most likely causes:
•There might be a typing error in the address.
•If you clicked on a link, it may be out of date.
Why am I having this problem?

kylek 02-06-2011 05:40 PM

Is there any way to stop certain notifications from showing?

zeus_r6 03-12-2011 08:14 PM

So far so good :)


All times are GMT. The time now is 04:10 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.01407 seconds
  • Memory Usage 1,843KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete