News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

Main Menu

Redirect to main page with an error or no permission to view

Started by skidpics, August 31, 2007, 05:16:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skidpics

Not sure where to post this question..  but..


When you get "You don't have permission to access this page.", I would like for it either prompt to register, if the album is for registered viewers only, or redirect to the home page.  Is there a mod available for this?


Joachim Müller

Edit lang/yourlanguagefile.php (e.g. lang/english.php), find  'access_denied' => 'You don\'t have permission to access this page.',and replace with something like  'access_denied' => 'You don\'t have permission to access this page. <a href="login.php">Log in</a>.',