SMF Shop

SMFShop => General SMFShop Discussion => Topic started by: Daniel15 on July 29, 2006, 07:57:02 pm

Title: SMFShop 2.2 now out!!
Post by: Daniel15 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:
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 (http://www.dansoftaustralia.net/) website to download this new version :)
Title: Re: SMFShop 2.2 now out!!
Post by: k_4_kelly 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:
Title: Re: SMFShop 2.2 now out!!
Post by: bipsmith 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!
Title: Re: SMFShop 2.2 now out!!
Post by: Geezer 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?
Title: Re: SMFShop 2.2 now out!!
Post by: Joshsux 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"
Title: Re: SMFShop 2.2 now out!!
Post by: littleone 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?
Title: Re: SMFShop 2.2 now out!!
Post by: littleone on July 30, 2006, 02:45:11 am
I noticed you have 2.2 also and it dont show that either on yours ;)
Title: Re: SMFShop 2.2 now out!!
Post by: SKETCHi 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.
Title: Re: SMFShop 2.2 now out!!
Post by: mujahid 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.
Title: Re: SMFShop 2.2 now out!!
Post by: littleone 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.
Title: Re: SMFShop 2.2 now out!!
Post by: Daniel15 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 :)
Title: Re: SMFShop 2.2 now out!!
Post by: akulion 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 :(
Title: Re: SMFShop 2.2 now out!!
Post by: tapirul 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...)
Title: Re: SMFShop 2.2 now out!!
Post by: joseph21 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:
Title: Re: SMFShop 2.2 now out!!
Post by: tapirul 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:

(http://img.photobucket.com/albums/v505/tapirul/shop.jpg)

For Joseph21, the upgrade file is here (http://www.dansoftaustralia.net/developers/smfmods.dsa) - shop 2.1 -> 2.2
Title: Re: SMFShop 2.2 now out!!
Post by: mikedats on July 31, 2006, 01:14:54 pm
i had this problem where i accidentally deleted the database. after fixing that the shop doesnt work anymore. it still adds cash for making posts. but cant buy, trade and so on. i tried uninstalling the mod but it wont let me cuz it says some "table" unknown in the databse. i tried overwriting the mod with 2.2 but it still says 2.1.

i just wanna remove it and do a clean installation. but i cant remove it...what can be done?
Title: Re: SMFShop 2.2 now out!!
Post by: mikedats on July 31, 2006, 02:21:06 pm
nevermind. found a topic that helped. was able to install it again. but not really. the members cash was still to date. now the problem i came across is changing someones usertitle. when i click on use this item, it goes to the screen you have successfully changed blah blah's title to:

the weird thing is that i didnt even enter the name of who and what i wanted to change it to. hmmm...
Title: Re: SMFShop 2.2 now out!!
Post by: mikedats on July 31, 2006, 05:22:13 pm
actually, just need some help on uninstalling everything, i tried. using...

Code: [Select]
DELETE FROM `smf_settings` WHERE `variable` = 'shopVersion' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopDate' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopBuild' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopCurrencyPrefix' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopCurrencySuffix' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopPointsPerTopic' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopPointsPerPost' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopInterest' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopBankEnabled' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopImageWidth' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopImageHeight' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = 'shopTradeEnabled' LIMIT 1;
DELETE FROM `smf_settings` WHERE `variable` = shopItemsPerPage' LIMIT 1;

then i tried to install it again...said the theres a duplicate field.

smf_shop_items exists already. but had removed it already.

but then the shop seemed to have installed anyways. im came across what i mentioned in the previous post. then the funny thing is that when i went into the package manager, its asking if i wanna apply the shop mod. meaning it hasnt installed yet. but it has.

basically, i just wanna removed everything and start over from scratch.
Title: Re: SMFShop 2.2 now out!!
Post by: littleone on August 01, 2006, 11:58:15 am
There seems to be an issue with the shop.  It was brought to our attention that maybe some of the "Send Admin" email feature wasnt working.  So i purchased 16 different ones and used them and numbered them.  Only numbers 4 and 9 arrived.  The other 14 never showed.  What might the problem be here?
Title: Re: SMFShop 2.2 now out!!
Post by: the fat boy on August 02, 2006, 01:57:06 am
Both of the items in the item section, profile image and karma bash do not work with the new update.  how can i fix it?
Title: Re: SMFShop 2.2 now out!!
Post by: Daniel15 on August 04, 2006, 10:32:08 pm
Quote
Both of the items in the item section, profile image and karma bash do not work with the new update.  how can i fix it?
They should. With regards to items, nothing has changed...
What do you mean by 'do not work'? The Profile Image item is working fine on this site, with SMFShop 2.2

Quote
There seems to be an issue with the shop.  It was brought to our attention that maybe some of the "Send Admin" email feature wasnt working.  So i purchased 16 different ones and used them and numbered them.  Only numbers 4 and 9 arrived.  The other 14 never showed.  What might the problem be here?
That sounds like a server problem. Is there anything in your server's error log?

Quote
In admin panel, also, the shop's settings area disappeared, looks like this:
Are you sure that the Themes/default/language/Shop.english.php file is not corrupted? And, what are the exact errors in your error log?
Title: Re: SMFShop 2.2 now out!!
Post by: the fat boy on August 05, 2006, 06:01:44 am
well... the karma bash says it works, but doesnt actually affect the karma.
Title: Re: SMFShop 2.2 now out!!
Post by: littleone on August 06, 2006, 05:45:05 am
Quote
There seems to be an issue with the shop. It was brought to our attention that maybe some of the "Send Admin" email feature wasnt working. So i purchased 16 different ones and used them and numbered them. Only numbers 4 and 9 arrived. The other 14 never showed. What might the problem be here?
That sounds like a server problem. Is there anything in your server's error log?

No there isnt.  Like I said some of it goes through and the rest of it dont.  Not sure why that might be.  Is there a way to make the email admin option become "Unusable" after the member has used it?  That way if they ask about it, we can see that in fact they had used that?  Or is there a way to make a shop log? to see who bought what, when and when it was used or traded or otherwise?  Thanks
Title: Re: SMFShop 2.2 now out!!
Post by: bd2003 on August 13, 2006, 08:35:30 am
well both forums that i installed it on are using the default theme so that can't be it.

I've got the same problem. Using the default theme, upgraded from 2.1 to 2.2 and no link above the avatar... any ideas?
Title: Re: SMFShop 2.2 now out!!
Post by: Daniel15 on August 13, 2006, 12:25:08 pm
Quote
I've got the same problem. Using the default theme, upgraded from 2.1 to 2.2 and no link above the avatar... any ideas?
You need to edit the theme manually. Unfortunately, I forgot to put that bit of code in the upgrade package :P

Open 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 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

Title: Re: SMFShop 2.2 now out!!
Post by: bd2003 on August 14, 2006, 03:18:01 am
Worked like a champ!

Thanks, Daniel!
Title: Re: SMFShop 2.2 now out!!
Post by: k_4_kelly on August 18, 2006, 03:23:45 pm
hello...for some reason...i couldnt send money to someone....
the member is there, but it said doesn't exist...... ???

ERROR: The member you typed (' \"weirdweirdo\"') doesn't exist!
Title: Re: SMFShop 2.2 now out!!
Post by: Daniel15 on August 19, 2006, 12:00:35 pm
Quote
hello...for some reason...i couldnt send money to someone....
the member is there, but it said doesn't exist......

ERROR: The member you typed (' \"weirdweirdo\"') doesn't exist!
Does that member really have quotes in their name? Try just typing 'weirdoweirdo' into the box. It looks like for some reason, it put unneeded quotation marks around their name ("")
Title: Re: SMFShop 2.2 now out!!
Post by: Daethian on September 11, 2006, 09:11:13 am
I'm upgraded too and still have errors:
Change other's title:  Allows you to buy, and use but you don't get to enter the username or the new title, it just goes right to
Quote
Successfully changed 's title to

I've also never been able to resolve the Profile Image error I posted about previously.