SMF Shop
SMFShop => General SMFShop Discussion => Topic started by: jacortina 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):
<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.
-
Oh my god!! Thanks for saying that! That must be the problem!
The truth is, I didn't make the SMFShop installation package for SMF 1.1. Someone made it for me, and I merged that with the main SMFSHop package. I guess that's why some people were having that problem
Thank you so much! I'll fix this soon!
-
Not that i am trying to be pushy...but has this been addressed yet? Now instead of boards not unchecking...they won't stay checked...it is starting to get very annoying as one of the boards on my site that is the most popular isn't counting shop points!
-
Ok, well I'm too busy to make a release at the moment, although here's how you fix it:
Find in Sources/Subs-Boards.php:
$boardUpdates[] = 'countMoney = ' . ($boardOptions['override_theme'] ? '1' : '0');
Replace with:
$boardUpdates[] = 'countMoney = ' . ($boardOptions['countMoney'] ? '1' : '0');
That should work. Please tell me if it fixes it for you.
-
no, it still won't stay checked
-
Fixed it for ya....
Find this in Sources/ManageBoards.php:
$boardOptions['override_theme'] = isset($_POST['override_theme']);
and add this after:
$boardOptions['countMoney'] = isset($_POST['countMoney']);
-
Hey, thanks :)
I'll be sure to put that in the next update
-
you still need the other code you posted as well.
-
I have done both modifications that is written in this post, but nothing changed :(
(ticket ID=57) Pls help as soon as possible or my members will make me real mad :uglystupid2:
O0
Thanks for everything
-
I have done both modifications that is written in this post, but nothing changed :(
(ticket ID=57) Pls help as soon as possible or my members will make me real mad :uglystupid2:
O0
Thanks for everything
Read this topic : http://www.daniel15.com/forum/index.php?topic=159.0 i have a perfectly fine running shop mod, its not only that settings error that is pointed there are few other minor fixes. It even includes the fix mentioned in this thread.
-
Fixed it for ya....
Find this in Sources/ManageBoards.php:
$boardOptions['override_theme'] = isset($_POST['override_theme']);
and add this after:
$boardOptions['countMoney'] = isset($_POST['countMoney']);
This didn't work and the other file didn't work either .. :(
-
you may have to completely remove the shop mod (verify after the uninstall is done) and reinstall it...all the fixes here have my shop running at 100% error free. including check boxes.
-
If I uninstall the Shop mod, does it also remove the database entries? Which means if I reinstall the Shop mod it won't recognize the existing credits that the members have already earned? I can't afford to restart the Shop Mod, I just restarted the credits system two weeks ago... :(
-
If I uninstall the Shop mod, does it also remove the database entries? Which means if I reinstall the Shop mod it won't recognize the existing credits that the members have already earned?
Yeah, it removes the database entries :(. What you could do is make a database backup before uninstalling it. Then, uninstall it, and straight after this, restore the backup. Then, when you install SMFShop, it will detect that the database is already configured, and won't do anything.
NOTE: I would suggest that if you do this, put your forum into Maintenance Mode so you don't lose any posts.