Restrict Access

Any tips and tricks that has to with the ADDT that doesn't fit into one of the other categories
energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Restrict Access

Post by energylevels2012 » 2014-04-04 07:15

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' ??

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Restrict Access

Post by Fred » 2014-04-04 11:30

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...?

energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Re: Restrict Access

Post by energylevels2012 » 2014-04-04 20:32

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 ...

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: Restrict Access

Post by Fred » 2014-04-09 11:23

Not sure about the differences between the two.

energylevels2012
Posts: 58
Joined: 2012-07-22 16:41

Re: Restrict Access

Post by energylevels2012 » 2014-04-12 06:20

Very little difference it seems ...

Post Reply