vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=134)
-   -   Blink the Welcome Bar when receiving a new PM! (https://vborg.vbsupport.ru/showthread.php?t=88474)

Bryan Ex 07-26-2004 03:36 AM

Worked great and especially once I changed the background classes to alt1 & 2 except that I use the vB nav bar in my photopost gallery and it created all kinds of script errors. I had to uninstall but will be keeping this bookmarked for a stand alone board I'm working on next.

Littlebit 08-01-2004 07:11 PM

Quote:

Originally Posted by Bryan Ex
Worked great and especially once I changed the background classes to alt1 & 2 except that I use the vB nav bar in my photopost gallery and it created all kinds of script errors. I had to uninstall but will be keeping this bookmarked for a stand alone board I'm working on next.

You can also keep an eye out at http://vbadvanced.com . They're coming out with a gallery that is seamless with vB and for less money.

Eagle Creek 08-11-2004 09:48 AM

//Installed

It's not working well with all skins :(

YLP1 08-15-2004 07:30 PM

Hi all,

I am getting this broken code on my PM box...how do I fix it?

I am also getting an error on the page

Line 434
Char 1
Error: 'pmBox' is undefined
Code" 0

Natch 08-15-2004 11:39 PM

It's a broken conditional statement - probably you have an extra > inside your conditional?

Re-check your postbit / postbit_legacy modification.

hdaniel1 08-20-2004 07:40 PM

Here is what I did so this mod works on every browser.

First, as usual open up the navbar template and find this.
PHP Code:

<td class="alt2" valign="top" nowrap="nowrap"

You replace it with this.

PHP Code:

                <td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else /> class="alt2"</if>>
<if 
condition="$bbuserinfo['pmunread']">
    <
script type="text/javascript">
<!-- 
<!-- 
blink navbar on new pms -->
document.getElementById('pmBox').bgColor='$stylevar[thead_bgcolor]';
setInterval("Timer()"500);
x=1;
function 
Timer()
{
    
set=1;
    if (
x==&& set==1)
    {
        
document.getElementById('pmBox').bgColor='$stylevar[tcat_bgcolor]';
        
x=1;
        
set=0;
    }
    if (
x==&& set==1)
    {
        
document.getElementById('pmBox').bgColor='$stylevar[thead_bgcolor]';
        
x=0;
        
set=0;
    }
}
-->
</
script></if> 

That is all!


I replaced pmBox.bgColor with document.getElementById('pmBox').bgColor.

EDIT: Also this works with 3.0.3.

SaN-DeeP 08-31-2004 10:08 PM

Quote:

Originally Posted by hdaniel1
Here is what I did so this mod works on every browser.


That is all!


I replaced pmBox.bgColor with document.getElementById('pmBox').bgColor.

EDIT: Also this works with 3.0.3.

thnx dude.
works perfect on vb 3.0.3

Regards

DarknessDivine 09-08-2004 04:02 PM

Works like a dream

mholtum 09-08-2004 07:08 PM

Works great in IE but not in Mozilla

hdaniel1 09-08-2004 07:40 PM

Quote:

Originally Posted by mholtum
Works great in IE but not in Mozilla

Did you follow my updated instructions on how to make it work on all browsers?


All times are GMT. The time now is 12:49 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.01074 seconds
  • Memory Usage 1,747KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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