SMF Shop
SMFShop => General SMFShop Discussion => Topic started 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:
- 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 (http://www.dansoftaustralia.net/) website to download this new version :)
-
hello,
do you have this function available? >>>> to pay (the credits) to read the hidden post? :idiot2:
-
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!
-
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?
-
Will i need to re edit the files i needed like before "i'm using a diff theme than the basic"
-
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?
-
I noticed you have 2.2 also and it dont show that either on yours ;)
-
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.
-
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.
-
well both forums that i installed it on are using the default theme so that can't be it.
-
do you have this function available? >>>> to pay (the credits) to read the hidden post?
No, not at the moment.
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.
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.
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)
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
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 :)
-
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 :(
-
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...)
-
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:
-
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
-
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?
-
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...
-
actually, just need some help on uninstalling everything, i tried. using...
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.
-
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?
-
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?
-
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
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?
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?
-
well... the karma bash says it works, but doesnt actually affect the karma.
-
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
-
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?
-
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
-
Worked like a champ!
Thanks, Daniel!
-
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!
-
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 ("")
-
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
Successfully changed 's title to
I've also never been able to resolve the Profile Image error I posted about previously.