Cronwerks MCCode/MCCodes Forums

Please login or register.

Login with username, password and session length

News:

Register your account to receive email notifications when new services and mods are added.


This forum is now closed and has moved to a new location! Click here to find out why.

AuthorTopic: Login.php template  (Read 3888 times)

wrx

  • Basic Member
  • *
  • Reputation Power: 2
  • wrx has no influence.
  • Offline Offline
  • Posts: 5
    • View Profile
Login.php template
« on: January 16, 2010, 06:25:27 AM »
Working on a few new layouts would some constructive criticism . Its mainly CSS driven with only a few images.


« Last Edit: January 17, 2010, 12:14:33 AM by wrx »
Logged

Marzy

  • Basic Member
  • *
  • Reputation Power: 6
  • Marzy has no influence.
  • Offline Offline
  • Posts: 7
    • View Profile
    • Email
Re: New Layout suggestions
« Reply #1 on: January 16, 2010, 08:09:30 PM »
I like it...

Well done!
Logged

wrx

  • Basic Member
  • *
  • Reputation Power: 2
  • wrx has no influence.
  • Offline Offline
  • Posts: 5
    • View Profile
Re: New Layout suggestions
« Reply #2 on: January 17, 2010, 12:03:45 AM »
Decided to use something else here's the code if anyone wants.I added display top users under Login in form not shown in above pic but same style.If anyone wants a custom logo to go with this just ask and ill make one up...

login.php
Code: [Select]
<?php
/*-----------------------------------------------------
-- # Created by wrx 1/15/2010
-- # This file is Creative Commons Attribution-Share Alike 3.0
-- # Attribution — You must attribute the work in the manner specified by the author or licensor 
     (but not in any way that suggests that they endorse you or your use of the work).
   # Share Alike — If you alter, transform, or build upon this work, you may distribute the 
     resulting work only under the same, similar or a compatible license.
-- # Filename : login.php
-----------------------------------------------------*/
session_start();
require 
"global_func.php";
require 
"mysql.php";

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>Game Title</title>
<link href='style.css' rel='stylesheet' type='text/css' />
</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.</font></b></body></html>");
$h->endpage();
exit;
}
echo 
"
<div id='topPan'>
  <div id='topHeaderPan'>
    <ul>
      <li class='company'><a href=''>News</a></li>
      <li class='company'><a href=''>Legal</a></li>
      <li class='company'><a href=''>Privacy Policy</a></li>
      <li class='company'><a href=''></a></li>
    </ul>
    <a href=''><img src='t1_images/logo.jpg' title='Game Title' alt='Game Title' width='191' height='84' border='0' /></a> </div>
  <div id='toprightPan'>
    <ul>
      <li class='home'>Home</li>
      <li class='about'><a href=''>Story</a></li>
      <li class='contact'><a href=''>Contact</a></li>
    </ul>
  </div>
</div>
<div id='bodyPan'>
  <div id='bodyleftPan'>
  <br /><br />
    <p class='greentext'>Game Description</p>
    <p>Game information and description more information here
information and description more information here information and description more information here
information and description more information here information and description more information here
information and description more information here information and description more information here</p>
  
  </div>
  <div id='bodyrightPan'>
    <div id='loginPan'>
      <h2>Ballers <span> Login</span></h2>
      <form action=authenticate.php method=post name=login>
        <label>Baller ID:</label>
        <input name='username' type='text' id='username' />
        <label>Password:</label>
        <input name='password' type='password' id='password' />
        <input name='Input' type='submit' class='button' value='Login' />
      </form>
      <ul>
        <li class='nonregister'>Not a baller &nbsp;?</li>
        <li class='register'><a href='register.php'>Resister now</a> </li>
      </ul>
    </div>
    <div id='loginBottomPan'>&nbsp;</div>
       "
;
   //////Start Top Users/////////////
       
echo "<div id='servicesPan'>&nbsp;</div><div id='servicesBodyPan'><b class='greentext'> &nbsp; &nbsp; Top Users :</b>";
          
$utop=mysql_query("SELECT * FROM users ORDER BY level DESC LIMIT 0"); /* ORDER BY 'level' is default,change to your desired order pref.. Set LIMIT to number of top users to display ex : LIMIT 5 */
       
echo "<table align='center' width='90%'><tr class='coltext'><td><b class='coltext'>Username</b></td><td><b class='coltext'>Level</b></td></tr>";
          while(
$r=mysql_fetch_array($utop))
          {
       echo 
"<tr><td><img src=t1_images/user.png>".htmlentities(stripslashes($r['username']))."</td><td>".abs(intval($r['level']))."</td></tr>";
          }
       echo 
"</table></div><div id='servicesBottomPan'>&nbsp;</div>";
       
//////End Top Users///////////////
echo "
  </div>
</div>
<div id='footermainPan'>
  <div id='footerPan'>
    <ul>
      <li><a href=''>Home</a>| </li>
      <li><a href=''>Privacy Policy</a>| </li>
      <li><a href=''>Legal</a> | </li>
      <li><a href=''>Register</a> |</li>
      <li><a href=''>Contact</a> </li>
    </ul>
    "
;
     
/////////////Online Users/////////////
       
$numb mysql_num_rows(mysql_query("SELECT userid FROM users"));
    echo 
"<p class='onlineusers'> There are: ".number_format($numb)." registered users";
       
$online mysql_num_rows(mysql_query("SELECT userid FROM users WHERE laston>(unix_timestamp()-15*60)"));
    echo 
"    |  There are ".number_format($online)." users online</p>";
 ///////////End Online Users///////////
  
 
echo" <p class='copyright'>Creative Commons Attribution-Share Alike 3.0</p>
  </div>
</div>
</body>
</html>
"
;


style.css
Code: [Select]
/*-----------------------------------------------------
-- # Created by wrx 1/15/2010
-- # This file is Creative Commons Attribution-Share Alike 3.0
-- # Attribution — You must attribute the work in the manner specified by the author or licensor
     (but not in any way that suggests that they endorse you or your use of the work).
   # Share Alike — If you alter, transform, or build upon this work, you may distribute the
     resulting work only under the same, similar or a compatible license.
-- # Filename : style.css
-----------------------------------------------------*/

body{padding:0px; margin:0px; background:url(t1_images/mainbg.gif) 0 0 repeat-x #fff; color:#333333; font:14px/18px Arial, Helvetica, sans-serif;}
div, p, ul, h1, h2, h3, form, img{padding:0px; margin:0px;}
ul{list-style-type:none;}

a{background:#333333; color:#fff; text-decoration:none;}
a:hover{background:#333333; color:#fff; text-decoration:underline;}


#topPan{width:748px; height:231px; position:relative; margin:0 auto;}

#topHeaderPan {width:332px; height:231px; background:url(t1_images/header.jpg) 0 100% no-repeat; position:relative;}
#topHeaderPan img{width:191px; height:84px; display:block; position:absolute; top:120px; left:0px;}
#topHeaderPan ul{width:298px; height:59px; position:absolute; top:31px; left:0px; padding:0px;}
#topHeaderPan ul li{width:74px; height:59px; background:url(t1_images/menu-div.gif) 100% 0 no-repeat; float:left;}
#topHeaderPan ul li a{width:73px; height:59px; display:block; background:url(t1_images/topmenubg.gif) 0 0 repeat-x #fff; color:#333333; text-align:center; font-size:13px; font-weight:bold; line-height:59px;}
#topHeaderPan ul li a:hover{width:73px; height:59px; background:url(t1_images/topleftmenu-hover.gif) 50% 100% no-repeat; text-decoration:none;}
#topHeaderPan ul li.company{width:74px; height:59px; background:url(t1_images/company-bg.gif) 0 0 no-repeat; text-decoration:none; text-align:center; line-height:59px;}
#topHeaderPan ul li.client{width:74px; height:59px; background:none; float:left;}

#toprightPan{width:417px; height:218px; background:url(t1_images/rightsidebg.jpg) 0 0 no-repeat; position:absolute; top:13px; right:0px;}
#toprightPan ul{width:320px; height:49px; display:block; margin:16px 0 0 16px;}
#toprightPan ul li{width:104px; height:49px; border-right:1px dashed #C1B79A; float:left;}
#toprightPan ul li.home{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(t1_images/icon1.gif) 50% 0 no-repeat #fff; color:#333333; padding:29px 0 0;}

#toprightPan ul li.about{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(t1_images/icon2-normal.gif) 50% 0 no-repeat #fff; color:#333333; padding:29px 0 0; text-decoration:none;}
#toprightPan ul li.about a{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(t1_images/icon2-normal.gif) 50% 0 no-repeat #fff; color:#333333; padding:29px 0 0; text-decoration:none;}
#toprightPan ul li.about a:hover{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(t1_images/icon2-hover.gif) 50% 0 no-repeat #fff; color:#993300; padding:29px 0 0; text-decoration:none;}

#toprightPan ul li.contact{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(t1_images/icon3-normal.gif) 50% 0 no-repeat #fff; color:#333333; padding:29px 0 0; text-decoration:none;}
#toprightPan ul li.contact a{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(t1_images/icon3-normal.gif) 50% 0 no-repeat #fff; color:#333333; padding:29px 0 0; text-decoration:none;}
#toprightPan ul li.contact a:hover{width:104px; height:20px; font-size:13px; font-weight:bold; text-align:center; background:url(t1_images/icon3-hover.gif) 50% 0 no-repeat #fff; color:#993300; padding:29px 0 0; text-decoration:none;}


/*----/TOP PANEL----*/

/*----BODY PANEL----*/
#bodyPan{width:748px; position:relative; margin:0 auto;}
/*----BODY LEFT PANEL----*/
#bodyleftPan{width:331px; float:left;}
#bodyleftPan h2{width:196px; height:30px; font:30px/30px Georgia, "Times New Roman", Times, serif; background:#fff; color:#333333; margin:43px 0 0;}
#bodyleftPan h3{width:196px; height:30px; font:30px/30px Georgia, "Times New Roman", Times, serif; background:#fff; color:#333333; margin:20px 0 0;}


#bodyleftPan p{padding:14px 28px 0 0;}
#bodyleftPan p.greentext{background:#fff; color:#993300; font-size:16px; font-weight:bold; padding:14px 0 0;}
#bodyleftPan p.browntext{background:#fff; color:#333333; font-size:24px; padding:10px 0 0;}

#bodyleftPan ul{width:270px; height:24px; margin:20px 0 0;}
#bodyleftPan ul li{width:118px; height:24px; float:left; margin:0 5px 0 0;}
#bodyleftPan ul li.more{width:118px; height:24px; float:left;}

/*----/BODY LEFT PANEL----*/
/*----BODY RIGHT PANEL----*/
#bodyrightPan{width:359px; float:left;}
/*----Login Panel----*/
#loginPan{width:359px; height:199px; background:url(t1_images/formbg.gif) 0 0 repeat-y;}
#loginPan h2{width:230px; height:81px; display:block; background:url(t1_images/icon.gif) 0 50% no-repeat #fff; color:#333333; font:30px/80px Georgia, "Times New Roman", Times, serif; padding:0 0 0 64px; margin:0 0 0 18px;}
#loginPan h2 span{background:#fff; color:#993300;}

#loginPan form{width:321px; height:76px; background:#FCF6E6; color:#705D20; position:relative; border:1px dashed #BFB492; margin:0 0 0 18px; padding:6px 0 0;}
#loginPan form label{width:91px; height:22px; display:block; float:left; padding: 0 0 0 20px; margin:9px 0 0;}
#loginPan form input{width:130px; height:18px; font-size:12px; display:block; float:left; margin:9px 12px 0 0;}

#loginPan form input.button{width:49px; height:52px; display:block; position:absolute; top:6px; right:16px; background:url(t1_images/button.gif) 0 0 no-repeat #FCF6E6; border:none; color:#fff; margin:9px 0 0; font:16px/52px Georgia, "Times New Roman", Times, serif; text-align:center; padding:0px;}

#loginPan ul{width:323px; height:25px; margin:6px 0 0 18px;}
#loginPan ul li{width:166px; height:25px; float:left;}
#loginPan ul li.nonregister{width:156px; height:25px; float:left; background:url(t1_images/not-memberbg.gif) 0 0 no-repeat #FEFEFE; color:#fff; font-weight:bold; line-height:25px; text-align:center;}
#loginPan ul li.register{width:165px; height:25px; float:left; background:url(t1_images/new-registerbg.gif) 0 0 no-repeat #FEFEFE; color:#fff; font-weight:bold; line-height:25px; margin:0 0 0 1px;}
#loginPan ul li.register a{width:141px; height:25px; display:block; background:url(t1_images/arrow1.gif) 95% 60% no-repeat; text-decoration:none; padding:0 0 0 25px;}
#loginPan ul li.register a:hover{background:url(t1_images/arrow2.gif) 95% 60% no-repeat; text-decoration:none;}
/*----/Login Panel----*/
#bodyrightPan p.hours{width:323px; height:83px; margin:33px 0 33px 18px;}
#bodyrightPan p.hours a{width:323px; height:83px; display:block; background:url(t1_images/24hours.gif) 0 0; text-indent:-2000px;}
#bodyrightPan p.hours a:hover{width:323px; height:83px; background:url(t1_images/24hours.gif) 0 0; text-indent:-2000px;}
/*----Login Panel----*/
#loginBottomPan{width:359px; height:25px; background:url(t1_images/form-bottombg.gif) 0 0 no-repeat;}

/*----/Login Panel----*/
/*----Top Users Panel----*/
#servicesBodyPan b.coltext{ color:#ffffff; font-weight:normal; line-height:20px; text-align:left;}
#servicesBodyPan tr.coltext{ background: #333333; color:#ffffff; font-weight:normal; line-height:20px; text-align:left;}

#servicesPan{width:359px; height:21px; background:url(t1_images/servicestop-bg.gif) 0 0 no-repeat;}
#servicesBodyPan{width:359px; background:url(t1_images/servicesbody-bg.gif) 0 0 repeat-y;}
#servicesBodyPan p{padding:10px 25px 0 34px;}
#servicesBodyPan p.services{width:140px; height:60px; font:30px/60px Georgia, "Times New Roman", Times, serif; background:#fff; color:#006EA6; margin:0 0 0 34px; padding:0px;}
#servicesBodyPan p.boldbrowntext{font-size:16px; font-weight:bold; padding:4px 25px 0 34px;}
#servicesBodyPan p.bluetext{background:url(t1_images/servicesbody-bg.gif) 0 0 repeat-y #fff; color:#333333; font-size:15px; font-style:italic;}
#servicesBodyPan p.largebrowntext{font-size:30px; padding:10px 25px 10px 34px;}
#servicesBodyPan b.greentext{background:url(t1_images/servicesbody-bg.gif) 0 0 repeat-y #fff; color:#993300; font-size:16px; font-weight:bold; padding:14px 0 0;}
#servicesBodyPan p.link{width:289px; height:23px; background:#FCF6E6; color:#705D20; margin:0 36px ; padding:0px;}
#servicesBodyPan p.link a{width:289px; height:23px; display:block; background:#FCF6E6; color:#705D20; line-height:23px; text-decoration:none; text-align:center;}
#servicesBodyPan p.link a:hover{width:289px; height:23px; background:#F9E09F; color:#705D20; text-align:center; text-decoration:none;}

#servicesBottomPan{width:359px; height:25px; background:url(t1_images/form-bottombg.gif) 0 0 no-repeat; padding:10px 0 0;}
/*----/Top Users Panel----*/
/*----FOOTER PANEL----*/
#footermainPan{height:80px; background:url(t1_images/footerbg.gif) 0 0 repeat-x #333333; color:#fff; font:12px/22px "Trebuchet MS",Arial, Helvetica, sans-serif; clear:both; padding:72px 0 0;}
#footerPan{width:748px; position:relative; margin:0 auto;}

#footerPan ul{width:748px; position:absolute; top:0px; left:0px;}
#footerPan li{float:left; }
#footerPan ul li a{padding:0 10px 0; color:#fff; background: url(t1_images/footermenubg.gif) 0 0 repeat-x #333333; text-decoration:none;}
#footerPan ul li a:hover{text-decoration:underline;}
#footerPan p.onlineusers{width:auto; background: 0 0 repeat-x #333333; color:#fff; position:absolute; top:23px; left:10px;}
#footerPan p.copyright{width:auto; background: 0 0 repeat-x #333333; color:#fff; position:absolute; top:43px; left:10px;}


Images and CC License
Baller.rar
« Last Edit: January 17, 2010, 12:09:12 AM by wrx »
Logged

wrx

  • Basic Member
  • *
  • Reputation Power: 2
  • wrx has no influence.
  • Offline Offline
  • Posts: 5
    • View Profile
Re: New Layout suggestions
« Reply #3 on: January 17, 2010, 12:04:52 AM »
Logged

Benny Bwoi

  • Basic Member
  • *
  • Reputation Power: 0
  • Benny Bwoi has no influence.
  • Offline Offline
  • Posts: 1
    • View Profile
    • Email
Re: Login.php template
« Reply #4 on: January 17, 2010, 02:04:48 PM »
very nice :)
Logged

Hitman 15

  • Basic Member
  • *
  • Reputation Power: 8
  • Hitman 15 has no influence.
  • Offline Offline
  • Posts: 34
    • View Profile
Re: Login.php template
« Reply #5 on: January 17, 2010, 04:48:54 PM »
i like your style working with v1  :)
Logged

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Login.php template
« Reply #6 on: January 18, 2010, 10:13:54 AM »
Lol, how do you know its for V1?
Logged
Project Choosen - 10%
Daniel - Hanson . Com

JoshuaDams

  • Active Member
  • **
  • Reputation Power: 129
  • JoshuaDams is working their way up.JoshuaDams is working their way up.JoshuaDams is working their way up.
  • Offline Offline
  • Posts: 240
    • MSN Messenger - immortalthug4ever@hotmail.com
    • View Profile
    • WWW
Re: Login.php template
« Reply #7 on: January 18, 2010, 12:41:32 PM »


Quote
Lol, how do you know its for V1?


Quote
require "global_func.php";
require "mysql.php";

I think that's how ^_-

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Login.php template
« Reply #8 on: January 18, 2010, 01:04:37 PM »
global_func isnt needed -.-
Logged
Project Choosen - 10%
Daniel - Hanson . Com

Marzy

  • Basic Member
  • *
  • Reputation Power: 6
  • Marzy has no influence.
  • Offline Offline
  • Posts: 7
    • View Profile
    • Email
Re: Login.php template
« Reply #9 on: January 20, 2010, 01:31:52 AM »
This works for V2

login.php
Code: [Select]
<?php
/*-----------------------------------------------------
-- # Created by wrx 1/15/2010
-- # This file is Creative Commons Attribution-Share Alike 3.0
-- # Attribution &#38;#8212; You must attribute the work in the manner specified by the author or licensor 
     (but not in any way that suggests that they endorse you or your use of the work).
   # Share Alike &#38;#8212; If you alter, transform, or build upon this work, you may distribute the 
     resulting work only under the same, similar or a compatible license.
-- # Filename : login.php
-----------------------------------------------------*/
session_start();
include 
"config.php";

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>{$set['game_name']}</title>
<link href='style.css' rel='stylesheet' type='text/css' />
</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.</font></b></body></html>");
$h->endpage();
exit;
}
echo 
"
<div id='topPan'>
  <div id='topHeaderPan'>
    <ul>
      <li class='company'><a href=''>News</a></li>
      <li class='company'><a href=''>Legal</a></li>
      <li class='company'><a href=''>Privacy Policy</a></li>
      <li class='company'><a href=''></a></li>
    </ul>
    <a href=''><img src='t1_images/logo.jpg' title='Game Title' alt='Game Title' width='191' height='84' border='0' /></a> </div>
  <div id='toprightPan'>
    <ul>
      <li class='home'>Home</li>
      <li class='about'><a href=''>Story</a></li>
      <li class='contact'><a href=''>Contact</a></li>
    </ul>
  </div>
</div>
<div id='bodyPan'>
  <div id='bodyleftPan'>
  <br /><br />
    <p class='greentext'>Game Description</p>
    <p>Game information and description more information here
information and description more information here information and description more information here
information and description more information here information and description more information here
information and description more information here information and description more information here</p>
  
  </div>
  <div id='bodyrightPan'>
    <div id='loginPan'>
      <h2>Ballers <span> Login</span></h2>
      <form action=authenticate.php method=post name=login>
        <label>Baller ID:</label>
        <input name='username' type='text' id='username' />
        <label>Password:</label>
        <input name='password' type='password' id='password' />
        <input name='Input' type='submit' class='button' value='Login' />
      </form>
      <ul>
        <li class='nonregister'>Not a baller &nbsp;?</li>
        <li class='register'><a href='register.php'>Resister now</a> </li>
      </ul>
    </div>
    <div id='loginBottomPan'>&nbsp;</div>
       "
;
   //////Start Top Users/////////////
       
echo "<div id='servicesPan'>&nbsp;</div><div id='servicesBodyPan'><b class='greentext'> &nbsp; &nbsp; Top Users :</b>";
          
$utop=mysql_query("SELECT * FROM users ORDER BY level DESC LIMIT 0"); /* ORDER BY 'level' is default,change to your desired order pref.. Set LIMIT to number of top users to display ex : LIMIT 5 */
       
echo "<table align='center' width='90%'><tr class='coltext'><td><b class='coltext'>Username</b></td><td><b class='coltext'>Level</b></td></tr>";
          while(
$r=mysql_fetch_array($utop))
          {
       echo 
"<tr><td><img src=t1_images/user.png>".htmlentities(stripslashes($r['username']))."</td><td>".abs(intval($r['level']))."</td></tr>";
          }
       echo 
"</table></div><div id='servicesBottomPan'>&nbsp;</div>";
       
//////End Top Users///////////////
echo "
  </div>
</div>
<div id='footermainPan'>
  <div id='footerPan'>
    <ul>
      <li><a href=''>Home</a>| </li>
      <li><a href=''>Privacy Policy</a>| </li>
      <li><a href=''>Legal</a> | </li>
      <li><a href=''>Register</a> |</li>
      <li><a href=''>Contact</a> </li>
    </ul>
    "
;
     
/////////////Online Users/////////////
       
$numb mysql_num_rows(mysql_query("SELECT userid FROM users"));
    echo 
"<p class='onlineusers'> There are: ".number_format($numb)." registered users";
       
$online mysql_num_rows(mysql_query("SELECT userid FROM users WHERE laston>(unix_timestamp()-15*60)"));
    echo 
"    |  There are ".number_format($online)." users online</p>";
 ///////////End Online Users///////////
  
 
echo" <p class='copyright'>Creative Commons Attribution-Share Alike 3.0</p>
  </div>
</div>
</body>
</html>
"
;

I changed the login around to become your other pages...IE: story
To use it on the other pages just change the name/s

Create
story.php
Code: [Select]
<?php
/*-----------------------------------------------------
-- # Login Template Created by wrx 1/15/2010
-- # Edited to story.php by Marzy 21/01/2010
-- # This file is Creative Commons Attribution-Share Alike 3.0
-- # Attribution &#38;#38;#8212; You must attribute the work in the manner specified by the author or licensor 
     (but not in any way that suggests that they endorse you or your use of the work).
   # Share Alike &#38;#38;#8212; If you alter, transform, or build upon this work, you may distribute the 
     resulting work only under the same, similar or a compatible license.
-- # Filename : story.php
-----------------------------------------------------*/
session_start();
include 
"config.php";

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>{$set['game_name']}</title>
<link href='style.css' rel='stylesheet' type='text/css' />
</head>
<body>
"
;
$IP $_SERVER['REMOTE_ADDR'];

echo 
"
<div id='topPan'>
  <div id='topHeaderPan'>
    <ul>
      <li class='company'><a href=''>News</a></li>
      <li class='company'><a href=''>Legal</a></li>
      <li class='company'><a href=''>Privacy Policy</a></li>
      <li class='company'><a href=''></a></li>
    </ul>
    <a href=''><img src='t1_images/logo.jpg' title='Game Title' alt='Game Title' width='300' height='200' border='0' /></a> </div>
  <div id='toprightPan'>
    <ul>
      <li class='home'><a href='login.php'>Home</li>
      <li class='about'><a href='story.php'>Story</a></li>
      <li class='contact'><a href=''>Contact</a></li>
    </ul>
  </div>
</div>
<div id='bodyPan'>
  <div id='bodycenterPan'>
  <br /><br />
    <center><p class='greentext'><img src='t1_images/story.jpg'></p>
    </ br>Story line here soon!     </ center>"
;

echo 
"
  </div>
</div>
<div id='footermainPan'>
  <div id='footerPan'>
    <ul>
      <li><a href=''>Home</a>| </li>
      <li><a href=''>Privacy Policy</a>| </li>
      <li><a href=''>Legal</a> | </li>
      <li><a href=''>Register</a> |</li>
      <li><a href=''>Contact</a> </li>
    </ul>
    "
;
     
/////////////Online Users/////////////
       
$numb mysql_num_rows(mysql_query("SELECT userid FROM users"));
    echo 
"<p class='onlineusers'> There are: ".number_format($numb)." registered users";
       
$online mysql_num_rows(mysql_query("SELECT userid FROM users WHERE laston>(unix_timestamp()-15*60)"));
    echo 
"    |  There are ".number_format($online)." users online</p>";
 ///////////End Online Users///////////
  
 
echo" <p class='copyright'>Creative Commons Attribution-Share Alike 3.0</p>
  </div>
</div>
</body>
</html>
"
;

contact.php
Code: [Select]
<?php
/*-----------------------------------------------------
-- # Login Template Created by wrx 1/15/2010
-- # Edited to contact.php by Marzy 21/01/2010
-- # This file is Creative Commons Attribution-Share Alike 3.0
-- # Attribution &#38;#38;#8212; You must attribute the work in the manner specified by the author or licensor 
     (but not in any way that suggests that they endorse you or your use of the work).
   # Share Alike &#38;#38;#8212; If you alter, transform, or build upon this work, you may distribute the 
     resulting work only under the same, similar or a compatible license.
-- # Filename : contact.php
-----------------------------------------------------*/
session_start();
include 
"config.php";

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>{$set['game_name']}</title>
<link href='style.css' rel='stylesheet' type='text/css' />
</head>
<body>
"
;
$IP $_SERVER['REMOTE_ADDR'];

echo 
"
<div id='topPan'>
  <div id='topHeaderPan'>
    <ul>
      <li class='company'><a href=''>News</a></li>
      <li class='company'><a href='legal.php'>Legal</a></li>
      <li class='company'><a href='privacy.php'>Privacy Policy</a></li>
      <li class='company'><a href=''></a></li>
    </ul>
    <a href=''><img src='t1_images/logo.jpg' title='Game Title' alt='Game Title' width='300' height='200' border='0' /></a> </div>
  <div id='toprightPan'>
    <ul>
      <li class='home'><a href='login.php'>Home</li>
      <li class='about'><a href='story.php'>Story</a></li>
      <li class='contact'><a href='contact.php'>Contact</a></li>
    </ul>
  </div>
</div>
<div id='bodyPan'>
  <div id='bodycenterPan'>
  <br /><br />
    <center><p class='greentext'><img src='t1_images/contact.jpg'><p>PLEASE NOTE: The contact form below opens your email client...</p>"
;


echo 
"<fieldset><legend><font color=black>Contact Form</font></legend><center>
<form method=post action='mailto:admin@yoursite.com' enctype='text/plain'>
 <table border=0 width=50% class=table>
  <tr>
   <td>Your Name:</td><td><input type= 'text' name= 'name'></td><tr>
   <td>Your Email:</td><td><input type= 'text' name= 'email'></td><tr>
   <td>Subject:</td><td>
    <select name= 'subject'>
     <option value='Account Enquiry'>Account Enquiry</option>
     <option value='Website Problems'>Website Problems</option>
     <option value='Advertising Plan'>Advertising Plan</option>
     <option selected>Select a Option</option>
    </select>
   </td><tr>
   <td colspan=2>Your Message:</td><tr>
   <td colspan=2><textarea name='message' rows='10' cols='50'></textarea></td><tr>
   <td colspan=2><input type='submit' value='Submit'></td>
  </table>
</form>"
;

///end of contact form

echo "
  </div>
</div>
<div id='footermainPan'>
  <div id='footerPan'>
    <ul>
      <li><a href=''>Home</a>| </li>
      <li><a href=''>Privacy Policy</a>| </li>
      <li><a href=''>Legal</a> | </li>
      <li><a href=''>Register</a> |</li>
      <li><a href=''>Contact</a> </li>
    </ul>
    "
;
     
/////////////Online Users/////////////
       
$numb mysql_num_rows(mysql_query("SELECT userid FROM users"));
    echo 
"<p class='onlineusers'> There are: ".number_format($numb)." registered users";
       
$online mysql_num_rows(mysql_query("SELECT userid FROM users WHERE laston>(unix_timestamp()-15*60)"));
    echo 
"    |  There are ".number_format($online)." users online</p>";
 ///////////End Online Users///////////
  
 
echo" <p class='copyright'>Creative Commons Attribution-Share Alike 3.0</p>
  </div>
</div>
</body>
</html>
"
;

Use this image below or create your own
« Last Edit: January 20, 2010, 11:53:30 PM by Marzy »
Logged

Danny696

  • Senior Member
  • ****
  • Reputation Power: 317
  • Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.Danny696 is a force to reckon with.
  • Offline Offline
  • Posts: 540
    • View Profile
    • WWW
Re: Login.php template
« Reply #10 on: January 21, 2010, 01:32:03 PM »
story.php $IP = $_SERVER['REMOTE_ADDR']; not needed
contact.php $IP = $_SERVER['REMOTE_ADDR']; not needed
Logged
Project Choosen - 10%
Daniel - Hanson . Com

Marzy

  • Basic Member
  • *
  • Reputation Power: 6
  • Marzy has no influence.
  • Offline Offline
  • Posts: 7
    • View Profile
    • Email
Re: Login.php template
« Reply #11 on: January 22, 2010, 12:12:11 AM »
Ohh yeh I quickly redone them and didn't realize :P
Logged

Sethenor

  • Basic Member
  • *
  • Reputation Power: 22
  • Sethenor has no influence.
  • Offline Offline
  • Posts: 16
    • View Profile
    • Email
Re: Login.php template
« Reply #12 on: January 22, 2010, 03:59:08 AM »
That is a pretty sweet login i like it +1
« Last Edit: January 22, 2010, 11:39:49 AM by Sethenor »
Logged

tree trunks girl

  • Basic Member
  • *
  • Reputation Power: 4
  • tree trunks girl has no influence.
  • Offline Offline
  • Posts: 4
    • View Profile
Re: Login.php template
« Reply #13 on: April 10, 2011, 10:25:23 AM »
oh my i would love a custom logo, whats your rate?
Logged

MonoD

  • Basic Member
  • *
  • Reputation Power: 23
  • MonoD has no influence.
  • Offline Offline
  • Posts: 34
    • MSN Messenger - Contact@Monodistrict.com
    • View Profile
    • WWW
    • Email
Re: Login.php template
« Reply #14 on: July 06, 2011, 08:23:27 PM »
Wow WRX must say you got skills!
Logged
 


This forum is now closed and has moved to a new location! Click here to find out why.