Author Topic: Can't Install On v1.1.4  (Read 2354 times)

Offline TitanNetwork

Can't Install On v1.1.4
« on: February 11, 2008, 03:32:37 pm »
Hello I hope you can help me out here.
I have never used SMFShop before and wanted to install for the first time.
My board is currently 1.1.4.

I wasn't sure which version to install, but with either one, I get the same message.
Quote from: SMF Error
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

There are also 3 files that fail to pass the test:
Quote from: SMF Error
12.     Execute Modification     ./Sources/Subs.php     Test successful
13.    Execute Modification    ./Sources/Subs-Boards.php    Test failed
15.    Execute Modification    ./Themes/default/Display.template.php    Test failed
17.    Execute Modification    ./Themes/default/ManageBoards.template.php    Test failed

I'm not sure what's wrong but didn't install in fear of losing something on my forum.
Any help would be appreciated I am really hoping to get this mod on my forum ASAP.

Offline aceofdiamonds

Re: Can't Install On v1.1.4
« Reply #1 on: February 13, 2008, 12:03:38 pm »
I have EXACTLY the same error.... I was going to post it, but no need now....

Offline Daniel15

Re: Can't Install On v1.1.4
« Reply #2 on: February 15, 2008, 06:47:15 am »
Hello :)
You may continue the installation, but you'll need to edit those two files manually. Make backups of your files before editing any of them. if you're not comfortable with editing files manually, attach the two files here, and I'll edit them for you. Once you get the edited ones, install SMFShop, and then replace those files with the edited ones.



If you want to do it yourself:
The edits you'll need to do are:

Sources/Subs-Boards.php:
Find:
Code: [Select]
// Should the board theme override the user preferred theme?
if (isset($boardOptions['override_theme']))
$boardUpdates[] = 'override_theme = ' . ($boardOptions['override_theme'] ? '1' : '0');
Add after:
Code: [Select]
                //BEGIN SMFShop Shop MOD 1.3 (Build 6) code
// Should posts in this board give credits?
                if (isset($boardOptions['countMoney']))
                    $boardUpdates[] = 'countMoney = ' . ($boardOptions['countMoney'] ? '1' : '0');
                //End Shop MOD

Find:
Code: [Select]
'override_theme' => false,Add after:
Code: [Select]
'countMoney' => 1,
Find:
Code: [Select]
b.override_theme,Add after:
Code: [Select]
b.countMoney,
Find:
Code: [Select]
'override_theme' => $row['override_theme'],Add after:
Code: [Select]
'countMoney' => $row['countMoney'],


Themes/default/Display.template.php
Find:
Code: [Select]
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
Replace with:
Code: [Select]
// Show how many posts they have made.
// echo '
// ', $txt[26], ': ', $message['member']['posts'], '<br />
// <br />';

            // BEGIN SMFShop MOD New Version Code
// Removed one <br /> from end of post count line.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
';

echo '
', $modSettings['shopCurrencyPrefix'], $message['member']['money'], $modSettings['shopCurrencySuffix'], '<br /><br />
<a href="', $scripturl, '?action=shop;do=invother2;member=', $message['member']['username'], '">View Inventory</a><br />
<a href="', $scripturl, '?action=shop;do=sendmoney;member=', $message['member']['username'], '">Send Money to ', $message['member']['name'], '</a><br />';
//END SMFShop code



I do development on SMF 1.1.3 and SMF 1.1.4, s o it should definitely work with those versions.