Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Atheo on May 16, 2008, 12:43:18 PM

Title: Custom Page with Menu Link
Post by: Atheo on May 16, 2008, 12:43:18 PM
Hello, I'm new and learning so if this is a simple question I apologize.

What I am trying to do:

1.)  I'm using the current smf 2 beta.  I want to make a custom home page that displays nothing after the menu bar except what I put there (i.e. Articles, pics, etc.)  I want this page to have everything that appears from the menu and above and follow the current theme but as an editable content page.   1.1.5 had Home and Forum as separate pages but 2.X seems to have the forum as the home page.  I don't like this.

2.)  I want to have a link in the menu bar so that 'Home' links to this page and 'Forum' to the current home page(forum).

I am using the default theme with some custom graphics changes.
I have searched and searched for a solution and have found topics that touch on at least parts of this.  If this is a newbie question, I'm sorry.  At least tell me where to find the solution. 

Thanks!

Remember: I have only been doing this a couple of days but I catch on quickly.
Title: Re: Custom Page with Menu Link
Post by: karlbenson on May 16, 2008, 12:44:39 PM
http://custom.simplemachines.org/mods/index.php?mod=331
Title: Re: Custom Page with Menu Link
Post by: Atheo on May 16, 2008, 12:49:44 PM
THANKS!!!

Now how do I change the buttons on the menu so that 'Home' leads to a custom page and 'Forum' leads to the board?
Title: Re: Custom Page with Menu Link
Post by: karlbenson on May 16, 2008, 09:18:45 PM
The menu buttons are in Sources/Subs.php
From about line 3682 onwards.

The one for home for example is
      'home' => array(
            'title' => $txt['home'],
            'href' => $scripturl,
            'show' => true,
            'sub_buttons' => array(
            ),
         ),