Simple Machines Community Forum

Customizing SMF => Building Your Community and other Forum Advice => Topic started by: jossiejojo on September 29, 2006, 03:52:59 PM

Title: Advice on linking to another site for a non-coder
Post by: jossiejojo on September 29, 2006, 03:52:59 PM
My only experience of website design is with Frontpage: I cant code HTML except maybe a few lines at most.
I really need a way of linking my SMF forum back to the main part of my site ie inserting a hyperlink back. Can anyone help please? The existing site (without the forum) is:

www.artcornwall.org

thanks a lot

Title: Re: Advice on linking to another site for a non-coder
Post by: Bigguy on September 29, 2006, 03:59:59 PM
Try this out. If you put it in your index.template.php file right were the others are it should put a tab on the default theme:

// Show a [new] button.
      echo ($current_action == 'newaction' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
            <td valign="top" class="maintab_' , $current_action == 'newaction' ? 'active_back' : 'back' , '">
               <a href="http://www.artcornwall.org
">Main Page</a>
            </td>' , $current_action == 'newaction' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';


You can change the "Main Page" text to what ever you want. Hope this helps a bit.