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)

Admin 11-09-2001 10:00 PM

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!

JTMON 11-10-2001 01:22 PM

I made the necessary changes but for some reason it doesn't work for me:(

Sc0rpion 11-10-2001 02:01 PM

yep followed instructions to the letter,and it also does not work for me.

maverick1236 11-10-2001 04:40 PM

Nope:(

Neo 11-10-2001 05:19 PM

i believe its a javascript error, it worked for me so :p

oh and thanks for another great hack

snyx 11-10-2001 05:20 PM

Works GREAT man!
Only problem I had is that both my categorybackcolor and my tableheadbgcolor are the same.
So at first I thought it wasnt blinking (cuz they were the same)
So like before anyone starts to say it doesnt work, try using THIS as your JS to test it:

Code:

<script language="JavaScript">
<!-- Begin
$pmblink pmBox.bgColor='#1D6AA0';
$pmblink setInterval("Timer()", 500);
$pmblink x=1;
 function Timer() {                x=1;
                set=0;
        }
        if(x==1 && set==1) {
                pmBox.bgColor='{*categorybackcolor*}';
        set=1;
        if(x==0 && set==1) {
                pmBox.bgColor='#336D95';

                x=0;
                set=0;
        }
}
// End -->
</script>

stick that in the end of forumhome_pmloggedin, REMOVE! the ** from {*categorybackcolor*} and send yourself a PM, and if it doesnt blink then, you probolly did something wrong.

snyx

Sc0rpion 11-10-2001 05:26 PM

synx i don't even need to try,i know thats my problem,thanks for pointing that out.

:stupid: Doh

JTMON 11-10-2001 05:38 PM

Quote:

So at first I thought it wasnt blinking (cuz they were the same)
DOH DOH DOH DOH!!!:(

Great Hack Firefly! Me stupid! Thanks Snyx!

FWC 11-10-2001 05:49 PM

Works great, FireFly! Thanks. :)

snyx 11-10-2001 05:57 PM

see, snyx knew it!
(first and last time you will ever here that sentance) :D

amykhar 11-10-2001 11:54 PM

I have mine set to blink a shocking red color. If they don't see that, they're blind. :D

Thank you Firefly. I like this one.

Amy

FWC 11-11-2001 12:25 AM

Quote:

Originally posted by amykhar
I have mine set to blink a shocking red color. If they don't see that, they're blind. :D
LOL! I made mine blink red, too. :)

JJR512 11-11-2001 02:44 AM

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!

DarkReaper 11-11-2001 05:16 AM

I sent myself a PM and don't see anything happening:confused:

DarkReaper 11-11-2001 05:17 AM

Or I'm just tired as hell and its not a big color difference and I didn't notice it doh :)

red 11-11-2001 07:37 AM

hi...
(a little add to this hack)

i added an onclick to the TR, so i can click on TR to open PM's:
(del the space between { and categorybackcolor!)

find in forumhome_pmloggedin:
PHP Code:

<td id="pmBox" bgcolor="{ categorybackcolor}" colspan="6"

change it to:
PHP Code:

<td id="pmBox" bgcolor="{ categorybackcolor}" colspan="6" onMouseOver="this.style.cursor='hand';" onclick="window.location.href='private.php?s=$session[sessionhash]'"

br red

FWC 11-11-2001 08:19 AM

Quote:

Originally posted by red
hi...
(a little add to this hack)

i added an onclick to the TR, so i can click on TR to open PM's:

Well, I can't resist a good toy. I added this. I also put it on online users and my statistics bar that leads to Bane's stats hack. I already had them almost everywhere else. :)

mojotim 11-11-2001 10:20 AM

Dude, nice one

Admin 11-11-2001 12:11 PM

Thanks everyone. :)

JJR512, you can do something like this.
After this: (in the Javascript)
Code:

$pmblink pmBox.bgColor='xxxxxxx';
add this:
Code:

$pmblink pmBox.backGround='';
I *think* it will work, although I'm not sure.

Baratator 11-11-2001 12:21 PM

Hi hust i looking for but i only want the link "private message" blink. not the whole section and i want it to blink only when the messages are new and to be in a different coulor when there a new pm hum like this :)

new pM : blink
unread PM : red
no new or unread pm : white

is that possible?

Joshs 11-11-2001 02:08 PM

I have a blinking and a nonblinking image. How could I use this hack to have it display the blinking image when their is new PM, and the nonblinking one when there isnt any?

Basically I want it to look like this (and have the image and text link to the PM box):

No new PM-
[nonblinking image] no new message(s).
New PM-
[blinking image] (# of new messages (in bold)) new message(s).

xug 11-11-2001 03:01 PM

I installed it in my vb2.2.0 and it doesn't work !

My Windows Internet Explorer gives me even an error in the command line "Done, but with errors on page" !!

Is this the javascript problem as it is with many other hacks that uses javascript.

Admin 11-11-2001 03:06 PM

xug, what is the error you are getting?

Joshs, instead of this:
Code:

  if ($unreadpm['messages']==0) {
    $pmblink='//';
  } else {
    $pmblink='';
  }

use this:
Code:

  if ($unreadpm['messages']==0) {
    $pmblinkimage='PATH TO NON BLINK';
  } else {
    $pmblinkimage='PATH TO BLINK';
  }

then use $pmblinkimage in the src="xxx" of the <img>.

xug 11-11-2001 03:29 PM

The error I wrote in my previous post ! no further details than that !

JJR512 11-11-2001 04:32 PM

Xug, when IE tells you there is an error on the page, click the little message that tells you there's an error. The little yellow exclamation point that appears in the status bar, lower left hand corner? Next to the message that there's an error on the page? Double click it. Copy the contents of what it then tells you, and paste it here.

cyrus 11-11-2001 04:46 PM

was very happily installing it, but it ended up not working :( I tried synx's fix but that didnt help . It just doesnt blink ... and yes, I DID send a pm to myself if ur wondering if i have a new pm or not :p

any ideas ?

JJR512 11-11-2001 04:46 PM

Quote:

Originally posted by FireFly
Thanks everyone. :)

JJR512, you can do something like this.
After this: (in the Javascript)
Code:

$pmblink pmBox.bgColor='xxxxxxx';
add this:
Code:

$pmblink pmBox.backGround='';
I *think* it will work, although I'm not sure.

Sorry, it didn't work. :(

xug 11-11-2001 05:26 PM

Ok here is the error !

(Sorry, I didn't knew about this option to see the error)

line : 958
char : 2
error : 'pmBox' is undefined
code : 0
url : http://www.xboxusersgroup.com/forum/index.php?s=

Admin 11-11-2001 05:43 PM

Code:

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

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

Looks like you haven't done this.

xug 11-11-2001 05:54 PM

I had put it on the wrong spot :o

first here : id="pmBox" <td bgcolor="{categorybackcolor}"

changed to : <td id="pmBox" bgcolor="{categorybackcolor}"


Thanks, it works now !

Baratator 11-12-2001 11:58 AM

erf nobody answers my question :(

Sweet Evil 11-13-2001 09:05 AM

Nice little hack.. Works Great! :D

LuBi 11-14-2001 04:16 AM

Sent myself a PM on this page don't see anything flashing.. help.

Sweet Evil 11-14-2001 04:31 AM

Are you saying you sent yourself a PM on this forum and it does not blink?
(They most likely do not have it installed)... ;)

Or are you having a problem on your site?

LuBi 11-14-2001 04:32 AM

This site, but I read back and Firefly said to do that and I could see it.. :( SS anyone..? lol I mean tell me if it's worth it I'll install it just to see it...

Sweet Evil 11-14-2001 04:40 AM

I feel it is a great addition, as some people do not have notify on, and sem to forget the have a PM box... This kind of reminds them..
HEY YOU HAVE A PM! :D

Its very simple to add/remove.. but its all if you want it or not..

Can't really give you a SS of a blinking category BG without a bit of work..

LuBi 11-14-2001 04:42 AM

lol no thanks, I'll install it now. I have installed something like 15 hacks on a fresh 2.2 forum with template customs to, now all I need to do is the actual layout/header work lol, thanks though!

Sweet Evil 11-14-2001 04:44 AM

(FYI) I just sent myself a PM , and I guess they do have it installed here.. You just can not see it very well (the colors are to close to the same)...

But send youself a PM (Do not read it when it redirects you to your inbox) , click the Forum button.. and you will see the category "ยป Private Messages" blinking...

Baratator 11-14-2001 04:47 AM

Quote:

Originally posted by Baratator
Hi hust i looking for but i only want the link "private message" blink. not the whole section and i want it to blink only when the messages are new and to be in a different coulor when there a new pm hum like this :)

new pM : blink
unread PM : red
no new or unread pm : white

is that possible?


plz can somebody tele me even if it's possible?

LuBi 11-14-2001 04:49 AM

Quote:

Originally posted by Baratator



plz can somebody tele me even if it's possible?

I'll try and help in a few minutes gotta finish up some client work then I'm going to install myself... then I'll help you out.

Sweet Evil - Thanks again! I saw it and I'm sold!


All times are GMT. The time now is 04:48 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.01521 seconds
  • Memory Usage 1,823KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_php_printable
  • (6)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
  • (40)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