Author Topic: shop help  (Read 4118 times)

Offline isht4r

shop help
« on: October 03, 2006, 12:00:02 am »
Ok i'm not to sure if you can do this or not but here goes...

I have the shop installed and all that i know that you can add files to the shop for people can download.
what i want to do is have a board in the forums that has all my media files on it and the only way that people can get to it is if you spend points in the shop to get to it..

Thanks for any help on this...

Offline Phydeaux

Re: shop help
« Reply #1 on: October 03, 2006, 04:16:12 am »
I probably should leave this to Daniel or Basil Beard to answer for you, but even they will need a couple of more details to be of much help. Are you wanting to sell(download) the file IN the board, or sell Access to the board? If you selling access, then I suppose you could give the user individual perms onuse() and revoke it via Display.php/Display.template.php after a download, but that could be complicated. .ooO{I think anyway}

If I might offer a suggestion; why not have the board access public with all the avaliable file "Descriptions" (no links) posted along with their credits cost so that everyone can see what great stuff you have for sale. Then the item's onuse()-->getUseInput() routine becomes a simple matter of populating a <select> from the dir containing all the files and the member simply selects the file to download. This way your transaction is handled withing the scope of the Shop without fiddling with the code in "Display.php or Display.template.php" in order to remove individual perms after the download, kapeesch?

:-) Hope it helps
Phydeaux

Offline Basil Beard

Re: shop help
« Reply #2 on: October 03, 2006, 04:46:43 am »
Step 1) Create the board and also create a "Board Access" usergroup or something like that. Make it so that only members of that usergroup can access the board.
Step 2) Download the "join usergroup" item that someone posted.

There you go.
Arrrrr!

Offline isht4r

Re: shop help
« Reply #3 on: October 03, 2006, 05:46:35 am »
Basil Beard that sounds like something that i want to do.. but where can i find that Join Usergroup? i searched on here and all i find is the one that you posted here

Thanks

Offline Basil Beard

Re: shop help
« Reply #4 on: October 03, 2006, 10:27:13 am »
Arrrrr!

Offline isht4r

Re: shop help
« Reply #5 on: October 04, 2006, 01:16:30 am »
ok i installed that and all that but for some reasion the database does not have the Shop in it no more... is there away that i can add the queries in the Phpmyadmin????

Offline isht4r

Re: shop help
« Reply #6 on: October 06, 2006, 10:35:29 am »
Hay i'm getting this error

Table 'db179494475.membergroups' doesn't exist
File: /homepages/4/d160423365/htdocs/forums/Sources/shop/items/Membergroup.php
Line: 20

Is there away to fix this???

Offline Daniel15

Re: shop help
« Reply #7 on: October 06, 2006, 06:49:55 pm »
Quote
Hay i'm getting this error

Table 'db179494475.membergroups' doesn't exist
File: /homepages/4/d160423365/htdocs/forums/Sources/shop/items/Membergroup.php
Line: 20

Is there away to fix this???
Hmmm...Have you checked that the membergroups table exists (it's a standard table, so it should). Do you use a table prefix (eg. smf_), or don't you have any?
What's your site's URL?

EDIT: OK, I think it was due to a bug in my post on that topic. Please try the edited code I posted, and see if it works :)
« Last Edit: October 06, 2006, 06:52:46 pm by daniel15 »

Offline isht4r

Re: shop help
« Reply #8 on: October 07, 2006, 06:14:16 am »
see i added the script from http://www.daniel15.com/forum/index.php?topic=316.0 so that way people can update there usergroup and when i try to add the item to the shop thats when i get the table error. I have looked in Myphpadmin and in there i see the smf_membergroup and i see nothing wrong with it at all.