Advertisement:

Linking the Menu Bar for "Forum"

Aloittaja pinoy123, elokuu 14, 2011, 12:08:22 IP

« edellinen - seuraava »

pinoy123

I have managed to create the button for "forum' in the from my theme index template.php, yet i cant link the same to the forum url. please help.

please check my index.template.php as attached, although i managed to create the "forum" button but i cant link it. please help.


Forum version: SMF 1.1.14
simpleportal.
theme: 2extremeblue


Angelina Belle

Many SMF support specialists would consider this a SimplePortal question, even though it has elements of a general "how do I create a button" question.

I happen to also provide support over at simpleportal.net.

I can see that you you used a forum button that is a <td> rather than a <li>.  <td> doesn't work very well in a list.

I'm going to recommend that you come on over to simpleportal.net and read about it there: http://simpleportal.net/index.php?action=docs;area=menu_buttons

I'll catch up with you early next week if you need any more help -- if someone else doesn't catch you sooner.
Never attribute to malice that which is adequately explained by stupidity. -- Hanlon's Razor

kat

You have the code on one line, thus:

     // Show the [forum] button.     if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))      echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '            <td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">               <a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>            </td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

The "//" means that the line is a comment. So, it's not parsed.

Try using:

     // Show the [forum] button.
     if (empty($context['disable_sp']) && in_array($modSettings['sp_portal_mode'], array(1, 3)))      echo ($current_action=='forum' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '            <td valign="top" class="maintab_' , $current_action == 'forum' ? 'active_back' : 'back' , '">               <a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a>            </td>' , $current_action=='forum' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';



Advertisement: