SimplePortal

Support => English Support => Topic started by: luc1f3rspalm on October 26, 2008, 04:49:04 AM

Title: WOW-DK Theme, Home and forum button issues.
Post by: luc1f3rspalm on October 26, 2008, 04:49:04 AM
OK, basically i can't figure out what the issue is here, i can manage to get both buttons to pop up but they both only go to the index page, the forum button never applies the action for forum.

The index template is setup with it's default settings, so only the home button is set to show up currently.

Link to forum: http://www.luc1f3rsrealm.com/
using 1.1.6
latest simple portal.

Index template is attached.

(This theme was original set up to work with TP, but I can not find an install for 1.1.6 to use this theme.)
Title: Re: WOW-DK Theme, Home and forum button issues.
Post by: ibm450 on October 26, 2008, 07:08:22 AM
in your index template, ive noticed 2 or more entries for forum buttons. remark them out, meaning, place // infront of the codes that state forum

paste the default forum button under them

Code: [Select]
// Show the [forum] button.
if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_first"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action=='forum' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=forum">'.$txt['sp-forum'].'</a>
</td>' , $current_action=='forum' ? '<td class="maintab_active_last"> </td>' : '';

you should see basic forum button apppear

if not go into your index.english.php in default theme folder add
Quote
$txt[9999] = 'Forum';
and add this instead in your index.template.php
Code: [Select]
echo    '<li><a href="', $scripturl, '?action=forum">', $txt[9999] , '</a></li>';
Title: Re: WOW-DK Theme, Home and forum button issues.
Post by: luc1f3rspalm on October 26, 2008, 05:10:33 PM
Now, That gives me two forum buttons, one takes me home the other to forum, but the left forum button is highlighted in those cases.
Title: Re: WOW-DK Theme, Home and forum button issues.
Post by: asude on November 01, 2008, 08:19:28 AM
use attached file and turn off the "site" button from admin cp > current theme area.
Title: Re: WOW-DK Theme, Home and forum button issues.
Post by: [SiNaN] on November 10, 2008, 06:47:15 AM
Any updates on this?
Title: Re: WOW-DK Theme, Home and forum button issues.
Post by: ob1coyote on November 17, 2008, 05:15:54 AM
ok, I used that attached index file and I looked for that "site" button from admin cp > current theme area but I can't find it....

I know the answer is something in this sections... but I can't wrap my mind around it.
Or maybe it has something to do with that site button and its 3am.... sigh

Code: [Select]
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '">' , $txt['wow_forum_button_forum'] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

}
else
{
// Show the [forum] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
<td valign="top" class="maintab_' , $current_action == 'home' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '">' , $txt[103] , '</a>
</td>' , $current_action == 'home' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

}
if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '<td class="maintab_off_' . $first . '">&nbsp;</td>' , '
<td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'off_back' , '">
<a href="', $scripturl, '?action=forum">' , $txt['sp-forum'] , '</a>
</td>' , $current_action == 'forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '<td class="maintab_off_' . $last . '">&nbsp;</td>';

Please help
Title: Re: WOW-DK Theme, Home and forum button issues.
Post by: [SiNaN] on November 30, 2008, 07:18:28 AM
Can you attach your own index.template.php file?
SimplePortal 2.3.8 © 2008-2024, SimplePortal