Ok, so for everyone who needs to disable the Home Layout for DP 1.0.5, I have put together a package for you all to download and install that will do this for you via the SMF Package Manager (package attached).
Prerequisites for this package are as follows:
- Dream Portal 1.0.5 Installed
- SMF 2.0 GOLD Installed (should also work on all RC versions as well, but haven't tested it).
For anyone interested in the edits that get done, or if the package contains any errors and/or you want to do it manually, here are the edits that this package does:
Open up .Sources/DreamPortal.php
FIND:
$curr_action = !empty($da_action) ? $da_action : '[home]';
$context['dp_home'] = $curr_action == '[home]';
REPLACE WITH:
if ($da_action == '[home]')
$da_action = 'forum';
$curr_action = !empty($da_action) ? $da_action : 'forum';
$context['dp_home'] = $curr_action == 'forum';
Open up ./index.php
FIND:
// Display Portal?
if (!empty($modSettings['dp_portal_mode']) && allowedTo('dream_portal_view'))
return 'dp_main';
// Otherwise, Board Index!
else
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
REPLACE WITH:
if (empty($board) && empty($topic))
{
require_once($sourcedir . '/BoardIndex.php');
return 'BoardIndex';
}
FIND:
'forum' => array('BoardIndex.php', 'BoardIndex'),
DELETE THE ABOVE LINE!
Open up: ./Sources/Subs-DreamPortal.php
FIND:
$match = '[home]';
REPLACE WITH:
$match = 'forum';
And now to remove the Forum Menu Button...Open up
./Sources/Subs.phpFIND:
'forum' => array(
'title' => (!empty($txt['forum']) ? $txt['forum'] : 'Forum'),
'href' => $scripturl . '?action=forum',
'show' => (!empty($modSettings['dp_portal_mode']) && allowedTo('dream_portal_view') ? true : false),
'sub_buttons' => array(
),
),
DELETE ALL OF THIS!
Save all of your files, backup the originals, and than overwrite all of these files that you edited onto your server (via FTP):
.Sources/Subs.php
.Sources/Subs-DreamPortal.php
.Sources/DreamPortal.php
./index.php
Cheers

P.S. - If you find any bugs within the edits that get done, please let me know and I will update the package for everyone else who visits this topic and needs this ability in Dream Portal 1.0.5.
FYI - Uninstalling this mod package, after you have installed it, will re-enable the Home Layout for DP 1.0.5.
Important: In order for the modules to appear on the Home (Board Index) section, you will need to have the following action defined:
forumIn order to have DP assigned to all Board Index urls, you should have the following actions/non-actions defined for this layout in your DP Manage Modules Admin section:
actions:
forum
collapse
non-actions:
[board]
[topic]