| Welcome to Webforumz.com. |
|
Apr 29th, 2008, 22:11
|
#1 (permalink)
|
|
Junior Member
Join Date: Jul 2005
Location: Lethbridge, Alberta
Posts: 17
|
Paid Membership Access - how?
I'm looking to create a paid 'membership access' section of a website. I know how to create a "members" section of a website so that any access to pages within a certain folder will require the viewer to enter a username/password which will grant them access for the time they are on that website.
But that would be just a set of pre-set credentials. How do you do it when the member has to pay for that membership?
I can set it up so we can take payment and information from the user, but how do I take a username and password? I can have them create that prior to the purchase I'm thinking.
And than depending on the type of membership that they purchase (monthly, annually, bi-annually) how will I get it so that their account will expire at the end of their term?
I know this may be a little work to get going, but it is required and soon!
I am working in a PHP\MYSQL environment.
Thanks,
Josh
|
|
|
Apr 30th, 2008, 18:15
|
#2 (permalink)
|
|
Lead Administrator
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,062
|
Re: Paid Membership Access - how?
look into cms systems, i would suggest http://www.joomla.org , they have loads to plugins to choose from, you can usually find what you want, - it is a complicated system to learn, but once you do, there are virtually limitless possibilities that are easily executable
Last edited by saltedm8; Apr 30th, 2008 at 18:22.
|
|
|
May 1st, 2008, 21:01
|
#3 (permalink)
|
|
Junior Member
Join Date: Feb 2008
Location: Michigan
Posts: 23
|
Re: Paid Membership Access - how?
Seems to be there's got to be a php script out there that gets this functionality by working with a standard .htaccess authentication method. So, when the user pays some code is triggered that adds the username and password to the file. When a user's time is up or revoked or whatever, that line is deleted from the file.
|
|
|
May 1st, 2008, 21:46
|
#4 (permalink)
|
|
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 520
|
Re: Paid Membership Access - how?
Quote:
Originally Posted by awatson
Seems to be there's got to be a php script out there that gets this functionality by working with a standard .htaccess authentication method. So, when the user pays some code is triggered that adds the username and password to the file. When a user's time is up or revoked or whatever, that line is deleted from the file.
|
I think it would more be a database system and not use .htaccess. .htaccess authentication is mainly only used for systems that only have a few users, such as administration tools.
One of these might work: http://www.hotscripts.com/PHP/Script...ion/index.html
with a little bit of editing im sure you can add a payment gateway into there.
__________________
Take it easy
Other Road Design
WebForumz Moderator: HTML | Javascript | PHP
|
|
|
May 2nd, 2008, 07:08
|
#5 (permalink)
|
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,750
|
Re: Paid Membership Access - how?
If you have got a basic user database, and login system... you can easily add a column to your database called "userlevel" - this will be a number.
Then at the top of the page that you only want them to see, just a simple if() statement is required to see if the user matches that number.
If you need any further assistance in doing this, say.
Cheers
Marc
__________________
I'm back!!!! 
|
|
|
May 8th, 2008, 17:09
|
#6 (permalink)
|
|
Reputable Member
Join Date: Oct 2007
Location: Liverpool
Age: 29
Posts: 193
|
Re: Paid Membership Access - how?
Why not just use seperate database tables for each member type? Use a tempory database for member signing up, once you have recieved confimation they have paid the fee just transfer them from the tempory database into the relevent one!
I use this method & created a back end to manage it and all is well 
|
|
|
May 8th, 2008, 17:49
|
#7 (permalink)
|
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,750
|
Re: Paid Membership Access - how?
Quote:
Originally Posted by longstand
Why not just use seperate database tables for each member type? Use a tempory database for member signing up, once you have recieved confimation they have paid the fee just transfer them from the tempory database into the relevent one!
I use this method & created a back end to manage it and all is well 
|
More work 
__________________
I'm back!!!! 
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|