vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   PM popup not working (https://vborg.vbsupport.ru/showthread.php?t=48681)

rstark 02-08-2003 08:10 AM

PM popup not working
 
Tried this on the regular site without much help. I hope someone here can help...

The IM support - check for new PM's is set to yes in the VB CP. Pop up a box when you receive a Private Message is set to yes for the user. The following is a partial source code of the forums page when the user gets a new PM:

quote:
--------------------------------------------------------------------------------
<script language="JavaScript">
<!--
function confirm_newpm() {
input_box=confirm("You have a new private message. Click OK to view it, or cancel to hide this prompt." );
if (input_box==true) { // Output when OK is clicked
second_box=confirm("Open in new window?\n\n(Press cancel to open your Inbox in the current window.)" );
if (second_box==true) {
window.open('private.php?s=','pmnew','width=600,he ight=500,menubar=yes,scro llbars=yes,toolbar=yes,location=yes,directories=ye s,resizable=yes,top=50,left=50');
} else {
window.location="private.php?s=";
}
} else {
// Output when Cancel is clicked
}
}
// -->
</script>
</head>
<body onload="java script:confirm_newpm()" bgcolor="#003399" text="#000000" id="all" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#000000" vlink="#000000" alink="#000020">
--------------------------------------------------------------------------------

Is there something I'm missing? I'm using IE 6 with medium security settings.

Erwin 02-08-2003 09:54 AM

Do you have any other javascripts that may conflict with this? That's the most common reason for it not working.

rstark 02-08-2003 07:00 PM

1 Attachment(s)
Yes I do, but no other onload statements. I'm attaching the entire source of the page. If anyone can help, I would appreciate it.

Erwin 02-09-2003 05:43 AM

Try removing all the javascripts except for the default ones, and see if it works. If it does, you know that it's one of the extra scripts, and you can slowly debug it.


All times are GMT. The time now is 01:41 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.01116 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete