Member ship site with paypal
Permalink-Frank
$u->enterGroup(Group $g)
The script looks like this:
//Add the user to the database $q = "INSERT INTO users (username, email, pass, first_name, last_name, date_expires) VALUES ('$u', '$e', '" . create_password_hash($p). "','$fn','$ln',ADDDATE(NOW(), INTERVAL 1 MONTH) )"; $r = mysqli_query ($dbc, $q);
Is there a way I could modify this using
$u = new User()
$u->enterGroup(Group $g)
so that it would integrate right in easily?
Great you have found this solution - its exactly what i am after. I'm creating a site that people can auto-sign up, pay for - each unit they pay for will be a 3, 6, 12 month membership to the site which allows them to view uploaded content.
I have another site with the ecommerce module (i'll buy another module for the new site) and can't work out how to put a purchase in a group - are you able to explain it for me pls.
JC
Cheers - I'll grab it today - Thanks !!!
Haven't done this yet but we have just finished working through a brief for a client where something similar is going to happen.
Would be happy to discuss this project further with you - we might be able to do some coding to make this work.
jesse@fullflavour.co.nz
Jesse