vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   I made a cleaner blinking PM notifier (https://vborg.vbsupport.ru/showthread.php?t=73060)

JohnBee 12-18-2004 09:17 PM

I made a cleaner blinking PM notifier
 
1 Attachment(s)
I just finished a small template mod that I think makes a very clean addition
to the PM notification system.

I liked the other blinking notifiers out there, the bar and the table blinker
but they were to a little to bold or intrusive on my light layout so as an
alternative I created a smaller text based blinker which seems to ask for
attention without compromising my layout.

I attached a copy if anyone is interested in the code changes I would be
more than happy to share.

SaN-DeeP 12-24-2004 04:30 AM

looks good :) nice work.

T3MEDIA 12-24-2004 10:32 AM

Quote:

Originally Posted by JohnBee
I just finished a small mod that I think makes a very clean addition
to the PM notification system.

I liked the other blinking notifiers out there, the bar and the table blinker
but they were to a little to bold or intrusive on my light layout so as an
alternative I created a smaller text based blinker which seems to ask for
attention without compromising my layout.

I attached a copy if anyone is interested in the code changes I would be
more than happy to share.

just share... ask questions latter. lol

Floris 12-24-2004 01:34 PM

Nice job!
I like this one more then the one used here on vBulletin.org :)

miz 12-24-2004 02:24 PM

looks great if you will share will be appricated

JohnBee 12-24-2004 05:46 PM

Okay but I can't release a full release typa thing cause i'm way to lame of a coder
for that. So I'll paste my code changes here instead.

JohnBee 12-24-2004 05:54 PM

I'm not 100% there is anything else to note for this template mod
so if anyone tries and it doesnt work, I guess I can install on a
fresh vBB to test it and post correction. Otherwise I think this is it.

Code:

//Placed in NAVBAR header section //

<script language="JavaScript">

var on_color = "#FF0000";
var off_color = "#FFFFFF";
var blink_onoff = 1;
var blinkspeed= 500;
function blink()
{
        if( blink_onoff == 1) {
          document.all.blink.style.color = on_color;
          blink_onoff = 0;
        }
        else {
          document.all.blink.style.color = off_color;
          blink_onoff = 1;
        }
}
</script>



// Replaced my original NAVBAR pmunread template section with //

<if condition="$bbuserinfo['pmunread']">
                                <phrase 1="<font id=blink>$vbphrase[unread_x_nav_compiled]</font>" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase>
               
                <script>
document.all.blink.style.color = off_color;
setInterval("blink()",blinkspeed);
                </script><br>
            <else />

                                <phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase><br></if>


// all done //


T3MEDIA 12-24-2004 10:35 PM

What version you have? NAVBAR pmunread? Where is that?

JohnBee 12-25-2004 12:00 AM

Sorry vB 3.0.3

Code:


// in your NAVBAR template find //

<if condition="$bbuserinfo['userid']">
       
                <td class="alt2" valign="top" nowrap="nowrap">


// Right under that add //


<if condition="$bbuserinfo['pmunread']">
                                <phrase 1="<font id=blink>$vbphrase[unread_x_nav_compiled]</font>" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase>
               
                <script>
document.all.blink.style.color = off_color;
setInterval("blink()",blinkspeed);
                </script><br>
            <else />

                                <phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl]">$vbphrase[private_messages_nav]</phrase><br></if>

// all done //

That Should be it :)

h75 12-25-2004 02:27 AM

Is it XHMTL 1.0 ??


All times are GMT. The time now is 07:43 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.01116 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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