Author Topic: SMFShop 2.2 now out!!  (Read 19523 times)

Offline Daniel15

SMFShop 2.2 now out!!
« on: July 29, 2006, 07:57:02 pm »
Well, after a long period of inactivity (I was way too busy to do any real work on SMFShop), SMFShop 2.2 is now out! This release has many changes in it, and I would consider it quite a big release. This release has one of the most requested features - The ability to send an item in your inventory to another member (thanks to Basil Beard - My code is based on his). From a coding perspective, I've split up the Shop.php file in to several seperate files, as I think this will be more efficient (it was getting too big).

Anyways, here's the changes in this version:
  • 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 (right underneath their Post Count)
  • PM's are used instead of emails when you send money, and in the Trade Centre
  • Added 'Who owns this item?' feature to 'Buy stuff' listing (so you can see who owns an item)
  • Ability to send an item to a member (much like the 'Send money to someone' feature)
  • A large portion of the Shop.php file has been split into different files (Shop-Buy.php, Shop-Inventory.php, Shop-Send.php, Shop-Bank.php, Shop-Trade.php). This was done because the Shop.php file was getting too large (in my opinion)
  • And some other minor changes
If you want to see a detailed changelog (and I mean very, very detailed), then please see the SVN Changelog, at http://svn.sourceforge.net/viewvc/*checkout*/smfmods/smfshop/tags/release-2.2/svn_changelog.txt)

As usual, please see the SMF Mods page on the DanSoft Australia website to download this new version :)
« Last Edit: July 29, 2006, 07:59:01 pm by daniel15 »

Offline k_4_kelly

Re: SMFShop 2.2 now out!!
« Reply #1 on: July 29, 2006, 08:23:18 pm »
hello,
do you have this function available? >>>>  to pay (the credits) to read the hidden post?   :idiot2:

Offline bipsmith

Re: SMFShop 2.2 now out!!
« Reply #2 on: July 29, 2006, 08:28:06 pm »
I just have one quick question.

Will upgrading from 2.1 to this version reset my users' inventory and credits or will everything within the shop be retained?

Thank you!

Geezer

  • Guest
Re: SMFShop 2.2 now out!!
« Reply #3 on: July 29, 2006, 09:09:59 pm »
woohoo an upgrade, wtg guys.
will bank interest work automatically now cos in 2.1 it didnt work without adding the cron jobs thing, am I correct in this?

Offline Joshsux

Re: SMFShop 2.2 now out!!
« Reply #4 on: July 29, 2006, 10:12:10 pm »
Will i need to re edit the files i needed like before "i'm using a diff theme than the basic"

Offline littleone

Re: SMFShop 2.2 now out!!
« Reply #5 on: July 30, 2006, 02:42:03 am »
Just one thing I noticed.  I dont see the "Send money" underneath the post count.  It shows the View Inventory, and then jumps straight to the avator right below that.  Am I thinking of the wrong thing or looking in the wrong place?

Offline littleone

Re: SMFShop 2.2 now out!!
« Reply #6 on: July 30, 2006, 02:45:11 am »
I noticed you have 2.2 also and it dont show that either on yours ;)

Offline SKETCHi

Re: SMFShop 2.2 now out!!
« Reply #7 on: July 30, 2006, 05:42:25 am »
The mod most likely only edits the default theme. You can edit other themes by opening the Display.template.php file and manually adding the link. Now if only I knew the correct URL to add... Perhaps you could make a new post with the correct lines of code :).

By the way, send items to members = awesome.
« Last Edit: July 30, 2006, 05:47:19 am by SKETCHi »

Offline mujahid

Re: SMFShop 2.2 now out!!
« Reply #8 on: July 30, 2006, 06:22:20 am »
waoo thats really a big news of the day..i`m so much happy that shop`s new version is available with cool new features..great and awesome
thanks a lot.

Offline littleone

Re: SMFShop 2.2 now out!!
« Reply #9 on: July 30, 2006, 07:17:47 am »
well both forums that i installed it on are using the default theme so that can't be it.

Offline Daniel15

Re: SMFShop 2.2 now out!!
« Reply #10 on: July 30, 2006, 10:40:29 am »
Quote
do you have this function available? >>>>  to pay (the credits) to read the hidden post?
No, not at the moment.

Quote
I just have one quick question.

Will upgrading from 2.1 to this version reset my users' inventory and credits or will everything within the shop be retained?
As long as you use the upgrade package (and DON'T uninstall SMFShop), everything will be retained.

Quote
will bank interest work automatically now cos in 2.1 it didnt work without adding the cron jobs thing, am I correct in this?
No, you still need to add the cron job. However, if  you don't have access to cron, there is a post on this forum that explains an alternative way to get the interest working.

Quote
Will i need to re edit the files i needed like before "i'm using a diff theme than the basic"
No, any currently edited themes should still work fine. However, if you want the 'Send money' link, you'll need to edit the template again (see below)

Quote
Just one thing I noticed.  I dont see the "Send money" underneath the post count.  It shows the View Inventory, and then jumps straight to the avator right below that.  Am I thinking of the wrong thing or looking in the wrong place?
OK, if it's not displaying, here's how to show it: Open the Themes/[themename]/Display.template.php file, and 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 2.2 (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


Quote
By the way, send items to members = awesome.
You should thank Basil Beard for the original code. I used a bit of his code, with some bug fixes and changes :)
« Last Edit: July 30, 2006, 10:42:20 am by daniel15 »

Offline akulion

Re: SMFShop 2.2 now out!!
« Reply #11 on: July 30, 2006, 12:34:06 pm »
Great job :D

I already got most of the features on 2.1 manually editing it

but im dissapointed not to see the virtual pets release :(

Offline tapirul

Re: SMFShop 2.2 now out!!
« Reply #12 on: July 30, 2006, 05:11:16 pm »
I upgraded from SMF Shop 2.1 (using the correct package); it said "installed successfully"  (all tests passed), however, now if I click on "Shop" or "inventory" I get "error: unable to load 'main' template".
I tried to uninstall and now it's kind of a mess.
What do you think the problem was? I'll try to install it manually, cross fingers...(although I am not sure how to update the database, I am totally nill at SQL and such...I have shell access and myPHPAdmin....There is InstallScript.php with commands, but as I said...)

Offline joseph21

Re: SMFShop 2.2 now out!!
« Reply #13 on: July 30, 2006, 09:17:10 pm »
Hey.... Thanks!!  8)  But if I have the old 2.1 version of Shop then should I uninstall it first, then install the shop 2.2? I mean where is the upgrade package for smf shop 2.2?  :smiley6600:
« Last Edit: July 30, 2006, 09:19:59 pm by joseph21 »

Offline tapirul

Re: SMFShop 2.2 now out!!
« Reply #14 on: July 31, 2006, 11:42:20 am »
I upgraded from SMF Shop 2.1 (using the correct package); it said "installed successfully"  (all tests passed), however, now if I click on "Shop" or "inventory" I get "error: unable to load 'main' template".
I tried to uninstall and now it's kind of a mess.
What do you think the problem was? I'll try to install it manually, cross fingers...(although I am not sure how to update the database, I am totally nill at SQL and such...I have shell access and myPHPAdmin....There is InstallScript.php with commands, but as I said...)

I add some information... I rechecked all files (tried to install manually), it seems that everything is in place already...However, same problem
I get in Error log a bunch of "undefined index: shop_...", mostly in subs.php and shop.php, at corresponding lines.

What can I do?
In admin panel, also, the shop's settings area disappeared, looks like this:



For Joseph21, the upgrade file is here - shop 2.1 -> 2.2
« Last Edit: July 31, 2006, 11:44:56 am by tapirul »