Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: L200man on June 04, 2004, 08:05:21 AM

Title: How do I move the Forum section onto another 'page'
Post by: L200man on June 04, 2004, 08:05:21 AM
Hello
I'm sure you have all heard this before....

I am VERY new to php - I have downloaded SMF and would like to use index.php as a portal page to my site and move the forums onto a second 'page'

Can anyone assist ?
Is there a FAQ somewhere ?


Chris
Title: Re: How do I move the Forum section onto another 'page'
Post by: [Unknown] on June 04, 2004, 01:11:01 PM
index.php, find:
// Fall through to the board index then...
include_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';


Change this to the name of the file you have, for example:
// Fall through to whatever page we want...
include_once($boarddir . '/splash.php');
obExit(false);

(example)

And also:
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(


Replace:
// Here's the monstrous $_REQUEST['action'] array - $_REQUEST['action'] => array($file, $function).
$actionArray = array(
'forum' => array('BoardIndex.php', 'BoardIndex'),


I should note that this will cause a few problems.  Links throughout SMF expect the board index to be the board index, not some other page... but this does what you're asking for.  You will also have to redo this change after any upgrades.

-[Unknown]
Title: Re: How do I move the Forum section onto another 'page'
Post by: [Unknown] on June 04, 2004, 01:53:43 PM
Note that if you would just like to move the location of the forum, all you have to do is copy all the files from where ever they are to where ever you want them in your FTP, and then use the repair_settings.php tool on the downloads page to fix the paths and URLs.

-[Unknown]
Title: Re: How do I move the Forum section onto another 'page'
Post by: dschwab9 on June 07, 2004, 11:22:55 PM
[unknown], I think he's just trying to change the name of index.php to something else, forum.php, for example.