Basicly MY problem is a fail in the test run. The "add after" phase of the modification is were the problem is
Its in the executions for:
./Sources/ManageSettings.php
Here is exatly what it should do
Find
function ModifyLayoutSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc;
$config_vars = array(
// Compact pages?
array('check', 'compactTopicPagesEnable'),
array('int', 'compactTopicPagesContiguous', null, $txt['contiguous_page_display'] . '<div class="smalltext">' . str_replace(' ', ' ', '"3" ' . $txt['to_display'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"5" ' . $txt['to_display'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select', 'todayMod', array(&$txt['today_disabled'], &$txt['today_only'], &$txt['yesterday_today'])),
array('check', 'topbottomEnable'),
array('check', 'onlineEnable'),
array('check', 'enableVBStyleLogin'),
'',
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',
// Meta.
array('text', 'meta_keywords', 'size' => 50),
'',
// Who's online.
array('check', 'who_enabled'),
);
if ($return_config)
return $config_vars;
// Saving?
if (isset($_GET['save']))
{
checkSession();
saveDBSettings($config_vars);
writeLog();
redirectexit('action=admin;area=featuresettings;sa=layout');
}
$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];
prepareDBSettingContext($config_vars);
}
Add after
function ModifyAffiliatesSettings()
{
global $context, $txt, $scripturl, $modSettings, $db_prefix, $helptxt;
$config_vars = array(
'',
array('check', 'enable_up_marquee'),
array('large_text', 'actionaffiliates', '8', &$txt['action=affiliates_description'], 'actionaffiliates'),
'',
array('check', 'enable_affiliates_board'),
array('check', 'enable_marquee'),
array('text', 'smf_affiliates_title', '30', &$txt['smf_affiliates_title'], 'smf_affiliates_title'),
array('large_text', 'affiliates', '8', &$txt['affiliates_description'], 'affiliates'),
'',
array('large_text', 'smf_affiliates_reqirments', '8', &$txt['smf_affiliates_reqirments'], 'smf_affiliates_reqirments'),
'',
array('text', 'affiliatebanner', '30'),
array('text', 'affiliatebanner1', '30'),
array('text', 'affiliatebanner2', '30'),
array('text', 'affiliatebanner3', '30'),
'',
);
// Saving?
if (isset($_GET['save']))
{
saveDBSettings($config_vars);
writeLog();
redirectexit('action=admin;area=featuresettings;sa=affiliates');
}
$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=affiliates';
$context['settings_title'] = $txt['smf_affiliates'];
prepareDBSettingContext($config_vars);
}
Thats were it has trouble, I really really want this mod so im adding more details
All mods on my site details
1. SMF Affiliates 1.0 [ Apply Mod ] [ List Files ] [ Delete ]
2. Auto Merge Double Post 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Irritate lurkers with 0 posts 0.1 [ Uninstall ] [ List Files ] [ Delete ]
4. Order Stickied Topics 1.01 [ Uninstall ] [ List Files ] [ Delete ]
5. Spoiler Tag 0.6 [ Uninstall ] [ List Files ] [ Delete ]
6. Member Color Link 3.0.5a [ Uninstall ] [ List Files ] [ Delete ]
7. SMF Staff Page 1.6 [ Uninstall ] [ List Files ] [ Delete ]
8. No More Ugly Avatar Scrollbars 1.0 [ Uninstall ] [ List Files ] [ Delete ]
9. BoardHover Mod 1.3.1 [ Apply Mod ] [ List Files ] [ Delete ]
10. Rateit in Topics 1.0 [ Uninstall ] [ List Files ] [ Delete ]
11. Permissions_Info 1.2 [ Uninstall ] [ List Files ] [ Delete ]
12. SMF Media Gallery 1.5 [ Uninstall ] [ List Files ] [ Delete ]
13. Hide SMF Version 1.0.3a [ Uninstall ] [ List Files ] [ Delete ]
14. Registration redirection 0.1 [ Uninstall ] [ List Files ] [ Delete ]
15. BBC [you] 1.2 [ Uninstall ] [ List Files ] [ Delete ]
16. script.js Jump Fix 1.0 [ Uninstall ] [ List Files ] [ Delete ]
17. The Rules 1.2 [ Uninstall ] [ List Files ] [ Delete ]
18. Aeva ~ Auto-Embed Video & Audio 5.0 b1 [ Uninstall ] [ List Files ] [ Delete ]
19. PM to New Members 1.0 [ Uninstall ] [ List Files ] [ Delete ]
And my theme is Midnight Sun 2b4 (BTW im using 2.0 beta 4)
If you need more then say so and i will add it, do you need my ManageSettings.php file to look at?
~Thanks Ive been looking for this mod for a long time and gave up. Now my hope is back, yay!
Any solutions?