1

Topic: Free woman paid account

Hi, for those who need it, i have made a Hack, so womans have after register a free paid account...(Not the best way, but it works)

So, in file includes/lib/lib.account_register.php

around line 255 you will see:

save_register($type_id, $index_type_id, $username, $password, $password_confirm, $email, $email_confirm, $photo, $tos, $captcha, $fields, $default_fields);

change it to:

save_register($type_id, $index_type_id, $username, $password, $password_confirm, $email, $email_confirm, $photo, $tos, $captcha, $fields, $default_fields, $_POST['gender1']);
// $_POST['gender1'] is the sex type of the user... be carefull with this you may have to change to your own.

next, around line 361

//------------------------------------------------
// Save registration form
//------------------------------------------------
function save_register($type_id, $index_type_id, $username, $password, $password_confirm, $email, $email_confirm, $photo, $tos, $captcha, $fields, $default_fields)

change to:

//------------------------------------------------
// Save registration form
//------------------------------------------------
function save_register($type_id, $index_type_id, $username, $password, $password_confirm, $email, $email_confirm, $photo, $tos, $captcha, $fields, $default_fields, $type_sex)
// $type_sex is the value passed to the function (in my case Womans value = 2 )

Next, around line 961 you will see:

$DB->query("INSERT INTO " . DB_PREFIX . "members (group_id, type_id, username, password, email, ipaddress, picture, picture_active, picture_date, ..........................


Change to:

if($type_sex=='2'){
    $group = '5'; (Group_id -> Paid members) (You may have to chenge to your own)
}else{
                $group = ($PREFS->conf['activation_type'] == 1 ? $PREFS->conf['regular_member_group'] : $PREFS->conf['pending_member_group']);   
    }
   
    $DB->query("INSERT INTO " . DB_PREFIX . "members (group_id, type_id, username, password, email, ipaddress, picture, picture_active, picture_date,
                joindate, expirationdate, active, totalfavorites, totalaguestbooks, totalimessages, newmessages, totalalbums, referral_id, totalcredits)
                VALUES ('" . $group . "', '$type_id',
                        '$username', '" . md5($password) . "', '$email', '$ipaddress',
                        " . ( isset($picname) && $picname ? "'".substr($picname, 6)."'" : "''" ) . ",
                        " . ( isset($picname) && $picname && $actpic ? 1 : 0 ). ",
                        " . ( isset($picname) && $picname ? time() : 0 ). ",
                        '" . $joindate . "', '$expiration', '1', '$totalfavorites', '$totalaguestbooks', '$totalimessages', '$newmessages', '$totalalbums',
                        '$refid', '".$PREFS->conf['trial_member_credits']."')");


Thats it, hope this helps someone

Last edited by pmaonline (2011-02-14 19:59:41)

2

Re: Free woman paid account

I just implement, really enjoyed it.
But I have a comment:
To avoid paying a man can sign up as a woman and then change their sex to man, hence he will continue using the site without paying.

Have to do some make a review Update on sex, where women change for Men also change the group.

3

Re: Free woman paid account

Moreover, this way men can register anyway as women and contact real women...

4

Re: Free woman paid account

orange_slice wrote:

Moreover, this way men can register anyway as women and contact real women...

yeah but if you're serious you do not want to be called a woman if you are a man and vice versa smile

Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals  Add CometChat to your vldPersonals site

5

Re: Free woman paid account

gugu wrote:
orange_slice wrote:

Moreover, this way men can register anyway as women and contact real women...

yeah but if you're serious you do not want to be called a woman if you are a man and vice versa smile

I can lie to those women and say them I am serious and I am just checking if the site is professional before to pay for a membership. In the meanwhile I ask them for an email or another contact (MSN, Skype, etc...) without paying nothing to you.

So you just lose subscriptions and money.