change SMF redirects

Started by anonymous001, August 15, 2015, 02:15:28 PM

Previous topic - Next topic

anonymous001

Dear community;

I want to handle all logins and logouts external.
For example if an user trys to check his pms (index.php?action=pm) and he is logged out of forum he would be redirected to the login page of SMF. My idea was to change the login file and edit this, but my question is, if there is a way, to change all redirects, if a user tries to access a page he must be logged into to be able to visit this page. Is there any way to do so or should I edit the login script (smf redirects you to the login site, if you try to access some "internal user" pages)?

All the best;

Kindred

You mean you do not want to allow any guest access?

If so, just turn off guest access (read the wiki/manual, it's an option in smf admin)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Illori

Quote from: Kindred on August 15, 2015, 07:02:57 PM
You mean you do not want to allow any guest access?

not really, they want the log in form to redirect to another place rather then show the form to log in with SMF. you would need to modify function template_kick_guest() in Login.template.php

live627


Advertisement: