rstark
02-08-2003, 08:10 AM
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.
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.