SMFHacks.com

SMF Store => Support => Topic started by: moomoo on July 01, 2016, 01:08:23 pm

Title: smf store as index
Post by: moomoo on July 01, 2016, 01:08:23 pm
Hi wondering if the default order could be rectified as the smf store as the index.

i.e:  when someone visits my domain.com - the store is the first viewed.
Title: Re: smf store as index
Post by: SMFHacks on July 01, 2016, 01:25:43 pm
Yes it can be changed. You can change the SMF forum to replace board with the store index requires one change.
Title: Re: smf store as index
Post by: moomoo on July 01, 2016, 02:17:30 pm
could you show me please, i have already worked out that subs.php contains the menu order, i just need help with the default action being the store.

thanks in advance.
Title: Re: smf store as index
Post by: SMFHacks on July 01, 2016, 02:25:04 pm
It would be in in the index.php file in root file
two changes

Find
Code: [Select]
// Action and board are both empty... BoardIndex!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}

Replace with
Code: [Select]
// Action and board are both empty... Store index!
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/Store2.php');
return 'StoreMain';
}




Find
Code: [Select]
// Fall through to the board index then...
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';

Replace with
Code: [Select]
// Fall through to the store index then...
require_once($sourcedir . '/Store2.php');
return 'StoreMain';