SimplePortal
Customization => Custom Coding => Topic started by: AngelinaBelle on May 21, 2010, 11:17:16 AM
-
// Redirect to the forums action not the portal, when Simple Portal is active. ;)
if (
(empty($setLocation) || $scripturl == $setLocation)
&& $modSettings['sp_portal_mode'] == 1
&& empty($modSettings['sp_disableForumRedirect']))
$setLocation = 'action=forum';
sp_disableForumRedirect is set in SimplePortals general settings in the checkbox titled "Disable Portal Redirection"?
Enabling this option will force redirects to treat board index as the forum index, instead of portal index.
Which sounds to me like it means the opposite sense to what it does.
In any case, the setting of 'sp_disableForumRedirect' is ignored if 'sp_portal_mode' is standalone.
If I were to change this to
// Redirect to the forums action not the portal, when Simple Portal is active. ;)
if (
(empty($setLocation) || $scripturl == $setLocation)
&& ( $modSettings['sp_portal_mode'] == 1 || $modSettings['sp_portal_mode'] == 2 )
&& empty($modSettings['sp_disableForumRedirect']))
$setLocation = 'action=forum';
To force login/out redirect to portal for standalone portal, would there be any unfortunate consequences?