Wanneer ontstond het probleem? Direct na de instalatie van de MOD
Adres van je forum: http://213.10.134.211/stamtafel/modules/forums/
Geïnstalleerde mods: PM Popup Blocker Fix
Huidige template: Pixelstyle
phpBB versie: 2.0.13
Host: eigen webserver
Heb je onlangs een mod of stijl geïnstalleerd? ja
Heb je gezocht naar een antwoord? ja
Na het instaleren van een MOD kreeg ik de volgende error
Parse error: syntax error, unexpected $end in d:\wamp\www\stamtafel\modules\Forums\includes\template.php(127) : eval()'d code on line 122
en de template ziet er niet meer uit trekt alles uitelkaar en verliest zijn kleuren.
Zodra ik overall_header.tpl terug zet is het probleem verholpen maar werkt de MOD dus niet de code die ik moest veranderen is
Code: Selecteer alles
#-----[ FIND ]------------------------------------------
#
# NOTE: you will need to do this for all your templates!
#
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- BEGIN switch_enable_pm_popup -->
<script language="javascript" type="text/javascript">
<!--
// MOD: PM Popup Blocker Fix - by tomlevens (tom@tomlevens.co.uk)
// (4 lines replaced - original lines follow)
//
// if ( {PRIVATE_MESSAGE_NEW_FLAG} )
// {
// window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
// }
//
if({PRIVATE_MESSAGE_NEW_FLAG})
{
new_pm_prompt = confirm('{L_PRIVATEMSG_NEW}');
if(new_pm_prompt == true) {
// Redirect to Inbox if OK is clicked
window.location = '{U_PRIVATEMSGS}';
}
else {
// Close prompt if cancel is clicked
}
}
//
// END MOD
//-->
</script>
<!-- END switch_enable_pm_popup -->
Tnx Tiger