Development > Feature Requests
action=portal
tnet:
I would like to see the option of doing action=portal, rather than the portal replacing the default action.
Just my 2ยข
Nathaniel:
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
tnet:
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
Nathaniel:
Well, here are the edits for 'SimpleBackDoor'. :P
Main 'Index.php' file:
Find this code
--- Code: --- 'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
--- End code ---
Replace with this code:
--- Code: --- 'postsettings' => array('ManagePosts.php', 'ManagePostSettings'),
'portal' => array('SPortal.php', 'SPortal'),
--- End code ---
Main 'index.template.php' file:
Find this code
--- 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>' : '';
--- End code ---
Replace with this code:
--- 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>' : '';
--- End code ---
Find this code:
--- Code: ---, 'login', 'help', 'pm', 'forum', 'spadmin'
--- End code ---
Replace with this code:
--- Code: ---, 'login', 'help', 'pm', 'forum', 'spadmin', 'portal'
--- End code ---
tnet:
Awesome man! THANKS! ;D
Navigation
[0] Message Index
[#] Next page
Go to full version