PDA

View Full Version : Mini Mods - Non Redundant Notifications


rootnik
05-14-2008, 10:00 PM
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.

$vbulletin->templatecache['navbar_notifications_menubit'] = $vbulletin->templatecache['navbar_notifications_menubit_new']; in the global_start hook!

rootnik
05-16-2008, 12:13 AM
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.

$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
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 (https://vborg.vbsupport.ru/showthread.php?t=175841).

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
It brakes Notifications Background Image (https://vborg.vbsupport.ru/showthread.php?t=175841).

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 (https://vborg.vbsupport.ru/showthread.php?t=177785) 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 =
<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=
{1}, {2}.


Add the following to your headinclude template (set the time interval as you wish)=
<body onload="setInterval('blinkIt()',500)">


Then change your navbar as follows:

Change this:
<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:
<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 (https://vborg.vbsupport.ru/showthread.php?t=177785) 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
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
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