Jump to content
MakeWebGames

[mccode] Choose Gender


mdshare

Recommended Posts

  • 4 months later...

Re: [mccode] Choose Gender

 

<table border="0" cellpadding="0" cellspacing="0" width="468px">

<tr><td>title.jpg</td></tr>

<tr><td> </td></td>

<tr><td>

 

Choose Gender! [installation Instructions]

Choose Gender! allows you to add gender to your game.

 

<font color="red">This requires MCCode/DBSCode installed on your server. </font>

 

Choose gender! [Files to edit]

The list of files and modifications to do:

 

register.php

Find:

<textarea cols='60' rows='8' wrap='VIRTUAL' name='texlink'>mysql_query("INSERT INTO users (username, login_name, userpass, level, money, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, lastip) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', '$ip')", $c);

</textarea>

Replace With:

<textarea cols='60' rows='8' wrap='VIRTUAL' name='texlink'>mysql_query("INSERT INTO users (username, login_name, userpass, level, money, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, lastip) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', '$ip')", $c);

</textarea>

Find:

<textarea cols='60' rows='1' wrap='VIRTUAL' name='texlink'>Confirm Password: <input type=password name=cpassword>

</textarea>

Add After:

<textarea cols='60' rows='4' wrap='VIRTUAL' name='texlink'>Gender: <select type='dropdown' name='gender'><option value='male'>Male</option><option value='female'>Female</option></select>

</textarea>

 

Script information

 

type: mod / Choose Gender!

 

license: All code and documentation are property of their posters at Criminal Existence Copyright © 2006-2007 The Plug Network Inc

 

script: chgendv1

 

coder: Seanybob

 

release: 1.0.0

 

</p>

</td></tr>

</table>

Cool

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...

Re: [mccode] Choose Gender

Then edit like phpmyadmin > users > gender aint hard then prefs then dropdown..

maybe do somethink like this

if(!in_array($_POST['gender'],array("Male","Female")))

{

die("Invalid gender!

> Back");

$h->endpage();

exit;

}

If gender is not male or female it will say invalid gender!!

May have done it rong aint sure

Link to comment
Share on other sites

Re: [mccode] Choose Gender

 

I really dont understand what is this mod?

The topic name says it all.

Basically md has added gender on to the register page and you get to choose between Male/Female.

You can oredy do that on Mccodes :S

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...