sex change operation

Need A Custom Modification To Your Webdate Script. Ask For Help Here.

sex change operation

Postby mutton on Sun Apr 06, 2008 8:23 pm

I've always allowed women free full membership on my site. Some people have found that it's easy to register as Female which gives them the unlimited membership forever, then go back and change their gender to Male. No wonder no-one's paying for membership!
mutton
 
Posts: 100
Joined: Mon Feb 11, 2008 11:47 pm

Re: sex change operation

Postby paul on Sun Apr 06, 2008 10:35 pm

to prevent users from changing their sex...

open:

engine/forms/profile_all_step.php

find the line:
Near line 129:

Code: Select all
q("UPDATE dt_profile SET gender='$gender' WHERE member_id='$fMember[id]'");


Simply comment out the line with two //

this prevents the gender from ever being changed... the new line will look like this

Code: Select all
//q("UPDATE dt_profile SET gender='$gender' WHERE member_id='$fMember[id]'");


also again on near 183

add the //

Code: Select all
//q("UPDATE dt_members SET gender='$gender' WHERE id='$fMember[id]'");
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

Re: sex change operation

Postby mutton on Mon Apr 07, 2008 11:28 am

There's a line which looks identical about 54 lines later. Should I be concerned with that one?
mutton
 
Posts: 100
Joined: Mon Feb 11, 2008 11:47 pm

Re: sex change operation

Postby paul on Mon Apr 07, 2008 6:50 pm

Yes comment out both the lines that contain:

Code: Select all
q("UPDATE dt_members SET gender='$gender' WHERE id='$fMember[id]'");


just add // to the front of the q

Code: Select all
//q("UPDATE dt_members SET gender='$gender' WHERE id='$fMember[id]'");
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

Re: sex change operation

Postby mutton on Sun Jul 06, 2008 8:59 pm

I've found that members can also change their gender on the "Account" page and it changes it on both the Member and Profile records.
mutton
 
Posts: 100
Joined: Mon Feb 11, 2008 11:47 pm

Re: sex change operation

Postby paul on Sun Jul 06, 2008 11:20 pm

open templates/account.html

find this code and remove it and save the file:

Code: Select all
<tr>
                  <td>Gender:</td>
                  <td>{GENDER_DROPDOWN}</td>
               </tr>


Paul
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA

Re: sex change operation

Postby mutton on Tue Jul 08, 2008 7:54 pm

I had already removed the code that updates the gender in the database from whatever was entered on the page. Of course it makes more sense to not have the field on the page. I followed the above instructions and get "Select your gender please" when trying to use the page.
mutton
 
Posts: 100
Joined: Mon Feb 11, 2008 11:47 pm

Re: sex change operation

Postby paul on Tue Jul 08, 2008 8:00 pm

sorry I did not test this one

open engine/pages/account.php

on line 24 put two // in front of the line and save the file..

should look like this

Code: Select all
//if($gender == "") $error .= "Select your gender, please."."<br>\n";
         
User avatar
paul
Site Admin
 
Posts: 264
Joined: Sat Jan 26, 2008 7:30 pm
Location: Newington,Ct,USA


Return to Need A Modification To Your Webdate Script?

Who is online

Users browsing this forum: No registered users and 4 guests

cron