Log in

View Full Version : PMpopup open in same window


Ghostt
12-27-2009, 09:58 PM
How to config that the PM Popupalertbox is normal showing ,but on click on "OK" to get imidiately redirected to the pmpopupurl . without to get another alertbox showing...

the teamplate for the "pm_popup_script " is looking like this:

<script type="text/javascript">
<!--
// script to show new private message popup

if (confirm("<phrase 1="$newpm[username]" 2="$newpm[title]">$vbphrase[have_new_pm_popup_x_y]</phrase>"))
{
// Output when OK is clicked
if (confirm("$vbphrase[open_message_in_new_window]"))
{
var winobj = window.open("$pmpopupurl", "pmnew", "statusbar=yes,menubar=yes,scrollbars=yes,toolbar=y es,location=yes,directories=yes,resizable=yes,top= 50,left=50");
if (winobj == null)
{
alert("$vbphrase[window_open_failed_blocker]");
}
}
else
{
window.location = "$pmpopupurl";
}
}

// end pm popup script
//-->
</script>

the part with the popup should bereplaced with
window.location = "$pmpopupurl"; i think.

but it is not working.
i would be very thankfull if someone can test it. its a usefull thing because popupblocker are standart now.

best regards
ghostt

ChopSuey
12-28-2009, 01:12 AM
Why not use PM Popup like vb.org? It works better than an annoying popup.
Just shows a line on the page.

Ghostt
12-28-2009, 03:12 AM
its not effective enough because its howing only on forumhome and only 1 time!...

i have to get it work.

it should be a simple change but i cant get it :(

ChopSuey
12-28-2009, 05:58 AM
I use it on a board i help with, it shows on every page.

Ghostt
12-28-2009, 01:53 PM
ive tested it some time before and it appeared only 1 time. after getting a PN and changing the page the infobox disapears.

Ghostt
01-05-2010, 11:43 PM
no idea?

ChopSuey
01-08-2010, 08:09 AM
I think my reply got deleted....but umm try the PM Popup by Dismounted.