SimplePortal

Development => Feature Requests => Topic started by: AngelinaBelle on May 24, 2010, 03:12:14 PM

Title: Allow redirectexit to Portal for standalone portal
Post by: AngelinaBelle on May 24, 2010, 03:12:14 PM
Because standalone portal also has a portal page we could be redirecting to.
 
Code: (find) [Select]
if ((empty($setLocation) || $scripturl == $setLocation) && $modSettings['sp_portal_mode'] == 1 && empty($modSettings['sp_disableForumRedirect']))
  $setLocation = 'action=forum';
Code: (replace) [Select]
  if (  (empty($setLocation) || $scripturl == $setLocation)  && in_array($modSettings['sp_portal_mode'], array(1,3))  )
     if (  empty($modSettings['sp_disableForumRedirect'])  )
     {
        $setLocation='action=forum';
     }
     else
     {
        $setLocation=$context['portal_url'];
        $add = FALSE;
     }

--------------------------
Edit: This is in redirectexit, in Subs.php

 
Title: Re: Allow redirectexit to Portal for standalone portal
Post by: grafitus on July 23, 2010, 10:42:01 AM
This should be a bug, not a feature. ;)
Title: Re: Allow redirectexit to Portal for standalone portal
Post by: AngelinaBelle on August 05, 2010, 04:55:50 PM
As pointed out by ccbtimewiz, this should be
Code: (replace) [Select]
  if (  (empty($setLocation) || $scripturl == $setLocation)  && in_array($modSettings['sp_portal_mode'], array(1,3))  )
     if (  empty($modSettings['sp_disableForumRedirect'])  )
     {
        $setLocation='action=forum';
     }
     else
     {
        $setLocation = (!empty($context['portal_url']) ? $context['portal_url'] : '');
        $add = FALSE;
     }
SimplePortal 2.3.8 © 2008-2024, SimplePortal