vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Blink PM bar on new PM! (https://vborg.vbsupport.ru/showthread.php?t=32299)

legendarysk8er 09-17-2003 12:52 AM

Great hack, it will get the people's attention.

/me clicks install.

ahbao 09-21-2003 01:01 PM

how to have the pm catergory up there in the main page at at first place?

ry@n 10-10-2003 10:29 AM

I've installed the hack, but the flashing won't stop when I have read all my PM's.. How can I fix this?

Mono 10-28-2003 08:33 PM

Quote:

Originally Posted by JJR512
This won't really work very well if you are using a background image inside your category header cell, as I am. For example, if you use the method discussed here to have a category background image, the image is shown over the background color. Each time the cell flashes, you will see the background color for an instant, as the background image has to be re-downloaded.

So I guess I'm SOL on using this hack!

same here...
sigh ah well I was looking forward to it....

JoyB 10-31-2003 04:21 PM

This looks like a great hack - thank you :)

fly 11-11-2003 03:09 PM

Can anyone tell me how I could make a specific forum blink when a new post has been made to it?

ricker 11-17-2003 08:24 PM

great hack, installed.

buro9 11-26-2003 03:31 PM

Quote:

Originally Posted by FireFly
This is a very simple hack, yet I kinda like it.
Don't you just hate it when you write a long PM to someone, send it, and he doesn't even notice it?!

NO MORE! :)

Install this very easy hack and no one will be able to ignore the PM again.

This is almost just a template hack, but since it does involve editing a file and adding 4 lines of PHP code, it qualifies as a hack.
Sue me.

Anyway, what does this hack do?
Whenever you come to the forum main page, and you have any unread messages (even if they aren't new), the category strip that says "Private Messages" will blink.
Simple, but effective.

To see a demo of this, just send yourself a PM and see what happens. I'm sure you'll like it. :)

Installing this will take you 2 minutes if not less, it's very very simple.
I also don't expect too many support requests. ;)

Anyway, have fun!

There is one bug in this... it doesn't work for Firebird, and possibly other DOM compliant browsers that don't have document level access to named elements.

The solution to make this work in Firebird, Mozilla, etc... is this:

Find:
<!-- Begin

Replace with:
<!-- Begin
var pmBox = document.getElementById('pmBox');

Someone else might've already said this... but there are too damn many replies to find out.

Of course... the above will throw an error in really old browsers (non-DOM compliant)... but who uses those? If you care... then you can write object detection first to check for existence of document.all, document.layers and document.getElementById... and then act accordingly... but very few people here will need that.

Onkel_Tom 11-29-2003 11:09 PM

Quote:

Originally Posted by ry@n
I've installed the hack, but the flashing won't stop when I have read all my PM's.. How can I fix this?

I think you forgot to do the changes in index.php

I forgot to save the index.php file and have the same problem ;)

LilPimp 12-20-2003 01:27 AM

/======================================\
| In the template forumhome_pmloggedin |
| find this: |
\======================================/
bgcolor="{categorybackcolor}"

/======================================\
| Before that, add this code: |
\======================================/
id="pmBox"

bgcolor="{categorybackcolor}" -- No where to be found on vb 2.3.3 ... which one do i edit to make it work...


All times are GMT. The time now is 06:29 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.01294 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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