vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   Blinking PM notification bar for vB3.0.3 (https://vborg.vbsupport.ru/showthread.php?t=68135)

Steve St.Lauren 08-08-2004 10:00 PM

Blinking PM notification bar for vB3.0.3
 
*** PM Notify Blink R.9

I based this off of Chen's Vb2 PM Notify Hack. I had released this for 2.0 as well - mine was a bit different from his. I rewrote it for vB3 and wasn't going to release it but have seen a couple requests for something like it so here it is. I do not have stock templates on my forums (and didn't keep a copy of them on there) so I'm not sure that the template lines I am having you look for are exactly what I have in this file. Please let me know what you find and I'll change the text. The screen shots show the two colors that it blinks between by default.

shadiguy1 08-09-2004 04:35 AM

works awsome took like a whole 5 mins to install

integra99 08-09-2004 06:09 AM

I installed a slightly modified version of the hack.

All work is (c) of original poster.

Open template navbar and find:
Code:

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

and replace with:
Code:

        <if condition="$bbuserinfo['userid']">
 
                <td id="pmNotifybox" bgcolor="#F8F8F8" valign="top" nowrap="nowrap"><font color="#000000">
                <div class="smallfont">

then find:
Code:

<!-- / breadcrumb, login, pm info -->
and add below it:
Code:

<if condition="$bbuserinfo['pmunread']">
<script language="JavaScript">
<!-- Begin
$pmblink pmNotifybox.bgColor='#f8f8f8';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
function Timer() {
        set=1;
        if(x==0 && set==1) {
                pmNotifybox.bgColor='#f8f8f8';
                x=1;
                set=0;
        }
        if(x==1 && set==1) {
                pmNotifybox.bgColor='#999999';
                x=0;
                set=0;
        }
}
// End -->
</script>
</if>

Voila! The table cell that contains your user info and pm count will blink the color you specify. It is set now to exactly as I have it on my forum.

Logikos 08-09-2004 11:24 AM

This can be done with condtions, no need to hack.

Polo 08-09-2004 12:40 PM

Quote:

Originally Posted by Live Wire
This can be done with condtions, no need to hack.

i been trying to do it that way... any hints?

Beermonster 08-09-2004 01:16 PM

Thanks works fine :)

[high]* Beermonster clicks install[/high]

Logikos 08-09-2004 01:53 PM

Quote:

Originally Posted by Polo
i been trying to do it that way... any hints?

Sure. Use something like this.

PHP Code:

<if condition="$bbuserinfo['pmunread']"w/e you want here </if> 

The things you can do with conditions are wonderful.

This is what im doing. See attachment. And if you don't want gues to see it, then simply use.

PHP Code:

<if condition="$bbuserinfo['userid']"blah </if> 


integra99 08-09-2004 06:42 PM

Livewire and Polo: I posted the hack above using only conditionals.

Logikos 08-09-2004 07:24 PM

I didn't even see your post, i got my info from, https://vborg.vbsupport.ru/showthread.php?t=62903

Polo 08-10-2004 12:45 PM

Quote:

Originally Posted by integra99
Livewire and Polo: I posted the hack above using only conditionals.

this only works on ie? or is supported by most browsers?


All times are GMT. The time now is 01:46 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.02122 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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