PDA

View Full Version : How To Change the Popup Path for PM prompt on external scripts



Jake Bunce
Thu 1st Apr '04, 6:42pm
The PM popup window isn't working when spawned by an external script. How can I change the popup path?




Go to your:

Admin CP -> Styles & Templates -> Style Manager -> « » -> Private Message Templates -> pm_popup_script

Add the appropriate code in red:



<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])"))
{
window.open("/forum/$pmpopupurl", "pmnew", "menubar=yes,scrollbars=yes,toolbar=yes,location=ye s,directories=yes,resizable=yes,top=50,left=50");
}
else
{
window.location = "/forum/$pmpopupurl";
}
}

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