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)

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 !


All times are GMT. The time now is 11:03 AM.

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.01270 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)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)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