SimplePortal
Development => Feature Requests => Topic started 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ยข
-
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
-
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
-
Well, here are the edits for 'SimpleBackDoor'. :P
Main 'Index.php' file:
Find this code
'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
Replace with this code:
'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
'portal' => array('SPortal.php', 'SPortal'),
Main 'index.template.php' file:
Find this code
// 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:
// 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:
, 'login', 'help', 'pm', 'forum', 'spadmin'
Replace with this code:
, 'login', 'help', 'pm', 'forum', 'spadmin', 'portal'
-
Awesome man! THANKS! ;D
-
I don't think that we need this feature as default. Portal should be the 'main' page every time IMO.
-
@[SiNaN],
You are definetly correct, its still worth having an up-to-date hack/mod that can allow you to do this. ;D