I hope this project gets finished.
I hope this project gets finished.
I like the layout 10/10!
But a few guys stole your layout. -.-!
Like Jos said, why do you keep chopping and changing?
Are you making a templating system?
Posted via Mobile Device
How's it doing, Dan?
Well, I'm trying to make a selection of layouts for people to use...
Pretty good, I've re-coded most of it.
Design - Login (new database)
Directory (for now)...
index.php
register.php
me.php
logout.php
Profiles have been coded
http://www.talan.x10.bz/revision2/pr...php?user=Talan (You are required to login).
Prefer your old theme![]()
Here's a showcase on how I coded profile.php (This is the latest version, not being shown on the demo).
PHP Code:<?php
define('SECURITY', true);
require_once("habboweb/templates/configeration.php");
if(!userLoggedIn()) { header("Location: index.php"); die; }
error_reporting(E_WARNING);
$username = $_REQUEST['user'];
$selectdata = SelectUserInformation($username);
$user_username = $selectdata["Username"];
$user_id = $selectdata["ID"];
?>
<!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" lang="en">
<!-- Designed and coded by Predict on forum.ragezone.com -->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Design - Profile</title>
<link rel="stylesheet" href="habboweb/styles/style.css" type="text/css" />
<style type="text/css">
.profile {
margin:-5px -5px 1px;
padding:10px 10px;
color:#009DFF;
border-radius:5px 5px 0 0;
}
.background {
background:url("habboweb/styles/images/profile/01.png");
margin:0 -5px;
color:#FFFFFF;
}
h1 {
display: block;
font-size:2em;
-webkit-margin-before:0.67em;
-webkit-margin-after:0.67em;
-webkit-margin-start:0px;
-webkit-margin-end:0px;
font-weight:bold;
}
</style>
</head>
<body>
<div id="header-container">
<div id="header">
<div id="logo">
<a href="me.php"></a>
</div>
<div id="whitebox">
0 members online
<a href="logout.php">Logout</a>
</div>
<div id="enter-hotel">
<a href="me.php"">Enter Habbo Hotel</a>
</div>
<ul id="navigation">
<li>
<b>Talan</b>
</li>
<li>
<a href="me.php">Community</a>
</li>
</ul>
</div>
</div>
<div id="content-container">
<div id="content">
<div id="subnavigation-container">
<div id="subnavigation">
<ul>
<li>
<a href="me.php">Home</a>
</li>
<li class="selected">
Profile
</li>
<li class="last">
<a href="me.php">Account settings</a>
</li>
</ul>
</div>
</div>
<div id="content-content">
<div class="content-bubble">
<?php
if(!$selectdata)
{
?>
<div class="content-bubble-header red">Not Found</div>
<div class="content-bubble-text">
<img src="habboweb/styles/images/error.png" align="right" alt="Error" />
<p>Sorry, but we can't find the page you requested.</p>
<p>Please try typing the URL again. If you end up back here, please use the 'Back' button to get back to where you started.</p>
</div>
<?php
}
else
{
?>
<div class="content-bubble-header profile"><?php echo $user_username; ?></div>
<div class="content-bubble-text background">
<h1>About me</h1>
<?php echo ProfileAbout(); ?>
</p>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
</body>
</html>![]()
Why are you putting `configeration.php` in the template folder, it doesn't make sense x'd
Dunno if you CBA to change it, but it's spelt Configuration![]()
i Love it :3
I'm either going to code it via $_GET or do each page separate, your thoughts?PHP Code:<?php
define('SECURITY', true);
require_once("habboweb/templates/configeration.php");
if(!userLoggedIn()) { header("Location: index.php"); die; }
?>
<!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" lang="en">
<!-- Designed and coded by Predict on forum.ragezone.com -->
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Design - Settings</title>
<link rel="stylesheet" href="habboweb/styles/style.css" type="text/css" />
</head>
<body>
<div id="header-container">
<div id="header">
<div id="logo">
<a href="me.php"></a>
</div>
<div id="whitebox">
0 members online
<a href="logout.php">Logout</a>
</div>
<div id="enter-hotel">
<a href="me.php">Enter Habbo Hotel</a>
</div>
<ul id="navigation">
<li>
<b><?php echo $loggedIn->username; ?></b>
</li>
<li>
<a href="me.php">Community</a>
</li>
</ul>
</div>
</div>
<div id="content-container">
<div id="content">
<div id="subnavigation-container">
<div id="subnavigation">
<ul>
<li>
<a href="me.php">Home</a>
</li>
<li>
<a href="profile.php?user=<?php echo $loggedIn->username; ?>">Profile</a>
</li>
<li class="selected last">
Account settings
</li>
</ul>
</div>
</div>
<div id="content-content">
<div id="content-left" class="left">
<?php
if(!isset($_GET['tab']))$_GET['tab'] = '1';
if($_GET['tab'] == '1')
{
?>
<div class="content-bubble">
<div class="content-bubble-header grey">My preferences</div>
<div class="content-bubble-text background">
<p>
Prefrences
</p>
</div>
</div>
<?php
}
if($_GET['tab'] == '2')
{
?>
<div class="content-bubble">
<div class="content-bubble-header grey">My password</div>
<div class="content-bubble-text background">
<p>
Password fields
</p>
</div>
</div>
<?php
}
if($_GET['tab'] == '3')
{
?>
<div class="content-bubble">
<div class="content-bubble-header grey">My email</div>
<div class="content-bubble-text background">
<p>
Email fields
</p>
</div>
</div>
<?php
}
?>
</div>
<div id="content-right" class="right">
<div class="content-bubble">
<div class="content-bubble-header grey">Account settings</div>
<ul>
<li>
<?php
if($_GET['tab'] == '1')
{
?>
My preferences
<?php
}
else
{
?>
<a href="?tab=1">My preferences</a>
<?php
}
?>
</li>
<li>
<?php
if($_GET['tab'] == '2')
{
?>
My password
<?php
}
else
{
?>
<a href="?tab=2">My password</a>
<?php
}
?>
</li>
<li>
<?php
if($_GET['tab'] == '3')
{
?>
My email
<?php
}
else
{
?>
<a href="?tab=3">My email</a>
<?php
}
?>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
I'm sorry, looks like too much whitespace or.. grayspace. Especially in the left/ride margins, what is going to go there?
@ Makarov, I'm still in progress with it.
Your most probably going, omg he's already coded this, but your kinda wrong because I've revised my coding and its improved.
The way you're doing things with the pages is ugly, you should really use a proper templating system and keep the php & html seperate.