Jump to content

Is there a way to only allow access to site if user donated to you?


Glenskie

Recommended Posts

Is there some way to make it to where a user is only allowed to the site if they have donated to the site ? otherwise they get a page where it askes to donate to the site and then they can access the content in the back ? I would like to do this in PHP :)

Of course you can set something up.  Make the site secure so that they have to login to use it.  Only give them login credentials when they make a donation and you receive it.

 

Write the code and if you have a problem THEN post it here for help.

The suggestion that @ginerjm has is a much better solution then what I about to suggest t a VERY simple method would be this.  If you plan to use paypal to collect the donation then...

 

Paypal has a listener that it calls after any payment (or donation) to your website is made.  Check out

 

https://developer.paypal.com/docs/classic/ipn/ht_ipn/

 

And to this php file a little code that will add the the donors email address to a dataase.  Now you have a database of all your donors and you can ask them to enter their email address to login (no password needed)

Not to be pedantic, but the point of a donation is that it's not compulsory. If you require someone to give you money in exchange for something (be it product, service, access or anything else) then it's no longer a donation, but a fee.

 

I only mention this because that's how the tax people are going to look at it, and they will be expecting a cut, or else proof of exemption.

Not to be pedantic, but the point of a donation is that it's not compulsory. If you require someone to give you money in exchange for something (be it product, service, access or anything else) then it's no longer a donation, but a fee.

 

I only mention this because that's how the tax people are going to look at it, and they will be expecting a cut, or else proof of exemption.

 

I would agree to with this, though maybe it's simply allowing donating users/members to see a "Thank you for donating." or "Your donation history." type of page.

 

The link posted by DenRomano should make for a good starting point.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.