Author Topic: [SOLVED] Error when installing on SMF 1.1.3  (Read 1841 times)

Offline Demonic DJ

[SOLVED] Error when installing on SMF 1.1.3
« on: September 27, 2007, 09:35:30 am »
Hello,

I get this error when I try to install to SMF 1.1.3



I don't know if this helps but I am using Freehostia (Free Version)

Thanks,

Demonic DJ

Offline inkstains

Re: Error when installing on SMF 1.1.3
« Reply #1 on: September 27, 2007, 03:47:14 pm »
you'll just need to do that part of the install manually it basically means that another mod has altered the piece of code that SMFShop was looking for. so just open up your default themes Display.template.php file and do the following.

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

the code that you're searching for will have changed slightly in your version due to a mod or another reason so you won't be able to search for exactly what's listed above but close enough. before you replace just check and see what has been edited and if it looks like a mod may have added to the original code just make sure to make the addition to the above replace code. hope that makes sense. basically just do a backup of your Display.template.php file then do the above edits to the original and then do the SMFShop install and all should be good.

Offline Demonic DJ

Re: Error when installing on SMF 1.1.3
« Reply #2 on: September 28, 2007, 09:09:28 am »
ok ill try it out thanks

EDIT: thanks it worked
« Last Edit: September 28, 2007, 10:00:34 am by Demonic DJ »