SimplePortal

Development => Feature Requests => Topic started by: tnet on September 04, 2008, 07:49:00 AM

Title: action=portal
Post by: tnet on September 04, 2008, 07:49:00 AM
I would like to see the option of doing action=portal, rather than the portal replacing the default action.

Just my 2ยข
Title: Re: action=portal
Post by: Nathaniel on September 04, 2008, 07:51:38 AM
That feature would probably be very easy to add. I can show you the edits if you want to do that. ;)

Although this is meant to be a 'portal'. :D
Title: Re: action=portal
Post by: tnet on September 04, 2008, 07:53:27 AM
That would be awesome - I need it to be honest, otherwise I will uninstall it - it's too much of a change for our site's main page, but I LIKE the way it works!

Should I uninstall?   ;D

Maybe we can call this simpleBackdoor.    >:D
Title: Re: action=portal
Post by: Nathaniel on September 04, 2008, 08:01:50 AM
Well, here are the edits for 'SimpleBackDoor'. :P

Main 'Index.php' file:
Find this code
Code: [Select]
'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
Replace with this code:
Code: [Select]
'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
'portal' => array('SPortal.php', 'SPortal'),


Main 'index.template.php' file:
Find this code
Code: [Select]
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';

Replace with this code:
Code: [Select]
// Show the [portal] button.
echo ($current_action=='portal' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='portal' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">Portal</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';

Find this code:
Code: [Select]
, 'login', 'help', 'pm', 'forum', 'spadmin'
Replace with this code:
Code: [Select]
, 'login', 'help', 'pm', 'forum', 'spadmin', 'portal'
Title: Re: action=portal
Post by: tnet on September 04, 2008, 08:32:44 AM
Awesome man!  THANKS!  ;D
Title: Re: action=portal
Post by: [SiNaN] on September 17, 2008, 09:25:35 AM
I don't think that we need this feature as default. Portal should be the 'main' page every time IMO.
Title: Re: action=portal
Post by: Nathaniel on September 17, 2008, 05:15:26 PM
@[SiNaN],
You are definetly correct, its still worth having an up-to-date hack/mod that can allow you to do this. ;D
SimplePortal 2.3.8 © 2008-2024, SimplePortal