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)

Guy G 01-25-2005 07:44 PM

I have modified it to be like in vbulletin.org, no javascript is needed.

post is here if anyone wants it:
https://vborg.vbsupport.ru/showpost....28&postcount=6

peterska2 01-25-2005 08:07 PM

Thanks muchly appreciated

Motoscene 02-09-2005 05:03 PM

Thanks GaryW I like this feature alot and so do all my forum members. Great work.

mholtum 02-16-2005 05:53 AM

I am trying to remove this as I found one I would rather use and cant find the code in my navbar template.. Weird. Yet it still works

Electronic Punk 02-16-2005 07:38 AM

Nice one :D

GSX-Racing 06-01-2005 10:07 AM

I couldn't get it to flash. It only changed the bg colour, didn't flash it back and forth.

EDIT: Got it working, just had some extra spaces in the code.

Thanks, looks tight.

GSX-Racing 06-04-2005 01:04 AM

I had it installed once, then had to re import stuff so lost my mods. I just did it again (like 3 times) and I'm not sure what I did wrong however, if you look at the attached screenshot you will see the problem.

It flashes just fine, but there is a little area to the right that doesn't flash. I can't seem to get rid of that little blank space. Can anyone please help?

Here is what my template looks like where I made the changes.

Code:

</td>       
       
        <if condition="$bbuserinfo['userid']">
       
                <td valign="top" nowrap="nowrap" <if condition="$bbuserinfo['pmunread']">id="pmBox"<else />class="alt2"</if>>
                <div class="smallfont">
                        <!--<span style="float:$stylevar[right]">[<a href="login.phtml?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]" onclick="return log_out()">$vbphrase[log_out]</a>]</span>-->

Code:

<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==0 && set==1)
        {
                document.getElementById('pmBox').bgColor='$stylevar[tcat_bgcolor]';
                x=1;
                set=0;
        }
        if (x==1 && set==1)
        {
                document.getElementById('pmBox').bgColor='$stylevar[thead_bgcolor]';
                x=0;
                set=0;
        }
}
-->
</script></if>       

        <else />
       
            <td class="alt2" nowrap="nowrap" style="padding:0px">

Edit 1:In the second attachment you can see a bit better how the table extends too far.

Edit 2: In the third attachment you can see a couple extra frames that I don't think should be there.

tscbh 06-14-2005 12:41 AM

I read through the forum, but it didn't work.. I got this error:

line: 381
car: 1
error: 'pmBox' is undefined
Code: 0
URL: ...forumdisplay.php?f=3

even if I undo all changes. I still got that error.

What I did was, open dreamweaver, open file, "vbulletin-style.xml, I do a search replace & replace:

search:
<td class="alt2" valign="top" nowrap="nowrap">
replace with:
<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='$styleva r[thead_bgcolor]';
setInterval("Timer()", 500);
x=1;
function Timer()
{
set=1;
if (x==0 && set==1)
{
document.getElementById('pmBox').bgColor='$styleva r[tcat_bgcolor]';
x=1;
set=0;
}
if (x==1 && set==1)
{
document.getElementById('pmBox').bgColor='$styleva r[thead_bgcolor]';
x=0;
set=0;
}
}
-->
</script></if>

nothing else is done. Now, I hate the error java script message. By the way, does this work for vb3.0.7?

SlipNslide281 07-13-2005 03:30 PM

I got it to flash, but if I want it to flash Red, and background color what do I change in the code? I did this:

<!--
<!-- blink navbar on new pms -->
pmBox.bgColor='thead_bgcolor';
setInterval("Timer()", 500);
x=1;
function Timer()
{
set=1;
if (x==0 && set==1)
{
pmBox.bgColor='$stylevar[red]';
x=1;
set=0;
}
if (x==1 && set==1)
{
pmBox.bgColor='$stylevar[thead_bgcolor]';
x=0;
set=0;
}
}

but it still flashes dark grey and light grey.

Quote:

nothing else is done. Now, I hate the error java script message. By the way, does this work for vb3.0.7?
Yes I have it working on 3.0.7 Just not the color I want.

ciocsy 07-20-2005 11:10 PM

i've just installed the mod and it works perfectly.
thanks a lot.


All times are GMT. The time now is 05:50 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.01237 seconds
  • Memory Usage 1,744KB
  • 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
  • (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