Re: Change error message for anonymous visitors?
> Which template file controls the error message people get when they go to a page they don't have permission to visit? The one now is pretty off-putting... I'd like to add the register module on the page. Thanks!
For wiki pages, it is in tiki-index.php. Look for:
Copy to clipboard
if($tiki_p_view != 'y') { if (!isset($user)){ $smarty->assign('msg',$smarty->fetch('modules/mod-login_box.tpl')); $smarty->assign('errortitle',tra("Please login")); } else { $smarty->assign('msg',tra("Permission denied you cannot view this page")); } $smarty->display("error.tpl"); die; }
HTH,
-Rick