Yes...woody2k4 wrote:Is this now working on a subsilver2 based theme now? i couldnt really tell from the previous posts
Code: Select all
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
popup('{UA_POPUP_PM}', 400, 225, '_phpbbprivmsg');
}
<!-- ENDIF -->
I agree I to would rather it show up on what ever page that the use is looking at and not a blank white page.Manhattan wrote:Hi
Thanks for your nice MOD! But is it possible that the alert message shown on the loaded index page not before it on the empty page?
styles/prosilver/template/overall_header.html
Find
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
var url = '{UA_POPUP_PM}';
window.open(url.replace(/&/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
}
<!-- ENDIF -->
Replace With
<!-- IF S_USER_PM_POPUP -->
if ({S_NEW_PM})
{
var answer = confirm("{L_PM_ALERT_BOX}")
if (answer)
{
window.location = "{U_PRIVATEMSGS}";
}
}
<!-- ENDIF -->
The Find specified by the MOD could not be founds