SVN Changelog for SMFShop
$Id: svn_changelog.txt 23 2006-10-21 03:15:17Z daniel15 $
Latest released version: SMFShop 2.2 Build 10 (Released 29th July 2006)
============================

21st October 2006
-----------------
Heaps of changes today!

Changes:
 * Minor changes to installer (finally fixed "Incorrect table name ''" error!)
 * Money can now be automatically given to people at registration
 * General code cleanup
 * Heaps more comments in the code (it's a lot easier to understand)
 * Item files now have author name, email and website fields
 * item_engine.php now has heaps and heaps of comments
 * The 'Add Item' page has merged into the 'Edit Items' page
 * Delete Items now uses checkboxes for deleting more than 1 item at a time
 * When an item is deleted, it is now properly deleted from everyone's inventory
 * Changed formatting of template files (they're now a lot easier to understand)
 * Every shop page now has a custom title (previously, every page said 'Shop' on it)
 * Moved stuff which shouldn't have been in ShopAdmin.template.php into ShopAdmin.php
 * Money is now properly treated as float values, rather than int values
 * Various updates for XHTML compliance
 * Linktree on 'Send Items' page was incorrect (it said 'Send Money')
 * Replaced <center> tags with <div align="center"> (Personal preference, I think div's are better :))
 * Relpaced all 4-space code indentation with tabs instead
 * Slight problem with item images fixed
 * Minor updates to a few items

New language strings:
 * $txt['shop_item_error']
 * $txt['shop_item_notice']
 * $txt['shop_admin_items_addedit']
 * $txt['shop_add_item_message2']
 * $txt['shop_item_delete_error']

Modified language strings:
 * $txt['shop_add_item_message']
 * $txt['shop_edit_message']
 * $txt['shop_sure_delete']

Database changes:
    INSERT INTO `smf_settings` (`variable`, `value`) VALUES ('shopRegAmount', '0');

SMF Files edited:
 * Register.php
   --> Find:
 		'ID_POST_GROUP' => 4,
   --> Add after:
		// Begin SMFShop New Version (Build 11) code
		'money' => $modSettings['shopRegAmount']
		// End SMFShop code

 * Subs.php
    --> SMFShop section changed to:
	//Begin SMFShop code
	loadLanguage('Shop');
        if (allowedTo('shop_admin'))
	    $context['admin_areas']['shop'] = array (
		    'title' => $txt['shop_admin'],
		    'areas' => array(
 			    'shop_general' => "<a href='$scripturl?action=shop_general'>{$txt['shop_admin_general']}</a>",
			    'shop_inventory' => "<a href='$scripturl?action=shop_inventory'>{$txt['shop_admin_inventory']}</a>",
                'shop_items' => $txt['shop_admin_items'],
					'shop_items_edit' => "|--- <a href='$scripturl?action=shop_items_edit'>{$txt['shop_admin_items_addedit']}</a>",
					'shop_restock' => "|--- <a href='$scripturl?action=shop_restock'>{$txt['shop_admin_restock']}</a>",

				'shop_usergroup' => "<a href='$scripturl?action=shop_usergroup'>{$txt['shop_admin_usergroup']}</a>",
		    ) 
	    );
	//End SMFShop code

26th September 2006
-------------------
Changes:
 * Use float rather than int for formatMoney (allow larger than 2147483647)
 * Fixed InstantMessage.english.php errors.

Files Modified:
 * Shop.php


22nd September 2006
-------------------
Changes:
 * Shop admin pages now show the correct title in the browser title bar (rather than just the URL)
 * Admins can now give credits depending on which membergroup users are in

Files modified:
 * ShopAdmin.php
 * ShopAdmin.template.php
 * Shop.english.php

SMF Files edited:
 * index.php
  --> Find:
'shop_restock' => array('shop/ShopAdmin.php', 'ShopRestock'),
//END SMFShop MOD code
//END SHOP MOD

  --> Add after:
	'shop_usergroup' => array('shop/ShopAdmin.php', 'ShopUserGroup'),

 * Sources/Subs.php
  --> Find:
		//Begin SMFShop 2.0 (Build 8) MOD code
		'shop_restock' => "<a href='$scripturl?action=shop_restock'>{$txt['shop_admin_restock']}</a>",
		//END SMFShop MOD Code

  --> Add after:
				'shop_usergroup' => "<a href='$scripturl?action=shop_usergroup'>{$txt['shop_admin_usergroup']}</a>",

24th August 2006
----------------
Changes:
 * Changed version number in XML files to correct number (they previously said 2.1 instead of 2.2)
 * Edited package_info.xml to install under SMF 1.1 RC3

Files modified:
 * install_SMF1-0.xml
 * install_SMF1-1RC1.xml
 * install_SMF1-1RC2.xml
 * package_info.xml


12th August 2006
----------------
Changes:
 * Fixed problem with 'Random Money' item

Files modified:
 * RandomMoney.php

29th July 2006
--------------
Changes:
 * Split a large portion of Shop.php into seperate files (Shop-Buy.php, Shop-Inventory.php, Shop-Send.php, Shop-Bank.php, Shop-Trade.php)
 * Moved some more texts into the language file
 * In admin panel, Shows 'database version' as well as actual SMFShop version
 * Ability to send an item to a member (based around Basil Beard's code)

Texts added:
 * $txt['shop_database_version']
 * $txt['shop_im_sendmoney_subject']
 * $txt['shop_im_sendmoney_message']
 * $txt['shop_im_trade_subject']
 * $txt['shop_im_trade_message']
 * $txt['shop_im_senditem_subject']
 * $txt['shop_im_senditem_message']
 * $txt['shop_item_to_send']
 * $txt['shop_send_items']
 * $txt['shop_send_items_message']
 * $txt['shop_senditems']
 * $txt['shop_transfer_success']

Files modified:
 * Shop.php
 * Shop.english.php
 * Shop.template.php
 * ShopAdmin.template.php

Files added:
 * Shop-Bank.php
 * Shop-Buy.php
 * Shop-Inventory.php
 * Shop-Send.php
 * Shop-Trade.php


22nd July 2006
--------------
Changes:
 * Moved a few strings into the language file
 * Added 'Who owns this item?' feature to 'Buy stuff' listing
 * Fixed bug with trade centre

Texts added:
 * shop_asc
 * shop_desc
 * shop_sort
 * shop_users_own_item

Files Modified:
 * Shop.php
 * Shop.english.php
 * shop.template.php

14th July 2006
--------------
Changed:
 * Fixed problem with image width and height (see http://www.daniel15.aus.cc/forum/index.php?topic=196.msg978#msg978)

Files modified:
 * ShopAdmin.php
 * ShopAdmin.template.php

8th July 2006
-------------
Changes:
 * Problems encountered with some templates is now fixed!!
 * A minimum can now be set for bank deposits and withdrawls
 * The "Who's Online" function now says when someone is in the shop
 * A 'Send Money' link is now displayed next to people's posts
 * PM's are used instead of emails when you send money, and in the Trade Centre
 * Now uses 'shopVersion.php' file to contain version information

Texts added:
 * $txt['shop_bank_disableMin']
 * $txt['shop_bank_minDeposit']
 * $txt['shop_bank_minWithdraw'] 
 * $txt['shop_deposit_small']
 * $txt['shop_withdraw_small']

New Files:
 * Sources/shop/shopVersion.php

Files Modified:
 * Sources/shop/Shop.php
 * Themes/default/Shop.template.php
 * Sources/shop/ShopAdmin.php
 * Themes/default/ShopAdmin.template.php
 * Themes/default/languages/Shop.english.php

SMF files edited:
 * Themes/default/languages/Who.english.php
  --> Find:
      $txt['who_poll'] = 'Posting a new poll in <a href="' . $scripturl . '?board=%d.0">%s</a>.';

  --> Add after:
      //Begin SMFShop MOD New Version
      $txt['whoall_shop'] = 'Viewing the forum <a href="'.$scripturl.'?action=shop">Shop</a>.';
      //End SMFShop MOD

 * Display.template.php
  --> Find:
	//BEGIN SMFShop MOD 1.31 (Build 7) CODE
	echo "<a href='$scripturl?action=shop;do=invother2;member={$message['member']['username']}'>View Inventory</a><br />";
	//END SMFShop MOD 1.31 code

  --> Add after:
	//BEGIN SMFShop MOD New Version (Build 10) code
	echo "<a href='$scripturl?action=shop;do=sendmoney;member={$message['member']['username']}'>Send Money to {$message['member']['name']}</a><br />";
	//END SMFShop code