TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 434
  • Total: 434

[bugtracker] Option to Redirect to FrontPage on Login/Logout

Started by ZarPrime, June 06, 2009, 05:03:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ZarPrime

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

Renegd98


tamasir

@ZarPrime
Excellent idea  :up:
This was a problem for me.
Thanks
tamasir~

ZarPrime

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

Skhilled


bloc


bloc

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.


This website is proudly hosted on Crocweb Cloud Website Hosting.