News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

How do I move the Forum section onto another 'page'

Started by L200man, June 04, 2004, 08:05:21 AM

Previous topic - Next topic

L200man

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

[Unknown]

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]

[Unknown]

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]

dschwab9

[unknown], I think he's just trying to change the name of index.php to something else, forum.php, for example.

Advertisement: