TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl)
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 1 của 1
  1. #1
    Thành Viên PandavB's Avatar
    Ngày tham gia
    Feb 2014
    Bài viết
    243
    Thanks
    1
    Thanked 13 Times in 11 Posts

    Icon14 TW7S - New Way To Display Notifications (jQuery,CSS,jGrowl)

    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:
    <
    PHP 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:
    <
    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>
                        <
    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:
    PHP 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.' , { stickytrueheader '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
    File Kèm Theo File Kèm Theo
    Khách viếng thăm hãy cùng PandavB xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. TW7S - Remove Legend and Permissions Boxes from FORUMHOME FORUMDISPLAY and SHOWT
    Bởi PandavB trong diễn đàn vBulletin 4.x Template Modifications
    Trả lời: 0
    Bài viết cuối: 11-02-14, 03:35 PM
  2. TW7S - [ Information - Tip - Note - Warning ] BBCode
    Bởi PandavB trong diễn đàn vBulletin 4.x Template Modifications
    Trả lời: 0
    Bài viết cuối: 11-02-14, 02:48 PM
  3. Spiders Display on Forumhome and Who's Online for vb4
    Bởi PandavB trong diễn đàn vBulletin 4.x Add-ons
    Trả lời: 0
    Bài viết cuối: 11-02-14, 09:51 AM
  4. Display Unread Posts (and Reputation Comments in 4.1)
    Bởi PandavB trong diễn đàn vBulletin 4.x Add-ons
    Trả lời: 0
    Bài viết cuối: 11-02-14, 08:53 AM
  5. cách sửa lỗi A serious problem occrued iniside display
    Bởi thecong trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 18
    Bài viết cuối: 21-02-09, 08:21 AM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 07:09 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.