shinobi Posted April 25, 2011 Share Posted April 25, 2011 (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 April 26, 2011 by shinobi Quote Link to comment Share on other sites More sharing options...
a_bertrand Posted April 25, 2011 Share Posted April 25, 2011 Not bad, just why did you changed font for the username / password? Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 25, 2011 Share Posted April 25, 2011 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 Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 25, 2011 Author Share Posted April 25, 2011 Thanks I'm Not Really Good With Styling Login's But ill give it a go and post it agaain :) thanks @ AB and ruler of zu Quote Link to comment Share on other sites More sharing options...
Djkanna Posted April 25, 2011 Share Posted April 25, 2011 Not bad, show us when you're finished with it, but so far so good. :) Quote Link to comment Share on other sites More sharing options...
realmoflegends Posted April 25, 2011 Share Posted April 25, 2011 Very nice! Wish I could buy the basic version of it (if its for sale) when you're done. Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 25, 2011 Share Posted April 25, 2011 I'm Not Really Good With Styling Login's But ill give it a go and post it agaain :) thanks @ AB and ruler of zu Google css forms and you can style your form in numerous ways Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 25, 2011 Author Share Posted April 25, 2011 hey i tried to style it with html :) check it out :) Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 25, 2011 Share Posted April 25, 2011 Yeah much better. Lose the purple though! Its really easy to style with css have a look and give it a go! Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 25, 2011 Author Share Posted April 25, 2011 navigation! Check out my navigation bar :) taking any advise on it Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 25, 2011 Share Posted April 25, 2011 Unable to login. Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 25, 2011 Author Share Posted April 25, 2011 html its not php yet :P Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 25, 2011 Share Posted April 25, 2011 Ah I thought you meant navigation inside after login. The home button works looks ok. Register does not. Quote Link to comment Share on other sites More sharing options...
Lilith Posted April 25, 2011 Share Posted April 25, 2011 (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 April 26, 2011 by Lilith Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 25, 2011 Author Share Posted April 25, 2011 :) lol @ lilith ill make my next one mainly blue for you :P Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 25, 2011 Author Share Posted April 25, 2011 (edited) Managed to Connect login to the game :) i'll do register page tommorow and also ill design in-game on PS Edited April 25, 2011 by shinobi Quote Link to comment Share on other sites More sharing options...
Lilith Posted April 26, 2011 Share Posted April 26, 2011 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. Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 26, 2011 Author Share Posted April 26, 2011 <?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 Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 26, 2011 Share Posted April 26, 2011 Usually means a missing } go count your curlies :D Quote Link to comment Share on other sites More sharing options...
Diesl Posted April 26, 2011 Share Posted April 26, 2011 on line 153, you are using echo ' (single quote rather than double quotes) change to echo " Quote Link to comment Share on other sites More sharing options...
rulerofzu Posted April 26, 2011 Share Posted April 26, 2011 Didnt actually have time to look when I posted earlier. Diesl is correct however line 146 you opened a print " and then did a echo ' underneath. Delete the echo ' Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 26, 2011 Author Share Posted April 26, 2011 thanks :) its fixed now ... so the registration is complete now for the in-game :) Quote Link to comment Share on other sites More sharing options...
shinobi Posted April 26, 2011 Author Share Posted April 26, 2011 All Done :P Quote Link to comment Share on other sites More sharing options...
H4x0r666 Posted April 28, 2011 Share Posted April 28, 2011 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 :) Quote Link to comment Share on other sites More sharing options...
Blade Maker Posted April 28, 2011 Share Posted April 28, 2011 This is a template he did NOT create, look here: http://makewebgames.io/showthread.php/39247-Full-Coded-Layout-Make-You-Offer?p=253462#post253462 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.