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)

Gemma 06-11-2011 08:48 PM

Quote:

Originally Posted by glen290 (Post 2206342)
Says im not authorised to execute sql queries, any ideas ? :confused:

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

ewebdesigner 06-11-2011 09:02 PM

Very nice works like a charm.

My members love it too.

EquinoxWorld 06-17-2011 05:06 PM

anyone has this working for vb4.1.4? Looks awesome!

CK 06-17-2011 07:32 PM

Great mod, marked installed and rated 5 stars.

How would I go about having the box disappear once it's been clicked on?

clutchthese 06-17-2011 07:34 PM

i just installed on 4.1.4 It's great!! much appreciated.

CK 06-17-2011 07:47 PM

Quote:

Originally Posted by clutchthese (Post 2209099)
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.

EquinoxWorld 06-17-2011 09:41 PM

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!

CK 06-17-2011 09:46 PM

Quote:

Originally Posted by EquinoxWorld (Post 2209142)
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

ewebdesigner 06-27-2011 03:44 AM

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


shzad1 06-28-2011 04:50 PM

Thanks Installed and working perfectly..................
Great Work Bro......... ;)

promet 07-02-2011 12:22 AM

installed on 4.1 works great
thx.

8thos 07-03-2011 05:10 PM

This is really awesome! A poster I sent a pm to several months ago has finally replied! LMFAO

I didn't know vbulletin's notification system sucked that much.

LuDawgs 07-06-2011 10:24 PM

I have a custom page that I've added called Odds (odds.php). The notification box pops up and it's red instead of the charcoal grey color I see on other pages. Any ideas on how to fix that?

8thos 07-07-2011 06:46 PM

Have you figured how to do it with ajax real-time notification? I'd pay for that.

espkaruna 07-11-2011 06:09 AM

Works exactly as planned in firefox, completely disables access to the board in ie 8, which even though I hate explorer, is not really fair to my other members who may use it

xuanhuy238 07-11-2011 06:23 AM

Awesome mod... really nice!

DonosOdD 08-09-2011 12:36 PM

Any problems with 4.1.5? I'd love to try this.

Tagged for later.

alencete 08-11-2011 07:56 AM

Quote:

Originally Posted by DonosOdD (Post 2231349)
Any problems with 4.1.5? I'd love to try this.

Tagged for later.

I try and... Work in 4.1.5 PL1!

:D

DonosOdD 08-11-2011 05:16 PM

Quote:

Originally Posted by alencete (Post 2232156)
I try and... Work in 4.1.5 PL1!

:D

Sweet. I'll look into it later. Thanks!

Lostboyfan 08-11-2011 05:24 PM

Tagged for later.

misericorde 09-01-2011 05:06 AM

Please, French translate ?

woffie 09-01-2011 09:22 AM

Very nice, however the skin edits make it a no go for me. I have 15 different custom skins and I am not doing all these edits everytime I upgrade.

LuDawgs 09-08-2011 02:01 AM

I need to move my notification up about 15px. Where do I make that change in the css file exactly? Thanks!

Never mind, I got it.

GamersChallenge 09-14-2011 12:48 AM

works great in 4.1.5

Can anyone tell me how I can change the positioning of the box? I need it to make it about 20-30px higher, reason is because I use cometchat witch display at the botton and covers it.

Knele 09-23-2011 10:07 AM

Doesn't work on 4.1.4, don't know why but it just isn't showing up.

wtfaatp 09-27-2011 08:44 PM

Quote:

Originally Posted by Knele (Post 2249202)
Doesn't work on 4.1.4, don't know why but it just isn't showing up.

Are you sure your following all steps? 4.1.5 working fine.

Smile :-) 10-07-2011 08:59 PM

thanks, great modification!
btw, you don't need to include jquery file, because it's already included by vBulletin.

kfyonur 10-08-2011 09:02 AM

no message..

kfyonur 10-12-2011 12:30 PM

if you have a more script like me you can try this for IE.Don't add the red part.

Headinclude

Code:

<script type="text/javascript" src="mobiquo/tapatalkdetect.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js">

<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"/>
</script>

Turkish translation of header

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 /> Bu uyarıyı kapatmak istiyorsanız bildirimlerinize bakmalısınız.' , { sticky: true, header : 'Yeni Bildirim(ler)' } );
            </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) -->


kfyonur 10-12-2011 05:57 PM

1 Attachment(s)
if you look before and after photos..you will see my problem..

why notifications section turned to inbox white

I don't want it,what can i do in header ?

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 /> Bu uyarıyı kapatmak istiyorsanız bildirimlerinize bakmalısınız.' , { sticky: true, header : 'Yeni Bildirim(ler)' } );
            </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) -->


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 11:39 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.02981 seconds
  • Memory Usage 1,880KB
  • 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
  • (12)bbcode_code_printable
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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