Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1141
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Help adding Forum button to Cleanmachine theme

Started by ODB1, August 04, 2009, 11:49:28 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ODB1

Ok, I have followed the steps in the general custom theme tutorial and I keep getting a parse error. I have searched the forums, and I see this come up several times but I have not found anything more complete than the instructions in the tutorial. I am using SMF 1.1.10 and Simple Portal 2.2.2. I am using the theme called Cleanmachine. I want to add the button after the home button. I posted earlier but my post has disappeared. I am including the index.template.php file from the above mentioned theme. Any help would be appreciated.

130860


ODB1

Thank you very much. I was going nuts trying to get that working. If its not to much to ask, can you outline the changes you made? So next time I can fix it myself. I am obviously a noob, but really want to learn.

Cheers,
ODB1

Costa

130860 modification  :nervous-happy:

// Show the [home] button.
     echo '<li', $current_action == 'home' ? ' class="chosen"' : '', '><a href="', $scripturl, '">' , $txt[103] , '</a></li>';
     
     
     // Show the [forum] button.
     global $modSettings;
     
    if (in_array($modSettings['sp_portal_mode'], array(1, 3)))
        echo '<li', $current_action=='forum' ? ' class="chosen"' : '', '> <a href="', $scripturl . ($modSettings['sp_portal_mode'] == 1 ? '?action=forum' : ''), '">', empty($txt['sp-forum']) ? 'Forum' : $txt['sp-forum'], '</a></li>';
Hugo "Costa" FernandesCrudelius est quam semper mortem timere


130860

well, I also added the "$current_action=='forum" code  for the theme's correct use, I just follow the parser at smf.org. ;)


greetings!