SimplePortal
Support => English Support => Topic started 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.)
-
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
// 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 $txt[9999] = 'Forum';
and add this instead in your index.template.php
echo '<li><a href="', $scripturl, '?action=forum">', $txt[9999] , '</a></li>';
-
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.
-
use attached file and turn off the "site" button from admin cp > current theme area.
-
Any updates on this?
-
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
// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '<td class="maintab_off_' . $first . '"> </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 . '"> </td>' : '<td class="maintab_off_' . $last . '"> </td>';
}
else
{
// Show the [forum] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '<td class="maintab_off_' . $first . '"> </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 . '"> </td>' : '<td class="maintab_off_' . $last . '"> </td>';
}
if(!empty($context['portalactive']))
echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '<td class="maintab_off_' . $first . '"> </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 . '"> </td>' : '<td class="maintab_off_' . $last . '"> </td>';
Please help
-
Can you attach your own index.template.php file?