SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: aldo on August 26, 2008, 09:32:56 PM

Title: Forum Link?
Post 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?
Title: Re: Forum Link?
Post by: Nathaniel on August 26, 2008, 09:41:54 PM
Thank you for reporting the error, Aldo.

Here is the fix: ;)

Find this code('index.template.php') (Line 199 of 'install.xml')::
Code: [Select]
// Show the [forum] button.
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '

Replace with this code:
Code: [Select]
// 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'):
Code: [Select]
global $context;

$context['page_title'] = $context['forum_name'];

Replace with this code:
Code: [Select]
global $context, $modSettings;

$context['page_title'] = $context['forum_name'];
$context['portalactive'] = $modSettings['portalactive'];
Title: Re: Forum Link?
Post by: Nathaniel on August 26, 2008, 09:56:09 PM
The SMF 2 Beta version has been updated to include a similar edit. ;)

Edit:
Added to BugTracker.
Title: Re: Forum Link?
Post by: hateflavor on October 14, 2008, 05:02:20 PM
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
Title: Re: Forum Link?
Post by: Nathaniel on October 14, 2008, 07:21:57 PM
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
Title: Re: Forum Link?
Post by: RoH on November 10, 2008, 07:01:21 AM
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?
Title: Re: Forum Link?
Post by: [SiNaN] on November 10, 2008, 07:25:32 AM
http://simpleportal.net/index.php?topic=148
SimplePortal 2.3.8 © 2008-2024, SimplePortal