Customization > Themes and Graphics

No Home Button in Menu, and Forum Button Points to SP instead of the Forums

(1/2) > >>

WhiteEagle:
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.

[SiNaN]:
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) --- $vp_nav_bar_items = array
(
array
(
'Title' => $txt['vp_forums'],
'Link' => $scripturl
),
--- End code ---


--- Code: (Replace) --- 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
),
--- End code ---

WhiteEagle:
Thanks so much! That worked perfectly!

[SiNaN]:
You're welcome. ;)

Chen Zhen:

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.

Navigation

[0] Message Index

[#] Next page

Go to full version