SimplePortal
Development => Bugs => Fixed or Bogus Bugs => Topic started by: aldo on August 26, 2008, 09:32:56 PM
-
In the Admin Control Panel of Simple Portal, where you can choose if you want the portal enabled or not, when you have it disabled, shouldn't the Forum link not show in the menu?
-
Thank you for reporting the error, Aldo.
Here is the fix: ;)
Find this code('index.template.php') (Line 199 of 'install.xml')::
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
Replace with this code:
// Show the [forum] button.
if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
Find this code ('SPortal.php'):
global $context;
$context['page_title'] = $context['forum_name'];
Replace with this code:
global $context, $modSettings;
$context['page_title'] = $context['forum_name'];
$context['portalactive'] = $modSettings['portalactive'];
-
The SMF 2 Beta version has been updated to include a similar edit. ;)
Edit:
Added to BugTracker.
-
Hello, I have SimplePortal Classic 2.0.5 and we are unable to find this edit. Also I am using the morestyle theme so that could be causing my issue with adding more buttons to the nav bar. I attempted to use the SMF guide to add them but that did not work either. I do see a file called SPortal1-1.php but no ('SPortal.php')
Can some one help us out with this?
We love this board by the way! thank you!
http://www.midsouthmetal.com/SMF/index.php
-
That edit is no longer required for the default theme, although you will need it for custom themes. Have a read of the tutorial below, that should help you:
http://simpleportal.net/index.php?topic=148
-
In the Admin Control Panel of Simple Portal, where you can choose if you want the portal enabled or not, when you have it disabled, shouldn't the Forum link not show in the menu?
and even though we enable SimplePortal, how can i add FORUM link in the Top menu while running on Classic SMF theme?
-
http://simpleportal.net/index.php?topic=148