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)
-   -   Private Messages Enhancements - TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl) (https://vborg.vbsupport.ru/showthread.php?t=254231)

hasidoo 12-02-2011 05:33 PM

added 5stars! excellent mod. thank you very much.. :)

Danny M 01-13-2012 12:25 AM

Installed :)

commish 01-13-2012 02:17 AM

Installed!!

TheSupportForum 01-15-2012 12:10 PM

4.1.10 update info :
Header
find
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>
                        <vb:if condition="$show['pmmainlink']"><li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li></vb:if>
                    </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>

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


Adamwingie 01-15-2012 02:11 PM

Quote:

Originally Posted by simonhind (Post 2288109)
4.1.10 update info :
Header
find
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>
                        <vb:if condition="$show['pmmainlink']"><li><a href="private.php{vb:raw session.sessionurl_q}">{vb:rawphrase inbox}</a></li></vb:if>
                    </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>

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


It's probably just me but I can't find anything like that in the header. All I have is

Code:

<div id="pageWrapper">
        <div class="pageLeft"><div class="pageRight"><div class="pageWrap clearfix">
                        <div class="above_body"> <!-- closing tag is in template navbar -->
                        <div id="header" class="floatcontainer doc_header"><div class="headerWrap clearfix">
                                <div class="logoBox">
                                        <vb:if condition="$stylevar['titleimage']"><a name="top" href="{vb:link forumhome}"><img src="{vb:stylevar titleimage}" alt="{vb:rawphrase x_powered_by_vbulletin, {vb:raw vboptions.bbtitle}}" /></a></vb:if>
                                </div>
                                <div class="headerBox">
                                        <div class="bannerBox">
                                                {vb:raw ad_location.global_header1}
                                                {vb:raw ad_location.global_header2}
                                        </div>
                                </div>
                                <vb:if condition="$vboptions['enablefacebookconnect']">
                                <div class="cvb_facebook">
                                        <ul>
                                                {vb:raw facebook_header}
                                        </ul>
                                </div>
                                </vb:if>
                        </div></div>


TheSupportForum 01-15-2012 02:43 PM

thats coz its a custom style ?

Adamwingie 01-16-2012 10:22 AM

Quote:

Originally Posted by simonhind (Post 2288163)
thats coz its a custom style ?

Alright didn't think I'd need to ask this but how would I go about adding it to a custom style?

TheSupportForum 01-16-2012 10:32 AM

Quote:

Originally Posted by Adamwingie (Post 2288488)
Alright didn't think I'd need to ask this but how would I go about adding it to a custom style?

from the code you shown the code has been moved to another template

thats the incorrect code above from header

do a search in the template for

Code:

<li class="popupmenu notifications" id="notifications">

Adamwingie 01-16-2012 12:07 PM

Quote:

Originally Posted by simonhind (Post 2288492)
from the code you shown the code has been moved to another template

thats the incorrect code above from header

do a search in the template for

Code:

<li class="popupmenu notifications" id="notifications">

Of course.

All sorted now, sometimes logic is thrown out of the window with me.

Cheers.

TheSupportForum 01-16-2012 12:12 PM

Quote:

Originally Posted by Adamwingie (Post 2288514)
Of course.

All sorted now, sometimes logic is thrown out of the window with me.

Cheers.

gr8 glad i could help


All times are GMT. The time now is 06:01 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.01424 seconds
  • Memory Usage 1,763KB
  • 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
  • (7)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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