Author Topic: Support for SMF 1.1?  (Read 7749 times)

Offline chougard

Support for SMF 1.1?
« on: December 03, 2006, 01:40:15 pm »
I did a clean install of smf 1.1 (my old one was to buggy) and the shop will not install. Here is what I get:

Installation Readme
Sorry, your SMF version isn't supported by SMFShop! Please contact Daniel15 at http://www.dansoftaustralia.net/ for more details.

Install Actions
Installations actions for "SMFShop":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

Any idea when it will be supported? Thanks!

Offline Lady Ambrosia

Re: Support for SMF 1.1?
« Reply #1 on: December 05, 2006, 05:52:23 am »
I got the same message, and what I did was I went in and coded it all by hand, I had to make a couple of adjustments but nothing major.  Granted in my packages it states that the shop isn't installed, but it's there and it works fine.  This is just a temporary fix, until a new SMF Shop comes out; and I can wait ;)
Ambrosia's Castle - My Personal Site
The Dark Castle - My Forum
Avatar by:  Me

Offline chougard

Re: Support for SMF 1.1?
« Reply #2 on: December 05, 2006, 11:34:38 am »
Could you please tell me what you had to change?

Offline fedlerner

Re: Support for SMF 1.1?
« Reply #3 on: December 05, 2006, 11:48:37 am »
Yhea, i want the shop for 1.1 too :)
Hope it's released soon ;)

Offline Daniel15

Re: Support for SMF 1.1?
« Reply #4 on: December 06, 2006, 03:16:59 pm »
I'm going to release a SMF 1.1 Final-compatible package later.
Supposedly, you should be able to install SMF 1.1 RC3 packages by 'emulating' the version number. Go to the Package Manager, and add this to the end of the URL:
Code: [Select]
;emulate_version=1.1 RC3

Offline fedlerner

Re: Support for SMF 1.1?
« Reply #5 on: December 06, 2006, 09:54:28 pm »
That "emulation" didn't worked for me :(

Offline leviyah

Re: Support for SMF 1.1?
« Reply #6 on: December 07, 2006, 01:49:25 am »
PLEASE RELEASE IT! I need this mod!! :'( :'( :'(

Offline Lady Ambrosia

Re: Support for SMF 1.1?
« Reply #7 on: December 07, 2006, 03:00:12 am »
Okay this is what I did, and it's really not that hard if you know a little about PHP coding.  I know only a little, but I do know how to add mods if I have too.

Alright I went to Admin --> Packages --> Browse Packages
From there I found SMF Shop (although notice it's not installed) and clicked on List Files, it will take you to a page with a list of ALL the files that the SMF Shop has.  From there I clicked on the link install_SMF1_1RC2.xml (you may have 1RC3, if so click on that).  From there it will tell you which files you need to edit, for example it will look like this:

Code: [Select]
<file name="$boarddir/index.php">
        <operation>
            <search position="before"><![CDATA[
'.xml' => array('News.php', 'ShowXmlFeed'),
]]></search>
            <add><![CDATA[
//Begin Shop MOD 0.2 code
'shop' => array('shop/Shop.php', 'Shop'),
'shop_general' => array('shop/ShopAdmin.php', 'ShopGeneral'),
'shop_inventory' => array('shop/ShopAdmin.php', 'ShopInventory'),
'shop_items_add' => array('shop/ShopAdmin.php', 'ShopItemsAdd'),
'shop_items_edit' => array('shop/ShopAdmin.php', 'ShopItemsEdit'),
//Begin SMFShop MOD 2.0 (Build 8) code
'shop_restock' => array('shop/ShopAdmin.php', 'ShopRestock'),
//END SMFShop MOD code
'shop_usergroup' => array('shop/ShopAdmin.php', 'ShopUserGroup'),
//END SHOP MOD
]]></add>
        </operation>
               </file>

So, in this you will need to open your MAIN index.php that is located in your Forum Folder of your site (or if you're like me you have a back up of your forum on your computer and you can adjust things from there).  I use WordPad OR Dreamweaver to work on PHP Coding, as they have a Find option and I use that a bit.  To know what file to look for it will look like this:
Code: [Select]
<file name="$boarddir/index.php">Notice it says file name?  That's how you know, it also gives you where it's located, in this case it's located in your main Folder for your forum.

To know what code to look for you need to look for this:
Code: [Select]
<operation>
            <search position="before"><![CDATA[
'.xml' => array('News.php', 'ShowXmlFeed'),
]]></search>
What's between the [CDATA[ CODE HERE ]] is what you will be looking for, and notice that it says search position and it says before, you will place the code BEFORE it. (If it says replace you replace it, if it says after you place the code after).

To know the code that you will be replacing, adding before or after you will need to look for this:
Code: [Select]
<add><![CDATA[
//Begin Shop MOD 0.2 code
'shop' => array('shop/Shop.php', 'Shop'),
'shop_general' => array('shop/ShopAdmin.php', 'ShopGeneral'),
'shop_inventory' => array('shop/ShopAdmin.php', 'ShopInventory'),
'shop_items_add' => array('shop/ShopAdmin.php', 'ShopItemsAdd'),
'shop_items_edit' => array('shop/ShopAdmin.php', 'ShopItemsEdit'),
//Begin SMFShop MOD 2.0 (Build 8) code
'shop_restock' => array('shop/ShopAdmin.php', 'ShopRestock'),
//END SMFShop MOD code
'shop_usergroup' => array('shop/ShopAdmin.php', 'ShopUserGroup'),
//END SHOP MOD
]]></add>
        </operation>
I start coping from //Begin Shop MOD 0.2 code all the way to //END SHOP MOD, this is what's easy for me.

Once you're done with the editing of the file it will close it by this:
Code: [Select]
</file>It will do this for EVERY file that needs to be edited.  So PAY CLOSE ATTENTION!!


The only code that I had to do differently was this one:
Code: [Select]
<file name="$boarddir/Themes/default/ManageBoards.template.php">
<operation>
<search position="before"><![CDATA[<input type="checkbox" name="override_theme"', $context['board']['override_theme'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';]]></search>
<add><![CDATA[
    //BEGIN SMFShop Shop MOD 1.3 (Build 6) code
loadLanguage("Shop");
echo '                     <tr>
<td>
<b>', $txt['shop_count_points'], '</b><br />
', $txt['shop_count_points_msg'], '<br /><br />
</td>
<td valign="top" align="right">
<input type="checkbox" name="countMoney"', $context['board']['countMoney'] ? ' checked="checked"' : '', ' class="check" />
</td>
</tr>';
//END SHOP MOD
]]></add>
</operation>
</file>

    <file name="$boarddir/Themes/default/Display.template.php">
        <operation>
            <search position="replace"><![CDATA[
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
]]></search>
Instead of placing the code BEFORE, it should be AFTER.

The Shop will STILL read that it's not installed but it is ;)

Other than that, that's all I had to do, but I do advise that you have already had Shop installed before doing this, if you haven't then you'll need to wait until Daniel can come out with a version that is working with SMF 1.1

I hope that this helps someone, I'm not very good at giving out instructions on how to do things; which is why I don't do tutorials ;)
« Last Edit: December 07, 2006, 03:03:04 am by Lady Ambrosia »
Ambrosia's Castle - My Personal Site
The Dark Castle - My Forum
Avatar by:  Me

Offline leviyah

Re: Support for SMF 1.1?
« Reply #8 on: December 07, 2006, 03:21:18 am »
My problem is, it don't works on other theme http://www.daniel15.com/forum/index.php/topic,39.0.html

Offline Lady Ambrosia

Re: Support for SMF 1.1?
« Reply #9 on: December 07, 2006, 04:48:00 am »
It's working perfectly well with my theme.  Although, I didn't have to change anything on my theme because I had it already edited for the new Shop 2.3 before I even updated my Forum to SMF 1.1
« Last Edit: December 07, 2006, 04:53:37 am by Lady Ambrosia »
Ambrosia's Castle - My Personal Site
The Dark Castle - My Forum
Avatar by:  Me

Offline Daniel15

Re: Support for SMF 1.1?
« Reply #10 on: December 07, 2006, 07:31:56 am »
I forgot to post back here, but I upgraded the package to support SMF 1.1. Please download the new package from dansoftaustralia.net

Lady Ambrosia, thanks for your post above. You can upload the XML file to http://server.daniel15.com/smf_xml/modification.php?action=file , and it will parse the file and give you it in a nicely formatted form :D.

Offline sburke930

Re: Support for SMF 1.1?
« Reply #11 on: December 07, 2006, 12:14:53 pm »
I forgot to post back here, but I upgraded the package to support SMF 1.1. Please download the new package from dansoftaustralia.net

The new package is not there.  The only package that's there is the update from October.

Offline Daniel15

Re: Support for SMF 1.1?
« Reply #12 on: December 07, 2006, 12:42:38 pm »
It is there: http://www.dansoftaustralia.net/downloads/file/25/SMFShop-2.3-Fresh-Install.html
Updated on 6th December 2006 to add SMF 1.1 support

Offline sburke930

Re: Support for SMF 1.1?
« Reply #13 on: December 07, 2006, 12:46:37 pm »
I have the previous versions installed.  Do I need to delete the previous versions and download the fresh install?  That is not what the instructions say btw.  I downloaded what it told me to download, which was the upgrade.

Offline Daniel15

Re: Support for SMF 1.1?
« Reply #14 on: December 08, 2006, 11:09:14 am »
When you upgrade to SMF 1.1, it uninstalls all MODs currently installed. So, your installation is still classified as a fresh installation.