Jump to content
MakeWebGames

Recommended Posts

  • 4 months later...
Posted

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

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

Re: [mccode] Choose Gender

if there any codes / sql to make ur gender inside the game cuz mine dont let me im a female and it says you can male and ses u have change to male but im still male :x :cry: :? Can Any One Help....Mail Me

Posted

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

Posted

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.

Posted

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

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...