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)

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)


All times are GMT. The time now is 12:54 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.01118 seconds
  • Memory Usage 1,739KB
  • 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_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
  • (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