PDA

View Full Version : PM Popup died :(


Entourage
08-24-2002, 08:46 PM
I have a completly hacked board and just upgraded to a newer vbb version, the old board had the same problem as this one stating:

the pm popup does not work

the <body onload...... is there
the query works to set the pmpopup back to 1

but there is no javascript for the popup

I heard the msn hack can interfere with the pmpopup.
I have installed the msn hack but i don't know where to find it so i can delete it and try again....

NTLDR
08-24-2002, 08:59 PM
Do you have the PM popup enabled in the options in the admin cp?

Entourage
08-24-2002, 09:08 PM
Yes it's turned on everywhere i even checked on Database level when send someone a PM it sets pmpopup to 2 for popup

the body tag gets an onload()

the pmpopup is being set to 1 again for no popup

but i never see a popup :(

NTLDR
08-24-2002, 09:11 PM
The javascript is in the head_newpm template, just revert this to the origional if you think this has changed, which msn hack is it you have installed?

Entourage
08-24-2002, 09:14 PM
obsolete

NTLDR
08-24-2002, 09:18 PM
That may be the problem as this is also javascript based, try removing this and see if it works then ;)

Entourage
08-24-2002, 09:22 PM
Okay the msn thingie is gone

but still the pm popup refuses to work :'(

NTLDR
08-24-2002, 09:29 PM
Check your code in forum/global.php with the origional version between these lines, this deals with PM popups:

$newpmmsg=0;

and:

eval("\$headnewpm = \"".gettemplate('head_newpm')."\";");
}

Entourage
08-24-2002, 09:42 PM
obsolete

NTLDR
08-24-2002, 09:46 PM
I don't think that the onload() bit is required, i can't find it on my site or in the source code for the home page.

Entourage
08-24-2002, 09:53 PM
The onload() bit is needed to start the function but hack i'll rewrite it :)

And will answer back here ASAP

Thnx for the idea to ignore the onload and the function stuff :)

Solution

head_newpm (template) is now:

<script language="JavaScript">
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?','pmnew','width=600,heig ht=500,menubar=yes,scrollbars=yes,toolbar=yes,loca tion=yes,directories=yes,resizable=yes,top=50,left =50');
} else {
window.location="private.php?";
}
} else {
// Output when Cancel is clicked
}
</script>