Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

Hey Guys,

I've been working on a template for the past week or so ... and this is what I've come up with (html)

http://countrywars-rpg.pcriot.com/login.php

still have a lot to code so coming soon:

- Navigation

- Registration

- In game template

- Full Game (Mc codes)

If You Professional Designer/Coders Have any comments for me please post away :) if there is something you don't prefer please say so... i would have trouble changing it after its all done ;)

Edited by shinobi
Posted

Pretty good. I think it would look better if the game title would be more themed so perhaps a logo with the text would bring it all together.

Style your login button to match your theme

Posted (edited)

I think it looks great as a layout, your execution of this is almost perfect in my opinion. The only thing I dont prefer is how dark it is. I found myself trying to find details in the header image but all I saw was darkness. I feel like im in a dungeon and dont want to be there long. help me help me someone turn on a light lol. I am afraid that it might make people uncomfortable. (or maybe its just that I never outgrew my fear of whats in the dark)

Edited by Lilith
Posted

lol, you wouldnt even have to make a whole new layout, the color gradients on the layout part were great, and created a lot of focus on your image .... which scared me.

Posted
<?php
session_start();
include_once (DIRNAME(__FILE__) . '/config.php');
global $_CONFIG;
define("MONO_ON", 1);
include_once (DIRNAME(__FILE__) . '/class/class_db_'.$_CONFIG['driver'].'.php');
$db = new database;
$db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']);
$db->connect();
$c=$db->connection_id;
$set=array();
$settq=$db->query("SELECT * FROM settings");
while($r=$db->fetch_row($settq))
{
$set[$r['conf_name']]=$r['conf_value'];
}
echo "
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type'content='text/html; charset=iso-8859-1' />
<title>Country Wars</title>
<link rel='stylesheet' type='text/css' href='perfect.css' />
<link rel='stylesheet' type='text/css' href='ddcolortabs.css' />
<script language='javascript' type='text/javascript' src='jquery-1.2.3.min.js'></script>
<script language='javascript' type='text/javascript' src='query.flow.1.0.js'></script>
<script language='javascript' type='text/javascript'>
   $(document).ready(function(){


       $('#myController').jFlow({
           slides: '#mySlides',
           width: '387px',
           height: '254px',
           duration: 400
       });
   });
   </script>
<script type='text/javascript' src='dropdowntabs.js'></script>
</head>
<body>";
$IP = $_SERVER['REMOTE_ADDR'];
if(file_exists('ipbans/'.$IP))
{
echo('<b><font color=red size=+1>Your IP has been banned, there is no way around this.');
exit;
}
echo"
<div id='container'>
<div id='top'> Registration Page</div>
<div id='banner'></div>
<div id='colortab' class='ddcolortabs'>
<ul id='nav'>    
<li><a href='index.html' id='home'><span><img src='i/nav_homee_roll.jpg' alt='' /></span></a></li>
<li><a href='reg.html' id='community'><span><img src='i/nav_community_roll.jpg' alt='' /></span></a></li>
<li><a href='story.html' id='standings'><span><img src='i/nav_standings_roll.jpg' alt='' /></span></a></li>
<li><span class='Apple-tab-span' style='white-space: pre'>    </span> </li>
<li><br />
</li>
<li><br />
</li></ul></div>
<div id='left'>
<div class='content'></div>
<div class='black_bar'>Registration Form</div>
<div class='content'>
<p><font face='wp_bogus_font' size='3'></font></p>
<center>
<h2>Registration Form</h2>";
global $c;
if($_POST['username'])
{
$sm=100;
if($_POST['promo'] == 'country wars')
{
$sm+=100;
}
$username=$_POST['username'];
$username=str_replace(array("<", ">"), array("<", ">"), $username);
$q=$db->query("SELECT * FROM users WHERE username='{$username}'",$c);
if($db->num_rows($q))
{
print "Username already in use. Choose another.";
}
else if($_POST['password'] != $_POST['cpassword'])
{
print "The passwords did not match, go back and try again.";
}
else
{
$_POST['ref'] = abs(@intval($_POST['ref']));
$q=$db->query("SELECT * FROM users WHERE lastip='$IP' AND userid={$_POST['ref']}",$c);
if($db->num_rows($q))
{
die("Registration Error");
}
if($_POST['ref']) {
$q=$db->query("SELECT * FROM users WHERE userid={$_POST['ref']}",$c);
$r=$db->fetch_row($q);
}
$db->query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')");
$i=$db->insert_id();
$db->query("INSERT INTO userstats VALUES($i, 10, 10, 10, 10, 10)");
if($_POST['ref']) {
$db->query("UPDATE users SET crystals=crystals+2 WHERE userid={$_POST['ref']}",$c);
event_add($_POST['ref'],"For refering $username to the game, you have earnt 2 valuable crystals!",$c);
$db->query("INSERT INTO referals VALUES('', {$_POST['ref']}, $i, unix_timestamp(),'{$r['lastip']}','$ip')", $c);
}
print "You have signed up, enjoy the game.<br>
<a href='login.php'>Login</a>";
}
}
else
{
echo "
<form id='Register' action='reg.php' method='POST' runat='vdaemon' disablebuttons='ll'><font face='wp_bogus_font' size='3'>
<table cellpadding='2' cellspacing='0' border='0'>
<tbody>
<tr>
<td width='130'>
<vllabel validators='UserID,UserIDExist' errclass='error' for='UserID' cerrclass='controlerror'>Username:</vllabel> </td>
<td width='140'> <input style='background-color: #000000; color: #FFFFFF' name='UserID' type='text' class='control' id='UserID' size='15' />
<vlvalidator name='UserID' type='required' control='UserID' errmsg='User ID required'>
<vlvalidator name='UserIDExist' type='custom' control='UserID' errmsg='User ID already exist' function='UserIDCheck'> </vlvalidator></vlvalidator></td>
<td width='300' rowspan='7' valign='top'></td></tr>
<tr>
<td>
<vllabel errclass='error' validators='Password,PassCmp' for='Password' cerrclass='controlerror'>Password:</vllabel> </td>
<td> <input style='background-color: #000000; color: #FFFFFF' name='Password' type='password' class='control' id='Password' size='15' />
<vlvalidator type='required' name='Password' control='Password' errmsg='Password required'>
<vlvalidator name='PassCmp' type='compare' control='Password' comparecontrol='Password2' operator='e' validtype='string' errmsg='Both Password fields must be equal'> </vlvalidator></vlvalidator></td> </tr>
<tr>
<td>
<vllabel validators='Password,PassCmp' errclass='error' for='Password2' cerrclass='controlerror'>Confirm Password:</vllabel> </td>
<td> <input style='background-color: #000000; color: #FFFFFF' name='Password2' type='password' class='control' id='Password2' size='15' /> </td> </tr>
<tr>
<td></td>
<td></td></tr>
<tr>
<td>
<vllabel errclass='error' validators='EmailReq,Email' for='Email' cerrclass='controlerror'>E-mail:</vllabel> </td>
<td> <input style='background-color: #000000; color: #FFFFFF' name='Email' type='text' class='control' id='Email' size='15' />
<vlvalidator type='required' name='EmailReq' control='Email' errmsg='E-mail required'>
<vlvalidator type='format' format='email' name='Email' control='Email' errmsg='Invalid E-mail'> </vlvalidator></vlvalidator></td> </tr>
<tr>";
if($_GET['REF']) { print $_GET['REF']; }
print ">
<td colspan='2'> <input style='background-color: #000000; color: #FFFFFF' type='submit' class='control' value='Register' /> <input style='background-color: #000000; color: #FFFFFF' type='reset' class='control' value='Reset' /> </td> </tr> </tbody></table> <br />
</font></form>
<p> </p></center><font face='wp_bogus_font' size='3'><br />
</font><font size='3' face='wp_bogus_font'></font></div></div>
echo '<div id='right'>
<div class='right_head'> <span class='Apple-tab-span' style='white-space: pre'>            </span>What You Can Do</div>
<ul class='right_list'>
<li class='light'>Earn Money</li>
<li class='dark'>Buy Weapons / Armor</li>
<li class='light'>Fight</li>
<li class='light'>Do Missions</li>
<li class='light'>Create a Gang</li>
<li class='dark'>Gang Wars</li>
<li class='light'>Enter The Hall Of Fame</li></ul>
<div class='right_head'> <span class='Apple-tab-span' style='white-space: pre'>                </span>Top Players</div>
<ul class='right_list'>
<li class='light'>      </li>
<li class='dark'><br />
</li>
<li class='light'><br />
</li>
<li class='dark'><br />
</li>
<li class='light'><br />
</li>
<li class='dark'><br />
</li>
<li class='light'><br />
</li></ul><br />
</div>
<div class='clear'></div>
<div id='footer'><br />
<br />
<center>Copyright Goes here</center></div></div>
</body>
</html>";
?>

thats my register game code ??? what have i done wrong......

this error shows up :

Parse error: syntax error, unexpected $end in /home/adrpg/public_html/reg.php on line 183
Posted

looks very great :D only weird thing i saw was when i registered when it was done.. the right bar.. went to the center.. but everything else is just great i would love to use it :)

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