TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: ZarPrime on June 06, 2009, 05:03:13 PM

Title: [bugtracker] Option to Redirect to FrontPage on Login/Logout
Post by: ZarPrime on June 06, 2009, 05:03:13 PM
The shoutbox redirection has been fixed a while back but, occasionally,
someone still asks how to make their Forum default to the Front Page
instead of the Forum when logging into or out of their Forum.  Here is the
latest one ...
http://www.tinyportal.net/index.php/topic,28774.msg238124.html#msg238124

I think we should consider a feature for beta 5 where a switch, perhaps a
checkbox placed in TinyPortal settings, could enable a Forum owner to
decide if their Forum should default to the Forum (default as here on TP) or
whether the page should redirect to the FrontPage on Login and Logout.

Bloc, you had given a fix for this  to edit the Sources/Subs.php in this topic
...
http://www.tinyportal.net/index.php/topic,23213.msg188221.html#msg188221

If this was enabled as a checkbox in TinyPortal Settings, a change to the
Subs.php during TP install to add something like this could fix this once and
for all and give users the option


If TinyPortal redirect to FrontPage is enabled then
function redirectexit($setLocation = '', $refresh = false, $tp_not = true)
Else
function redirectexit($setLocation = '', $refresh = false, $tp_not = false)


Thus if the redirect to the FrontPage is enabled, then when logging in or
out, the page would show the FrontPage, otherwise it would show the
Forum.

Any thoughts?

ZarPrime
Title: Re: [bugtracker] Option to Redirect to FrontPage on Login/Logout
Post by: Renegd98 on June 06, 2009, 06:43:48 PM
Sounds like an excellent idea Zar...
Title: Re: [bugtracker] Option to Redirect to FrontPage on Login/Logout
Post by: tamasir on August 19, 2009, 10:36:28 PM
@ZarPrime
Excellent idea  :up:
This was a problem for me.
Thanks
tamasir~
Title: Re: [bugtracker] Option to Redirect to FrontPage on Login/Logout
Post by: ZarPrime on February 07, 2010, 03:22:31 PM
Bloc,

Since we are now getting close to a public release for beta 5, is this a feature that would be easy to add for beta 5, perhaps a boolean (yes/no) for TP Admin general settings?  The Standard way could be the default, Login redirect to Forum BoardIndex, like it is here on TinyPortal, but Login Redirect to FrontPage could be enabled if "yes" is checked.

I have a feeling that if this is not added now, this will be a popular edit request.

ZarPrime
Title: Re: [bugtracker] Option to Redirect to FrontPage on Login/Logout
Post by: Skhilled on February 07, 2010, 04:30:09 PM
Sounds good, ZarPrime. :)
Title: Re: [bugtracker] Option to Redirect to FrontPage on Login/Logout
Post by: bloc on February 07, 2010, 06:36:32 PM
Yes, indeed it will. I'll sort it out right away.
Title: Re: [bugtracker] Option to Redirect to FrontPage on Login/Logout
Post by: bloc on February 07, 2010, 07:02:26 PM
Ok, done. The setting is added. Note that Subs.php had to be changed, but I am not putting that into the update from earlier revisions, only on clean installs(or updates from SMF 1.1)

I'd rather not have too many edits being made from revision to revision, I will also remove references to them when public release is out. Easier then to keep tabs on bugs etc.
Title: Re: [bugtracker] Option to Redirect to FrontPage on Login/Logout
Post by: ZarPrime on February 07, 2010, 07:07:16 PM
Thank you Sir. O0

ZarPrime