SimplePortal

Support => Install and Upgrade => Topic started by: triger on April 08, 2012, 01:12:29 PM

Title: "Forums" Button Missing
Post by: triger on April 08, 2012, 01:12:29 PM
When I installed simple portal 3.4.5, there was no errors. After install I looked at the top navigation bar and the button that lets you visit the forums is missing. I recently had ADK portal installed. I uninstalled that to install simple portal. Is there any way I can get the "Forums" button back?

(http://i41.tinypic.com/2468eqc.png)
Title: Re: "Forums" Button Missing
Post by: Old Fossil on April 08, 2012, 01:33:46 PM
Any errors in the error log?

Which theme do you use?

Did you completely uninstall adk portal?
Title: Re: "Forums" Button Missing
Post by: ccbtimewiz on April 08, 2012, 04:31:35 PM
Can you attach your ./Sources/Subs.php file?
Title: Re: "Forums" Button Missing
Post by: AngelinaBelle on April 09, 2012, 09:18:22 PM
Which version of SMF are you using? Would you consider bringing SMF up to 2.0.2?
Title: Re: "Forums" Button Missing
Post by: triger on April 11, 2012, 05:11:16 PM
I attached my subs.php
Title: Re: "Forums" Button Missing
Post by: ccbtimewiz on April 11, 2012, 07:20:27 PM
Find:

Code: [Select]
'forum' => array(
'title' => !empty($txt['foro']) ? $txt['foro'] : 'Forum',
'href' => $adkportal['adk_enable'] == 2 ? $scripturl : $scripturl . '?action=forum',
'show' => !empty($adkportal['adk_enable']),
'sub_buttons' => array(
),
),

Replace with:
Code: [Select]
'forum' => array(
'title' => empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'],
'href' => $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : ''),
'show' => in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']),
'sub_buttons' => array(
),
),
Title: Re: "Forums" Button Missing
Post by: ccbtimewiz on April 11, 2012, 07:23:56 PM
Find and delete:

Code: [Select]
$current_action = $adkportal['adk_enable'] == 2 && empty($context['adk_stand_alone']) ? 'forum' : 'home';
Find and delete:

Code: [Select]
elseif($adkportal['adk_enable'] == 1 && (isset($_REQUEST['board']) || isset($_REQUEST['topic']) || isset($_REQUEST['page']) || isset($_REQUEST['blog'])))
$current_action = 'forum';

Find and delete:
Code: [Select]
global $adkportal,$boardurl;
Find and delete:
Code: [Select]
elseif($adkportal['adk_enable'] == 1 && (isset($_REQUEST['board']) || isset($_REQUEST['topic']) || isset($_REQUEST['page']) || isset($_REQUEST['blog'])))
$current_action = 'forum';

Find and delete:
Code: [Select]
global $adkportal;
$adk_stand_alone_url = isset($adkportal['adk_stand_alone_url']) ? $adkportal['adk_stand_alone_url'] : $scripturl;
$home_url = $adkportal['adk_enable'] == 2 ? $adk_stand_alone_url : $scripturl;

Find and delete:
Code: [Select]
),
'adkportal' => array(
'title' => !empty($txt['adk_portal']) ? $txt['adk_portal'] : 'Adk Portal',
'href' => $scripturl . '?action=admin;area=adkadmin',
'show' => allowedTo('adk_portal'),
'is_last' => true,
),



Find:
Code: [Select]
'home' => array(
'title' => $txt['home'],
'href' => $home_url,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
// 'target' => '_blank',
),

Replace with:
Code: [Select]
'home' => array(
'title' => $txt['home'],
'href' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl,
'show' => true,
'sub_buttons' => array(
),
'is_last' => $context['right_to_left'],
),
Title: Re: "Forums" Button Missing
Post by: ccbtimewiz on April 11, 2012, 07:24:54 PM
There could be more instances but those are what I found. To be entirely honest, you're better off uninstalling SimplePortal, replace your ./Sources/Subs.php with a fresh default copy, and then reinstall SimplePortal.

Title: Re: "Forums" Button Missing
Post by: AngelinaBelle on April 16, 2012, 02:09:21 PM
It would seem that the uninstall of ADK portal was not completely successful.
there are bits of it remaining in Subs.php.
I wonder if some bits remain in other parts of your forum?

What went wrong with the ADK-portal uninstall?
SimplePortal 2.3.8 © 2008-2024, SimplePortal