TinyPortal

Development => Support => Topic started by: AM Woody3 on July 03, 2009, 01:23:53 PM

Title: Main Page at Logout
Post by: AM Woody3 on July 03, 2009, 01:23:53 PM
I'm sure this is probably pretty easy but I just can't figure out where to do it. Right now, when a user logs out, they are directed to the forum.  What I want is for them to be redirected to the front (main) page.
Title: Re: Main Page at Logout
Post by: Lesmond on July 03, 2009, 01:43:04 PM
Welcome to Tinyportal AM Woody3

It would help us to help you, if you could Please read the Posting Guidelines.html (http://www.tinyportal.net/index.php/topic,581)
Title: Re: Main Page at Logout
Post by: AM Woody3 on July 03, 2009, 05:18:01 PM
Sorry about that.  This is my test site.

Link to my site: http://smf.lousyatgaming.com
SMF version: SMF ver. 1.1.9
TP version: TP v1.0 beta 4
Theme name and version: MegaPolis
Browser Name and Version: Internet Explorer 8
Mods installed: Hack's Park Shoutbox, SMF Gallery Lite, SMF Articles, Aeva ~ Auto-Embed Video & Audio, Xbox Live Gamer Tag, TinyPortal, Stop Spammer
Title: Re: Main Page at Logout
Post by: Lesmond on July 03, 2009, 05:36:41 PM
Strange on my forum when I logout it goes to the front main page, but I run TinyPortal v0.9.8 on that site, I also have test site, (running TinyPortal v1.0 beta 4) when I logout from that it goes to the forum, not the main front page! I know this is not much help, but I am wondering if this maybe something to do with TinyPortal v1.0 beta 4 that redirects to the forum,

I will ask Bloc to have a look at this topic when he has time.
Title: Re: Main Page at Logout
Post by: ZarPrime on July 03, 2009, 05:46:34 PM
There is not currently an option to redirect to the Front Page on Login/Logout in TinyPortal.  This is because this is the normal function of SMF.  If you check, you will see that this is also the way it works here on TinyPortal.  However, I have requested that this be added as a feature for a future version of TP in this post ...
http://www.tinyportal.net/index.php/topic,29874.msg238164.html#msg238164

If you want to do this yourself, Bloc gave a fix for this in this post ...
http://www.tinyportal.net/index.php/topic,23213.msg188221.html#msg188221

In essence, you will have to edit the Sources/Subs.php file with the edits that Bloc suggested in that post.

ZarPrime
Title: Re: Main Page at Logout
Post by: Lesmond on July 03, 2009, 05:56:59 PM
yeah thats the one just tested and works fine

Quote from: Bloc on April 10, 2008, 04:21:12 PM

If you want to change it for all though, you can do that too. Open up Sources/Subs.php and find:
function redirectexit($setLocation = '', $refresh = false, $tp_not = false)

replace with:
function redirectexit($setLocation = '', $refresh = false, $tp_not = true)

Title: Re: Main Page at Logout
Post by: Skhilled on July 04, 2009, 11:53:41 PM
I love that url: http://smf.lousyatgaming.com LOL