SMF Shop
SMFShop => SMFShop Announcements => Topic started by: Daniel15 on January 18, 2007, 06:58:06 pm
-
I'm proud to annouce that SMFShop 3.0 is now out! The code has been cleaned up a lot, and it also has a few more features. All the features I listed in the Feature highlights in new version of SMFShop (http://www.daniel15.com/forum/index.php/topic,515.0.html) topic are present, along with a few more.
Changes in this release
Major:
- Lots of code cleanup
- Category support: You can now categorise your items
- Permissions: You can disable access to the shop for certain membergroups
- Bonuses per character and word: Give bonuses to a user depending on the number of characters or words in their post
- Bank deposit/withdrawl fees
- Option to not delete item after use: Great for items you'd like members to keep
- When editing an item, you can now edit the item_info (custom info entered when adding the item)
Minor
- Several minor formatting changes
- Fixed problem with SMF 1.1's "Find Members" popup
- Bold the current section on the left menu
- In "10 Richest Members" list, have links to their profiles
- When sending an item to someone, show an error if they don't exist
- Allow floating point values for interest
- And several other (minor things)... See the full changelog at http://server.daniel15.com/cgi-bin/viewvc.cgi/smfshop/trunk/svn_changelog.txt?revision=78
Download it from the DanSoft Australia (http://www.dansoftaustralia.net/) site, as usual :).
Note that I didn't have much time to look for bugs. All the large bugs have been fixed, but there may be some smaller bugs (especially with the upgrade package). Please tell me if you encounter any problems ;)
I hope you enjoy this release, I spent ages on it :)
EDIT: Here's a nice Lines of Code graph (yes, I know release-2.3 is at the wrong date, that's my fault :P):
(http://server.daniel15.com/smfshop/stats/loc_small.png)
:D
-
wow!! some nice new features!!
does it have logging of sold / used item..
great work!!
-
does it have logging of sold / used item..
Sorry, no logging yet, I didn't have time to implement it...
-
Hi Daniel,
Congrats on the new launch but -
Here's an error I got when I tried to upgrade
9. Execute Modification ./Sources/ManagePermissions.php Test failed
Also, I uninstalled my earlier SMF shop & tried the fresh install. Still I got the same result.
Forum URL - http://www.cashout-now.info/forum
-
39. Execute Modification ./Sources/ManagePermissions.php Test failed
-
I've made a slight change to both the fresh install and upgrade packages, and the ManagePermissions.php edit should no longer fail. Please redownload the package, and try again.
-
now it wipped my entire shop out.
it upgraded to 3.0 and now i have no shop. and it wont let me just uninstall and fall back to 2.3
-
darn. went from a good working 2.3 to nothing. i got a shop link that links to nothing.
error on line 549 in packages.php
Unable to load the 'shop_above' template.
-
Dan,
Outstanding software. I really like the thought process behind it.
Not to critised your work, but I just saw a few things that might be beneficial to everyone.
Back End:
In Category Management, once a Category has been added, there's no way to change the Title. No Edit function. So basically I see it as, if you don't like the title and there are a lot of Items in that Category your SOL. You have to make a new Category and then move "All" of the items in the old one to the new one. Thus creating so much extra work.
Under the "Add/Edit/Delete" Items section when editing and item, the button is labeled "Edit" that saves the changes. My thought is the change this to "Save Changes" or "Save" to conform to theme of the rest of your package. Also a Cancel button that returns you to the "Add/Edit/Delete Items" section could be a great feature.
Front End:
Under "Shop Home" would it be possible to have the Categories Coded in between the "Welcome to" and the "10 Richest"? Good Idea, bad idea? I was thinking it might provoke shoppers to quickly look for a specific item. I go on the less than 3 clicks theory. It amounts to if they've got to make more than 3 clicks to find what they want, they loose interest.
Once in the "Buy Stuff" section. I know it's possible in HTML Code, but when select a Category or one of the other sort features, this could automatically process/active that selection. Versus pressing the "Go" button, it would just "do" your request.
I realize that this suggested would be a lot of code, but a Search feature would be awesome. Put it over in the Shop Stuff window, it would search all entries, Name and Description for "Whatever". That would be sweet.
EDIT:
Are user not supposed to be able to add in there own items?
END EDIT
Please don't take this the wrong way Dan. I happen to enjoy it when people make suggestions to me about my web designs.
I do like your product, I wish I could emplement it as a real $$$ Shop. Maybe I can, I'm just not seeing it. But I'd love to have Paypal links for everyone to use or maybe a Pay with Cash option.
Anyway, thanks for the great product.
Mike
www.charlestonreefers.org
Testing on www.herffinder.com
-
tried finding and removing all smf shop code. i am now all messed up from upgrading from 2.3 to 3.0
then tried installing 3.0 fresh install. got error on load.php
Unable to load the 'main' template.
-
where do i get the original 2.3 package?
found the 2.3 download i had from before but says its not compatible with smf 1.1.1
all i want is to get the shop back. by upgrading i whacked my whole shop out. messed up the load.php and fixed that. when i try to go 3.0 fresh install it gives me a load of errors.
do you have 2.3 for 1.1.1 (i need to get back in business).
these are the 2 errors i get from 3.0 fresh:
11. Execute Modification ./Sources/RemoveTopic.php Test failed
15. Execute Modification ./Themes/default/Display.template.php Test failed
-
i fixed my removetopic and display template failed errors
why does it keep saying Unable to load the 'shop_above' template. where is this template????
-
jdv, I'm not sure what could be going wrong for you, I successfully upgraded 4 test installations. Would you be able to try upgrading manually? If you upload the Upgrade package to http://server.daniel15.com/smf/package.php, you can see exactly what you need to do.
Old SMFShop versions are available here: http://www.dansoftaustralia.net/downloads/1/SMFShop.html
Sorry I can't help you more, but it's 2:00 AM here. I'll see if I can help you tommorow.
EDIT:
why does it keep saying Unable to load the 'shop_above' template. where is this template?
It's a sub template in Shop.template.php. Make sure that your Themes/default/Shop.template.php file was updated.
minfinger, thanks for your comments :)
Are user not supposed to be able to add in there own items?
No, users can't add their own items (well, not yet, anyways)
I happen to enjoy it when people make suggestions to me about my web designs.
Yeah, me too :)
-
minfinger, thanks for your comments :)
Are user not supposed to be able to add in there own items?
No, users can't add their own items (well, not yet, anyways)
I happen to enjoy it when people make suggestions to me about my web designs.
Yeah, me too :)
No problem...I'm willing to let you test on my www.herffinder.com site.
PM me if you want too.
-
i reverted back to 2.3. its back up, but now i have to give everyone there credits back as that is all lost and recreate the items again.
-
Could you clean up the Buy section a bit?
Maybe put the sort and category pulldowns above the item list on 2 different lines?
The way it's set up makes me adjust the width of my browser pretty big.
I attached a screen of what I'm talking about.
(Edit: Sorry, I meant to thank you for the new work on it also. Much appreciated!)
-
Unknown column 'category' in 'field list'
File: /home/purpleme/public_html/bb/Sources/shop/Shop-Subs.php
Line: 108
I'm getting that error after doing a fresh install of 3.0
I was up to version 2.2 I think but it wasn't functioning properly. I upgraded my SMF and my Tinyportal and it said the SHop was no longer installed so I did a fresh install.
-
Could you clean up the Buy section a bit?
Maybe put the sort and category pulldowns above the item list on 2 different lines?
The way it's set up makes me adjust the width of my browser pretty big.
I attached a screen of what I'm talking about.
(Edit: Sorry, I meant to thank you for the new work on it also. Much appreciated!)
On Shop.template.php
Search:
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder"> <!-- style="margin-top: 1.5ex;"> -->
Replace with:
<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder" align="left"> <!-- style="margin-top: 1.5ex;"> -->
-
That worked perfectly!
Was that a fix, or were the tables originally supposed to be set up that way?
Thanks again!
-
YES!! GREAT mod, as always, Daniel!! And thanks so much for the table fix Sakuragi!!
-
wow. im up on 3.0 now. now checking it out and redoing everything.
here is something i noticed. if a member goes backwards... they dont go in the whole or minus. It only goes to zero. Would be cool if they could go negative. Maybe credit for making a post with attachment? Just ideas.
Hey Dan thank you for the help.
John
-
Serious problem with credits. Its doubling/quadrupling. And i took out the extra code in the post.php "ill post hte post.php at the end here".
I have it set as:
10 per new topic
5 per reply
10 per registration
Bonus
1 per word
0 per character
0 for limit per post credit
Example: I make the following post thinking i should only be credited 14 credits (10 for the post and 4 for the 4 words)
This is a test.
However it gives me 48 credits?
How do i fix?
Post.php attached for review.
-
However it gives me 48 credits?
How do i fix?
Divide by 4.8 :uglystupid2:
-
what?
Im being serious. Need help please so credits are correct.
-----------
Does previous items on this site made by others work in 3.0? I noted the change primary member group was not coming up, but was still an item in the shop item folder on my site but not coming up when i click add/edit.
-
Updated perfectly for me, great job
-
Lucid help. See my post above yours. Sure you can help, as you know how it works? Is something wrong with my code?
Thanks in advance.
jd
-
will have a proper look at it but as a quick solution you could try having the per word bonus set to .25 . I'm sure daniel will have a solution for it.
-
jdv, the shop code is in your Post.php file 4 times. Try the attached Post.php file, it should solve your problem.
It only goes to zero. Would be cool if they could go negative
They can't go negative, because I've set up the database fields as unsigned (this means that the range is from 0 upwards, and doesn't include negative numbers). If you want people's credits to go negative, you can edit the field in phpMyAdmin. Open the smf_members database in Structure view, and find the money field. Edit it and remove the 'UNSIGNED' attribute.
Does previous items on this site made by others work in 3.0?
Yeah, they'll work fine... SMFShop items are backwards compatible. There's a few extra settings in 3.0, which you'll find by looking at the test items.
Maybe credit for making a post with attachment? Just ideas.
That's an idea, I'll consider it :)
-
see daniel to the rescue
-
the post.txt works. but i tried this.
i made a post and it gave me 11 credits like it should of. i went and deleted the post and it only took away 5 credits and left me with the 6.
is it still giving me credits for the words posted, but only took away the post credit?
-
Nice job ;) and upgrade went smoothly BUT...
In permissions last line is empty ::) (added attachment 1)
When I allow guests to access SMFShop it still asks to register and don't show shop main window
And bank interest doesn't work (cronjob attachment 2) yesterday i set my bank money to 1000 and bank interest to 0,01% per day. That should give me 10 credits but... i still have 1000
thanx for any help ;)
-
i made a post and it gave me 11 credits like it should of. i went and deleted the post and it only took away 5 credits and left me with the 6.
is it still giving me credits for the words posted, but only took away the post credit?
Whoops, looks like a bug. I changed the post code so it adds bonuses based on words/characters, but forgot to change the remove post code. I'll look into it, and see if I can fix it.
In permissions last line is empty (added attachment 1)
Oh no, a bug!
In Themes/default/languages/ManagePermissions.english.php, find:
$txt['permissionname_shop_bank'] = 'Bank';
$txt['permissionname_shop_bank'] = 'Trade Centre';
Replace with:
$txt['permissionname_shop_bank'] = 'Bank';
$txt['permissionname_shop_trade'] = 'Trade Centre';
Since you have another language installed, you'll also need to do this for ManagePermissions.[your language].php
When I allow guests to access SMFShop it still asks to register and don't show shop main window
This is another thing I overlooked. Since guests can't really do much in the shop, they still don't have access to it. I may change this in a future version, and give them access to certain parts (probably only the main page, and Buy Stuff page).
And bank interest doesn't work (cronjob attachment 2) yesterday i set my bank money to 1000 and bank interest to 0,01% per day. That should give me 10 credits but... i still have 1000
It won't work with wget, you'll need to use a command line like:
/usr/local/bin/php -q /home/[username]/domains/[domain]/public_html/forum/Sources/shop/dointerest.php
That should work (you're using DirectAdmin, right? I believe the paths in DirectAdmin are like that).
If that doesn't work (and you still want to use wget), take a look at the code posted to http://www.daniel15.com/forum/index.php/topic,31.0.html. Save that to a new file (with a somewhat random name), and call that script instead.
-
It won't work with wget, you'll need to use a command line like:
/usr/local/bin/php -q /home/[username]/domains/[domain]/public_html/forum/Sources/shop/dointerest.php
That should work (you're using DirectAdmin, right? I believe the paths in DirectAdmin are like that).
Yes, using Direct admin and where should i write that command line? ::) (adding attachment again)
If that doesn't work (and you still want to use wget), take a look at the code posted to http://www.daniel15.com/forum/index.php/topic,31.0.html. Save that to a new file (with a somewhat random name), and call that script instead.
And if i use this method, so i can call that script using direct admins cron job and wget? (sorry i'm new to all this)
And one more question: as far as i understand if i make cron job to happen every month, so interest will be added to users every month?
-
That's strange, my DirectAdmin looks like this (attached)... You'd put the command into the "Command" box.
You'll need to get the script from http://www.daniel15.com/forum/index.php/topic,31.0.html, save that somewhere (eg. dointerest123123.php), and then use that url (eg. http://www.mobiles.lt/forum/dointerest123123.php).
And one more question: as far as i understand if i make cron job to happen every month, so interest will be added to users every month?
Yes, that's right. If you make the cron job run once a month, it will be monthly interest.
-
Done ;) will see tommorow if it works :)
And it would be nice if words from quotes didn't count when counting credits per word or symbol ;)
-
another bug.
When i send money. Im john on the forum. If i send money to joe. Say $500 credits.
It does it but replies back $500 sent to John. But it does go to Joe.
-
I need to know what file this is in. It showed up twice for some reason so i need to go in and remove it. I'll be able to figure out the duplication, just need to know what file.
Thanks
(http://i67.photobucket.com/albums/h293/bitofaweapon/v.gif)
-
themes/default/profile.template.php
starting to get a hang of this smfshop. :)
-
another bug.
When i send money. Im john on the forum. If i send money to joe. Say $500 credits.
It does it but replies back $500 sent to John. But it does go to Joe.
Yeah, that's a known bug (it crept in during the code cleanup). Have a look at the Known bugs in SMFShop 3.0 (http://www.daniel15.com/forum/index.php/topic,532.0.html) topic for a fix :)
I need to know what file this is in. It showed up twice for some reason so i need to go in and remove it. I'll be able to figure out the duplication, just need to know what file.
As jdv said, try looking in Themes/default/Profile.template.php
-
Yeah, that's a known bug (it crept in during the code cleanup). Have a look at the Known bugs in SMFShop 3.0 topic for a fix
Okay, i'll bite. I went to the known bugs, and for the issue i was looking for it was removed and said bug now fixed in archive? Bouncing me around here. Now im looking for the smfarchive. Still haven't found it.
I know i need to fix in it shop-send.php
how come not just leave the fix in the known bug fixes?
Someone please send me a link to the archive.
-
for that didn't place the traducion to Spanish of the the store...
but that I say I am you very well
Thank you
-
i fixed my removetopic and display template failed errors
jdv, how did you fix the Display.template.php failed error??? I could use the help. Please
-
now i dont remember. i have been so whacked in the brain with the upgrade on shop and the arcade. i think what i did was reload from a backup the file and when i went to install it passed. i think it was whacked from my previous attempts. im almost 100% sure this is what i did.
-
Eh, scrapped everything and tried again, still the same error, but went through with install anyways. Seems to be working okay. Thanks.
-
Okay, i'll bite. I went to the known bugs, and for the issue i was looking for it was removed and said bug now fixed in archive? Bouncing me around here. Now im looking for the smfarchive. Still haven't found it.
I meant, it's fixed in the latest SMFShop download ;).
If you look in that topic, the fix is listed (second part of it). http://www.daniel15.com/forum/index.php/topic,532.0.html
for that didn't place the traducion to Spanish of the the store...
but that I say I am you very well
Thank you
Sorry about that. I changed a lot of the language entries (moved them around, added new ones, and modified existing ones). If you're able to translate the SMFShop 3.0 language file, I'll include it :)
jdv, how did you fix the Display.template.php failed error??? I could use the help. Please
What problems are you encountering with the Display.template.php file?
If you get an error, try installing anyways. Then, you can edit the Display.template.php file manually (see the 'How to get shop working in other themes' topic to see the code you need to use).
-
Dan, that second part is blank? go look.
-
I installed it on my forum but when I click donate or View inventory it goes back to my home page of the forum]
-
- Fixed problem with SMF 1.1's "Find Members" popup
This problem still here on View Other Members' Inventory
To fix this problem, on Shop.template.php
Replace:
<input type="text" name="member" size="25" />
<a href="', $scripturl, '?action=findmember;input=member;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" border="0" alt="', $txt['find_members'], '" /> Find Members</a><br />
With
<input type="text" name="member" id="membername" size="25" />
<a href="', $scripturl, '?action=findmember;input=membername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" border="0" alt="', $txt['find_members'], '" /> Find Members</a><br />
-
Sorry I am not very good at this. I was able to do all the upgrades prior to 3.0 successfully, but 3.0 is giving me issues. I have sent a screenshot of what failed, and obviously this is not enough probably to tell you what is truly wrong with my attempts, but it may help.
-
I installed it on my forum but when I click donate or View inventory it goes back to my home page of the forum]
Is this the only problem you're having? What URL is it trying to go to?
- Fixed problem with SMF 1.1's "Find Members" popup
This problem still here on View Other Members' Inventory
To fix this problem, on Shop.template.php
Replace:
<input type="text" name="member" size="25" />
<a href="', $scripturl, '?action=findmember;input=member;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" border="0" alt="', $txt['find_members'], '" /> Find Members</a><br />
With
<input type="text" name="member" id="membername" size="25" />
<a href="', $scripturl, '?action=findmember;input=membername;quote=1;sesc=', $context['session_id'], '" onclick="return reqWin(this.href, 350, 400);"><img src="', $settings['images_url'], '/icons/assist.gif" border="0" alt="', $txt['find_members'], '" /> Find Members</a><br />
Thanks for notifying me of this; I'll fix it as soon as possible.
Sorry I am not very good at this. I was able to do all the upgrades prior to 3.0 successfully, but 3.0 is giving me issues. I have sent a screenshot of what failed, and obviously this is not enough probably to tell you what is truly wrong with my attempts, but it may help.
You could try installing the update anyways, and then editing those three files manually...
Upload the update package to http://server.daniel15.com/smf/package.php, and check the modifications to index.php, $sourcedir/Subs.php, and $themedir/Display.template.php.
-
I hope I am not repeating a question already covered in the last 4 pages...
I am currently using 2.2 Since there isn't a 2.2 to 3.0 upgrade do I need to upgrade to 2.3 and then to 3.0? Also, will all of my custom shop items and my members points and inventories still be there after the upgrade?
-
I went ahead and did the upgrade to 2.3 with no problems, however when I went to 3.0 I got a test failed in index.php, subs.php, Display.template.php, and index.template.php.
I found the manual fix for display but I can't find anything for the others. Please help/
-
Jamie, you can try upgrading manually. Upload the upgrade package to http://server.daniel15.com/smf/package.php, and it will tell you what to do.
If you need more help, please feel free to PM me (although my response time may be a bit slow, due to school taking most of my free time).
-
Okay. I'm probably doing/not doing something very stupid. I'm new to SMF, so it's likely a basic thing I've missed.
I'm on 1.1.5, downloaded shop 3 fresh install, have the basic theme up, but it just doesn't work. I get a shop icon, but nothing in it. In the error log I'm getting:
8: Undefined index: shop_admin_inventory/cat/blah blah
File: /home/tomecit/public_html/SMF/Sources/Subs.php
Line: 2826
...and similar. I've checked, and indeed I can't find these files in the SHOP directory. Any ideas? Help? What am I doing wrong? This is driving m.. :idiot2:
-
Ya, is there gonna be a smf shop that works with 2.04beta, I tried loading it and it says it isn't compatable with it, stinks too cuz I had just restarted the board and would have used version 1.17 if I knew it wouldn't work...
-
OH MY GOSH
WHY DID THIS THREAD HAVE TO BE BUMPED :'(