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)

tdkmatt 01-24-2011 12:55 PM

installed!! aw some, sometimes it doesn't go away tho :(

Teascu Dorin 01-26-2011 04:52 PM

Great work.
Here you go... Romanian Translation if someone needs...

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 />Trebuie să vezi mesajele pentru ca această casetă să dispară.' , { sticky: true, header : 'Mesaje noi' } );

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


OldSchoolDSL 02-05-2011 07:03 PM

Does not seem to like the latest version of jQuery 1.4.4 :(

OldSchoolDSL 02-11-2011 10:43 PM

Quote:

Originally Posted by OldSchoolDSL (Post 2159133)
Does not seem to like the latest version of jQuery 1.4.4 :(

Un-installed
:(

bulldog51981 02-19-2011 10:19 PM

1 Attachment(s)
Installed with ease! Only issue that I'm having is that when I have more than one notification they're not listed one on top the other. They are listed in one continuous line directly after one another. Is there a solution for this one?

**Found the problem -
At some point I apparently made an edit to my "navbar_notifications_menubit" template and had taken the <li> tags out. Replacing this fixed the issue.

bulldog51981 02-21-2011 06:00 AM

Quote:

Originally Posted by andreamarucci (Post 2130117)
It work but it seems to conflict with the popup notification of new messages function that is built in VB. Anyone know how to disable this option for all the vb users?

After installing this, you may want to disable this option for everyone since you will now have a notification on the screen anyway. If you would like to disable the "Display Pop Up Notification When New Private Message Is Received", go to:

AdminCP > Maintenance > Execute SQL Query > Automatic Queries

To disable it for future registrations, go to:

AdminCP > User Registration Options

Hope this helps someone else.

bulldog51981 02-23-2011 02:29 AM

Quote:

Originally Posted by FF|Skyrider (Post 2126522)
For those who prefer not that the messages are being displayed while reading your PM list or while reading a PM, use this code:

Code:

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

$.jGrowl('{vb:raw notifications_menubits} <br />Debes ver tus notificaciones para que este mensaje desaparezca.' , { sticky: true, header : 'Aviso del foro' } );

</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) --></vb:if>

I've only added
Code:

<vb:if condition="THIS_SCRIPT != 'private'"></vb:if>
To prevent the pop-up being shown while in private.php (the PM list & messages).. If there is something wrong with this code, please let me know.. I never actually used this before and it works fine for me.

Would be great if a modification is being made of this. So an option can be set to use the advanced (this one) pop-up or the original. Also would be nice if you can actually close the pop-up and won't appear again until you get a new PM.

Can anyone tell me how to add the member profile page to this as well?
Code:

<vb:if condition="THIS_SCRIPT != 'private'"></vb:if>
(member.php page)

Update: I don't know if there was a better way to add this to the first line or not, but I just added
Code:

<vb:if condition="THIS_SCRIPT!='member'">
after the first one above and closed it in the same place and that seemed to work just fine.

want3ed 03-03-2011 12:48 PM

it cant work in my forum page and category , message pages but it is working in profile and private message pages.

please help me.

fxwoody 03-06-2011 10:48 AM

Tks! Nice addon ;)
Got a little idea here! Do you think that we could add the text that shows up as a {vb: rawphrase blablabla} instead? So that on boards with different language ,it would get translated automatically depending on user's choice?!?

Tks & installed

fxwoody 03-06-2011 11:35 AM

Ok nevermind;)

For every one who would like to add different language, follow these instructions:

Go into Phrase Manager, Add New Phrase

Phrase Type: Global
Product:vBulletin
Varname: new_box_notice
Text: You must view your notification(s) before this box will disappear.

In your xtra language window, add your translated text.
For the french, add this: Vous devez voir votre notification (s) avant que cette case disparaissent.

In the script code from this mod,
Find:
Code:

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

$.jGrowl('{vb:raw notifications_menubits} <br />{vb:rawphrase new_box_notice}' , { sticky: true, header : 'New Notification(s)' } );
Enjoy!


All times are GMT. The time now is 11:41 AM.

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.01773 seconds
  • Memory Usage 1,746KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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