SimplePortal

Customization => Themes and Graphics => Topic started by: WhiteEagle on December 02, 2014, 11:55:56 PM

Title: No Home Button in Menu, and Forum Button Points to SP instead of the Forums
Post by: WhiteEagle on December 02, 2014, 11:55:56 PM
Hi everyone,

I'm having trouble getting SP (2.3.6) working with the Pulse theme at LeetSpace.com (that's also the URL). There is no home button, and now the forums button points to the portal, so it's next to impossible to access the forums. I only have the IMDb BBCode mod installed besides Pulse and SP at the site, and I'd like to get this issue fixed before I install anything more.

I'm running 2.0.9 of SMF, and I copied the sp and admin folders from the default theme, yet the home button still did not show up. Please help me solve this!

Thanks in advance,
Nathan P.
Title: Re: No Home Button in Menu, and Forum Button Points to SP instead of the Forums
Post by: [SiNaN] on December 03, 2014, 01:36:47 PM
I have no idea why the theme author came up with his own menu function instead of using the default one but that's causing the problem. You'll have to manually add it.

index.template.php

Code: (Find) [Select]
$vp_nav_bar_items = array
(
array
(
'Title' => $txt['vp_forums'],
'Link' => $scripturl
),

Code: (Replace) [Select]
if (in_array($modSettings['sp_portal_mode'], array(1, 3)) && empty($context['disable_sp']))
{
$forum_title = empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'];
$forum_link = $scripturl . ($modSettings['sp_portal_mode'] == 1 && empty($context['disable_sp']) ? '?action=forum' : '');
}
else
{
$forum_title = " ";
$forum_link = " ";
}

$vp_nav_bar_items = array
(
array
(
'Title' => $txt['home'],
'Link' => $modSettings['sp_portal_mode'] == 3 && empty($context['disable_sp']) ? $modSettings['sp_standalone_url'] : $scripturl
),
array
(
'Title' => $forum_title,
'Link' => $forum_link
),
Title: Re: No Home Button in Menu, and Forum Button Points to SP instead of the Forums
Post by: WhiteEagle on December 03, 2014, 02:27:17 PM
Thanks so much! That worked perfectly!
Title: Re: No Home Button in Menu, and Forum Button Points to SP instead of the Forums
Post by: [SiNaN] on December 03, 2014, 02:51:23 PM
You're welcome. ;)
Title: Re: No Home Button in Menu, and Forum Button Points to SP instead of the Forums
Post by: Chen Zhen on December 05, 2014, 02:36:02 PM

Just to note that I posted an edit that reflects the actual navigation array for that theme some time ago.
ref. http://visualpulse.net/forums/index.php?topic=316.0

The edit from that link will actually allow any mod that adds links to the tree to display as they should without any further manual edits to that file/function.

Regards.
Title: Re: No Home Button in Menu, and Forum Button Points to SP instead of the Forums
Post by: WhiteEagle on December 05, 2014, 02:54:26 PM
Thanks Underdog for pointing that out! That'll help me in the future (when I add Groups and Galleries)!
SimplePortal 2.3.8 © 2008-2024, SimplePortal