vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - Non Redundant Notifications (https://vborg.vbsupport.ru/showthread.php?t=179365)

rootnik 05-14-2008 10:00 PM

Non Redundant Notifications
 
This mod does 2 things:

1. Removes redundant notifications. Example: You don't need to know that you have 0 new visitor messages, so the notification box will not display this info. (attached image 1)

2. If the only notification you have is unread private messages, this plugin will display the old private message information instead of the new notification information. This saves a mouse click for your end users if they have PMs but no other notifications. (attached image 2)

Installation:

1. Import product-nrnotify.xml as a product.

Thats all!

Updates:


(05-16-2008) I've updated this mod as a product. Before updating please uninstall the previous plugin and revert your navbar_notifications_menubit template (if you installed version 1.0).

7lanet 05-15-2008 06:19 PM

thanks

M-Tuning 05-15-2008 06:22 PM

Nice!

mauro1947 05-15-2008 08:13 PM

Great Hack :D
Thanks
Regards!

ry215 05-15-2008 08:37 PM

Thanks.
Installed :D

Milad 05-15-2008 11:56 PM

Please add the plug-in as a product.

Also include the template edit in the product, cache it, and overwrite the template navbar_notifications_menubit on real time.

PHP Code:

$vbulletin->templatecache['navbar_notifications_menubit'] = $vbulletin->templatecache['navbar_notifications_menubit_new']; 

in the global_start hook!

rootnik 05-16-2008 12:13 AM

Quote:

Originally Posted by Milad (Post 1521171)
Please add the plug-in as a product.

Also include the template edit in the product, cache it, and overwrite the template navbar_notifications_menubit on real time.

PHP Code:

$vbulletin->templatecache['navbar_notifications_menubit'] = $vbulletin->templatecache['navbar_notifications_menubit_new']; 

in the global_start hook!

Thanks for the tip! I'll put that together once I get some free time.

paramegsoft 05-16-2008 12:31 AM

very nice

thanks

i will test it

Barakat 05-16-2008 04:08 AM

i love it ,,, usefull ,,,,

Mixtoon 05-16-2008 04:38 AM

This should be add with the next version of vB as I believe.

thanks.

rootnik 05-16-2008 12:01 PM

Updated as a product. No manual template changes.

Thanks for the lead Milad.

Milad 05-16-2008 12:38 PM

Thanks, I'll install it right now!

Breathex 05-17-2008 12:15 AM

Thanks for this nice hack but in my opinion original one is more sexy :)

Magnumutz 05-17-2008 09:31 AM

This should really be a default for vB.

rootnik 05-18-2008 02:57 PM

Quote:

Originally Posted by Magnumutz (Post 1522433)
This should really be a default for vB.

I don't know. vBulletin probably wants to show off their new SN features and felt like this was the best way to do it. I can see users clicking on the notifications and thinking "Albums... what is that?"

It should at least be an option.

serhat_kk 05-22-2008 08:05 AM

Good idea...Thanks

xorex 05-29-2008 06:19 AM

Wow nice !! thanx

redlabour 07-03-2008 01:17 AM

It brakes Notifications Background Image.

If "Non Redundant Notifications" is activated the Image from the other Hack is not longer working.

Any fix?

KURTZ 07-03-2008 08:15 AM

Quote:

Originally Posted by redlabour (Post 1565419)
It brakes Notifications Background Image.

If "Non Redundant Notifications" is activated the Image from the other Hack is not longer working.

Any fix?

i'm 2nd about that ...

redlabour 07-04-2008 09:56 AM

rootnik?

mpoorrajab 07-06-2008 09:54 AM

is there any way to show notifications every time , even that times there is no public message or gallery message & ...

redlabour 07-11-2008 12:32 PM

Seems Mod is dead .... clicked uninstall. :(

ShackMaster 07-12-2008 03:01 AM

You can use Cyb - PM Enhancements with this and the background color will still change, but I have not been able to get "Private Messages" to blink red.

The code to make it blink is in the cyb_pme_blink template. If someone figures out how to get it to blink, please let me know.

ShackMaster 07-12-2008 05:15 AM

I figured out the blinking text as well...

I had to create two new "Global" phrases:

private_messages_blink =
Code:

<script type="text/javascript">
function blinkIt() {
 if (!document.all) return;
 else {
  for(i=0;i<document.all.tags('blink').length;i++){
      s=document.all.tags('blink')[i];
      s.style.visibility=(s.style.visibility=='visible')?'hidden':'visible';
  }
 }
}
</script>
<blink><a href="private.php{3}"><font color="#C00000">Private Messages</font></a></blink>


private_messages_nav_blink=
Code:

{1}, {2}.

Add the following to your headinclude template (set the time interval as you wish)=
Code:

<body onload="setInterval('blinkIt()',500)">

Then change your navbar as follows:

Change this:
Code:

<if condition="$show['notifications'] AND $show['popups']">
                        <div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
                        <script type="text/javascript"> vBmenu.register("notifications"); </script>
                <else /><if condition="$show['pmstats']">
                        <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
                </if></if>


To this:
Code:

<if condition="$bbuserinfo['pmunread'] AND $show['popups']">
                        <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_blink]: $vbphrase[private_messages_nav_blink]</phrase></div>
                <else /><if condition="$show['pmstats']">
                        <div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
                </if></if>


Now this Non Redundant Notifications mod along with Cyb - PM Enhancement mod ... and the above, will get your background color changing and a red blinking "Private Messages" linked to your /private.php page.


I know this is a bona fide redneck hillbilly way of doing it, but it works for me in FF and IE... at http://www.hometheatershack.com/forums

Maybe someone can put all this together and make it easier. There is probably a way to get the color into the Javascript code as well, but I was getting lazy since what I've got now works.

redlabour 07-12-2008 05:23 AM

Quote:

Originally Posted by ShackMaster (Post 1573304)
I figured out the blinking text as well...

Too much work for less Effect.

ShackMaster 07-12-2008 05:41 AM

Obviously you don't have to use it if you don't want to. https://vborg.vbsupport.ru/external/2008/07/19.gif

Alfa1 07-12-2008 07:59 AM

Now there is space for moderated comments / posts / blogs notifications. Any chance on adding this?

graham_w 07-31-2008 04:30 AM

Nice work! :up:

Magnumutz 09-06-2008 11:29 AM

This isn't working anymore...

Darmak 10-07-2008 03:29 AM

Quote:

Originally Posted by Magnumutz (Post 1615775)
This isn't working anymore...

Works for me (vb 3.7.3)

Magnumutz 10-07-2008 09:49 AM

Weird, it's not for me...
I'm going to try make one of my own...

bongwater 10-13-2008 02:01 PM

installed, works smoothly on 3.8.0 beta 1. thanks

blackberry 12-01-2008 05:09 PM

woow kool thanks for sharing

was looking for it


All times are GMT. The time now is 03:28 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.02186 seconds
  • Memory Usage 1,784KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (33)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete