Skilled Illusionist
- Joined
- Oct 28, 2008
- Messages
- 379
- Reaction score
- 47
Hi, I've been working on some addons for Xnova 8.0sp (this one works on all versions i think) and i found it dumb that players could not choose their own language like in real ogame. Wich made me make this little thingy.
Lets start.
Open reg.php and search this line
under that line add this line
Now open the folder templates then opengame and then open registry_form. search this
and add under it this
Save everything and your done ^^
Greetz Aropop
Press thanks if you like this!
Lets start.
Open reg.php and search this line
PHP:
$QryInsertUser .= "`sex` = '" . mysql_escape_string($_POST['sex']) . "', ";
PHP:
$QryInsertUser .= "`lang` = '" . mysql_escape_string($_POST['lang']) . "', ";
Code:
<tr>
<th>{Sex}</th>
<th><select name="sex">
<option value="">{Undefined}</option>
<option value="M">{Male}</option>
<option value="F">{Female}</option>
</select></th>
</tr>
Code:
<tr>
<th>Language</th>
<th><select name="lang">
<option value="en">English</option>
<option value="fr">Français</option>
<option value="de">Deutsch</option>
<option value="it">Italiano</option>
<option value="es">Español</option>
</select></th>
</tr>
Greetz Aropop
Press thanks if you like this!