 |
 |
 |
 |
#245497 - 05/07/03 04:16 AM
Combining two registration scripts
|
Member
Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
|
Hi,<br /><br />Some questions if I may...<br /><br />(Not certain if this is the right forum, btw. If it isn't my apologies)<br /><br />Our site consists of 2 distinct areas, a memberarea and a message board, both of these unfortunately use their own database. People need to pay for memberarea access and we would like to know on the message board which members have and which have not paid. This info will allow us to give more features to paying members.<br /><br />In order to realize this we need to combine the registration processes.<br /><br />JoshPet was already nice enough to point us in the right direction a bit in that we need a seperate group on the board to identify paying members. I assume I then need to have the registration process add a user to this group if he has paid.<br /><br />And this is where I begin to run into problems <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />To be honest I am a bit stuck at how to best handle this. Preferably I think I would like to use the UBBT registration and add additional fields for our account options (free, 1-month trial, 1-year, etc.).<br />Alternatively we could use the info on our registration page to create a useraccount on the board.<br /><br />My partner has had a look at this a bit and has the following questions:<br />* How can we see if a user exists?<br />I assume this could be done by a query on Username and / or email address, right?<br /><br />* How can we create a new user in UBBT?<br />I think this is done in adduser.php, but could we do this with an SQL query as well? Or do we need to use this script?<br /><br />An added complication, I think, is that the databases run on different machines, so a solution using only SQL queries would be great since the account creation could then be done remotely from the billing server.<br /><br />Anyway, I hope this is clear and that someone could provide us with some pointers.<br /><br />Sanuk!<br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#245504 - 05/07/03 09:06 PM
Re: Combining two registration scripts
[Re: -Fusion-]
|
Member
Registered: 02/06/02
Posts: 297
Loc: Bangkok, Thailand
|
Hi,<br /><br />"You need to update your members database also, when someone changes his email address within threads and vice versa."<br />Yes, but this should not be that difficult since we do not store much info in the members database, and with the exception of the password none of this can be changed by a user.<br /><br />So, we could use all the UBBT scripts only, and make them update both databases. While this is obviously risky and not good practice, it would work and should be fairly transparent to the users.<br /><br />"Using the same usertable for threads and your members area would be the better way, in my opinion.<br />Depending the scripts that you use in your member area, it would be less work and a cleaner solution."<br />You do have a very good point here. I have no idea about these scripts, but will ask my partner for a copy.<br /><br />The suggestion one of my friends had was to do this:<br /> - let the memberarea registration page update the UBBT database (U_groups)<br /> - run a script daily that checks the memberarea database and updates the U_groups table in the UBBT database (removing expired accounts)<br /><br />I think this may be a decent temporary solution while we work on combining everything. The thing is that we believe we could make a substantial increase in revenue by combining these and offering more features to paying members. The board has ~5 times as many active users as the memberarea.<br />So, obviously we would like to do this quickly.<br /><br />Sanuk!<br />
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|