SimplePortal

Support => English Support => Topic started by: dwd2000 on October 11, 2008, 06:31:10 PM

Title: OOPS - Not going to Portal after logging in
Post by: dwd2000 on October 11, 2008, 06:31:10 PM
OOPS = Forgot to backup before upgrading to Simple Portal Classic and had unforeseen problems or didn't read instructions properly. :-[

Got almost everything back to where it should be. :bandaged:

The only thing I can't figure out is the fact that:
When someone logs in, they are directed to the forum, instead of the portal. :nervous-happy:

What did I miss??? :holding-flower:
Title: Re: OOPS - Not going to Portal after logging in
Post by: simplelynoob on October 12, 2008, 09:44:08 PM
Hope you are aware in SimplePortal / Configuration / General setting
Enable SimplePortal needs to tick to activate.  :wave:
Title: Re: OOPS - Not going to Portal after logging in
Post by: dwd2000 on October 13, 2008, 01:38:01 AM
Hope you are aware in SimplePortal / Configuration / General setting
Enable SimplePortal needs to tick to activate.  :wave:

Yes, I am well aware of that.
Title: Re: OOPS - Not going to Portal after logging in
Post by: Nathaniel on October 13, 2008, 03:17:36 AM
As of SimplePortal Classic 2.0.5, redirecting to the forum instead of the portal is a default feature. I supose that there should really be an option to turn that off, I will add it to the project tracker. In the meantime, do you want me to show you the edit to turn that feature off?
Title: Re: OOPS - Not going to Portal after logging in
Post by: dwd2000 on October 13, 2008, 12:44:18 PM
As of SimplePortal Classic 2.0.5, redirecting to the forum instead of the portal is a default feature. I supose that there should really be an option to turn that off, I will add it to the project tracker. In the meantime, do you want me to show you the edit to turn that feature off?

Yes please.  ;D
Title: Re: OOPS - Not going to Portal after logging in
Post by: Nathaniel on October 13, 2008, 04:23:56 PM
Find and remove this code from your 'Subs.php' file. Remember that it will remove it for all redirects.

Code: [Select]
//We need the empty redirect for the smf portal go to the action=forum site =)
if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']))
$setLocation = 'action=forum';
Title: Re: OOPS - Not going to Portal after logging in
Post by: dwd2000 on October 13, 2008, 04:51:54 PM
Find and remove this code from your 'Subs.php' file. Remember that it will remove it for all redirects.

Code: [Select]
//We need the empty redirect for the smf portal go to the action=forum site =)
if((empty($setLocation) || $scripturl == $setLocation) && !empty($modSettings['portalactive']))
$setLocation = 'action=forum';

I just commented it out.

Thanks.  :thumbsup:
SimplePortal 2.3.8 © 2008-2024, SimplePortal