Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications

Reply
 
Thread Tools
TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) Details »»
TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl)
Version: 1.00, by LifesGreatestGift LifesGreatestGift is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.0.x Rating:
Released: 11-24-2010 Last Update: Never Installs: 228
Template Edits
Code Changes Additional Files Translations  
No support by the author.



Description:
This mod changes the way notifications are displayed. It disables the default dropdown menu listed in the toplinks in the header and uses a free open script called jGrowl to display them on the bottom left of the screen no matter where you are on a page. Helps with people "not noticing" the notifications. Enjoy. TheWindows7Site

Instructions:

1) Upload files in attachment to forum root

2) Open template headinclude

Paste the following code at the bottom
Code:
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) --> 
    <script type="text/javascript" src="jscripts/tw7s_notifications/jquery-1.4.2.js"></script> 
    <script type="text/javascript" src="jscripts/tw7s_notifications/jquery.jgrowl.js"></script> 
    <link href="jscripts/tw7s_notifications/jquery.jgrowl.css" rel="stylesheet" type="text/css"/>
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->
3) Open template header

Find the following:
Code:
				<vb:if condition="$notifications_total">
				<li class="popupmenu notifications" id="notifications">
					<a 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">
					<a class="popupctrl" href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase your_notifications}</a>
					<ul class="popupbody popuphover">
						<li>{vb:rawphrase no_new_messages}</li>
						<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
					</ul>
				</li>
				</vb:if>
Replace with:

Code:
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) --> 
<vb:if condition="$notifications_total">
<script type="text/javascript">

$.jGrowl('{vb:raw notifications_menubits} <br />You must view your notification(s) before this box will disappear.' , { sticky: true, header : 'New Notification(s)' } );

</script>
</vb:if>

<li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li>
<!-- TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) -->

Done!

Have fun customizing this to fit your needs.

Arabic Translation by Dr.osamA
Spanish Translation by Destron

Download Now

File Type: zip TW7S_Notifications.zip (55.4 KB, 1646 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
6 благодарности(ей) от:
da_judge, elsa23, JamalFree, mokujin, NoMatt3r, The-Lind

Comments
  #122  
Old 06-11-2011, 08:48 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by glen290 View Post
Says im not authorised to execute sql queries, any ideas ?
Open your includes/config.php and search for this section of code:
Code:
//	****** USERS WITH QUERY RUNNING PERMISSIONS ******
	//	The users specified here will be allowed to run queries from the control panel.
	//	See the above entries for more information on the format.
	//	Please note that the ability to run queries is quite powerful. You may wish
	//	to remove all user IDs from this list for security reasons.
$config['SpecialUsers']['canrunqueries'] = '';
Add your UserID where highlighted
Code:
$config['SpecialUsers']['canrunqueries'] = 'YOUR USERID HERE';
Save and re-upload your config.php
Reply With Quote
Благодарность от:
EquinoxWorld
  #123  
Old 06-11-2011, 09:02 PM
ewebdesigner ewebdesigner is offline
 
Join Date: Dec 2010
Location: Tennessee
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice works like a charm.

My members love it too.
Reply With Quote
  #124  
Old 06-17-2011, 05:06 PM
EquinoxWorld EquinoxWorld is offline
 
Join Date: Nov 2009
Location: Naples
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone has this working for vb4.1.4? Looks awesome!
Reply With Quote
  #125  
Old 06-17-2011, 07:32 PM
CK CK is offline
 
Join Date: Dec 2007
Location: http://xenforo.com/
Posts: 241
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod, marked installed and rated 5 stars.

How would I go about having the box disappear once it's been clicked on?
Reply With Quote
  #126  
Old 06-17-2011, 07:34 PM
clutchthese clutchthese is offline
 
Join Date: Apr 2011
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i just installed on 4.1.4 It's great!! much appreciated.
Reply With Quote
  #127  
Old 06-17-2011, 07:47 PM
CK CK is offline
 
Join Date: Dec 2007
Location: http://xenforo.com/
Posts: 241
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by clutchthese View Post
i just installed on 4.1.4 It's great!! much appreciated.
Yeah it's good ain't it.

There's quite a few mods by tw7 that I really appreciate.
Reply With Quote
  #128  
Old 06-17-2011, 09:41 PM
EquinoxWorld EquinoxWorld is offline
 
Join Date: Nov 2009
Location: Naples
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there ANY way to make it so it does not fade away completely if the user has NOT checked the messages? It seems to big to keep it on top of everything until the user checks the messages and for it to totally disappear is bad too because you would have to refresh the page to remember if you had notifications or not. If this could "hide" a bit (after certain amount of seconds) and when the user hovers it breaks out again to total size this would be so much more awesome. Please if someone knows how to do this please share!
Reply With Quote
  #129  
Old 06-17-2011, 09:46 PM
CK CK is offline
 
Join Date: Dec 2007
Location: http://xenforo.com/
Posts: 241
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EquinoxWorld View Post
Is there ANY way to make it so it does not fade away completely if the user has NOT checked the messages? It seems to big to keep it on top of everything until the user checks the messages and for it to totally disappear is bad too because you would have to refresh the page to remember if you had notifications or not. If this could "hide" a bit (after certain amount of seconds) and when the user hovers it breaks out again to total size this would be so much more awesome. Please if someone knows how to do this please share!
You're just going to have to be patient mate, this mod is essentially a demonstrator and the TW7 says to hack about with it ourselves. I'm not that good so I'm with you, quietly waiting lol
Reply With Quote
  #130  
Old 06-27-2011, 03:44 AM
ewebdesigner ewebdesigner is offline
 
Join Date: Dec 2010
Location: Tennessee
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I open the header file I cannot find the code you said to find. Not there at all. I am clueless.

This is what I find:

PHP Code:
<div id="pageWrapper"><div class="pagePattern">
<
div class="above_body"> <!-- closing tag is in template navbar -->
<
div id="header" class="floatcontainer doc_header"><div class="pageWrap">
<
div class="logoWrap">
            <
vb:if condition="$stylevar['titleimage']"><a name="top" href="{vb:link forumhome}" class="logo"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></vb:if>
<
vb:if condition="$vbulletin->options['socialize_slogan_enable']">
            <
div class="slogan">
                {
vb:raw socialize_slogan}
            </
div>
</
vb:if>
</
div>

<
vb:if condition="$vbulletin->options['display_social_icons']==1">
            <
div class="socialBox"><div class="socialBoxWrap">        
            <
vb:if condition="$vbulletin->options['facebook_account']"><a href="http://www.facebook.com/{vb:raw facebook_account}" target="_blank"><img src="{vb:stylevar imgdir_themedir}/icon-facebook.png" alt="Follow us on Facebook" /></a></vb:if>
            <
vb:if condition="$vbulletin->options['twitter_account']"><a href="http://www.twitter.com/{vb:raw twitter_account}" target="_blank"><img src="{vb:stylevar imgdir_themedir}/icon-twitter.png" alt="Follow us on Twitter" /></a></vb:if>
            <
vb:if condition="$vbulletin->options['youtube_account']"><a href="http://www.youtube.com/{vb:raw youtube_account}" target="_blank"><img src="{vb:stylevar imgdir_themedir}/icon-youtube.png" alt="Watch us on YouTube" /></a></vb:if>
                <
a href="#"><img src="{vb:stylevar imgdir_themedir}/icon-myspace.png" alt="My Space" /></a>
                <
a href="#"><img src="{vb:stylevar imgdir_themedir}/icon-linkedin.png" alt="Linked In" /></a>
                <
a href="http://www.flickr.com/photos/{vb:raw flickr_account}"><img src="{vb:stylevar imgdir_themedir}/icon-flickr.png" alt="Flickr" /></a>
            </
div></div>
</
vb:if>
    <
vb:if condition="$vboptions['enablefacebookconnect']">
    <
div class="pure_facebook">
    <
ul>
        {
vb:raw facebook_header}
    </
ul>
    </
div>
    </
vb:if>
</
div></div
Reply With Quote
  #131  
Old 06-28-2011, 04:50 PM
shzad1 shzad1 is offline
 
Join Date: Jul 2008
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Installed and working perfectly..................
Great Work Bro.........
Reply With Quote
Reply

Thread Tools

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 05:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09281 seconds
  • Memory Usage 2,375KB
  • 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
  • (5)bbcode_code
  • (1)bbcode_php
  • (3)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (7)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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