Page 1 of 1

Restrict Access

Posted: 2014-04-04 07:15
by energylevels2012
Can't see a redirect option in the ADDT restrict access to page SB - By default its the same redirect page as the failed login page which is a bit confusing.

How do you make a custom redirect with the restrict access SB so you have a page for 'access denied' as well as a page for 'login failed' ??

Re: Restrict Access

Posted: 2014-04-04 11:30
by Fred
I don't use ADDT but it could be that the actual config is stored in the same file as interakt.
Look at the tNG_config.inc.php file for the different redirects.

By default you only have a success_redirect and a failed_redirect. That would usually be your login page.
That makes sense because if someone wants to see a page and does not have access to it he might not be logged in.

If they do not have the required access level just echo a notice at the top of the page. As simple check to see if the login_level variable has been set should be enough.
If you want something else simply redefine the failed_redirect to a different page with a button to continue to the login/registration page.

Or don't I understand your question...?

Re: Restrict Access

Posted: 2014-04-04 20:32
by energylevels2012
Is there any difference between ADDT and Kollection 3.7.1? We updated a couple of old sites built with Kollection 3.7.1 to ADDT - One of the main reasons was when installing a new machine we were unable to activate Kollection. They both run on PHP 5.3 with patched files and ADDT on Dreamweaver CS4 seems to crash and freeze quite a lot when we've been using it ...

Re: Restrict Access

Posted: 2014-04-09 11:23
by Fred
Not sure about the differences between the two.

Re: Restrict Access

Posted: 2014-04-12 06:20
by energylevels2012
Very little difference it seems ...