1
General SMFShop Discussion / How to fix problem with board config and SMFShop
« on: April 26, 2006, 02:45:30 am »
Digging through things after experiencing Shop checkbox misbehaviour in Manage Boards,
I discovered something which doesn't look quite right in the install_SMF1-1RC2.xml
(and reflected in mods to the Sub-Boards.php):
This 'seems' to be hooking the value of the countMoney flag to the value of the override_theme flag.
I discovered something which doesn't look quite right in the install_SMF1-1RC2.xml
(and reflected in mods to the Sub-Boards.php):
Code: [Select]
<file name="$sourcedir/Subs-Boards.php">
<operation>
<search position="before"><![CDATA[
// Should the board theme override the user preferred theme?
if (isset($boardOptions['override_theme']))
$boardUpdates[] = 'override_theme = ' . ($boardOptions['override_theme'] ? '1' : '0');
]]></search>
<add><![CDATA[
//BEGIN SMFShop Shop MOD 1.3 (Build 6) code
// Should posts in this board give credits?
if (isset($boardOptions['countMoney']))
$boardUpdates[] = 'countMoney = ' . ($boardOptions['override_theme'] ? '1' : '0');
//End Shop MOD
]]></add>
This 'seems' to be hooking the value of the countMoney flag to the value of the override_theme flag.