Staff page looks fine :)
Posted via Mobile Device
Printable View
Staff page looks fine :)
Posted via Mobile Device
http://www.talan.x10.bz/staff.php
Updated staff.php
Added some bits and bobs.
Updated habboweb/styles/style.css to fix some padding issues...
http://www.talan.x10.bz/getadmin.php - Get rank 3 and try the secure location for admins. (requires you to login)
If anyone can improve the code, that would be good, too.PHP Code:<?php
define('SECURITY', true);
require_once("habboweb/templates/config.php");
if(!getValidation()) { 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</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>
<a href="me.php"><?php echo $userLoggedIn->username; ?></a>
</li>
<li>
<b>Community</b>
</li>
</ul>
</div>
</div>
<div id="content-container">
<div id="content">
<div id="subnavigation-container">
<div id="subnavigation">
<ul>
<li>
<a href="community.php">Articles</a>
</li>
<li class="selected last">
Staff list
</li>
</ul>
</div>
</div>
<div id="content-content">
<div class="content-bubble">
<div class="content-bubble-header red">Administration</div>
<ul>
<?php
$result = getStaff();
$rowCount = 0;
while($row = $db->sql_fetchrow($result))
{
if($rowCount % 2)
{
$selectRow = "even";
}
else
{
$selectRow = "odd";
}
?>
<li class="<?php echo $selectRow; ?>">
<img src="http://www.habbo.com/habbo-imaging/avatar/hr-115-45.hd-180-10.ch-210-63.lg-280-82.cp-3124-62,s-0.g-0.d-4.h-4.a-0,50866a5733826a442e16b1fc21198ad1.gif" alt="<?php echo $row['Username']; ?>" align="middle" />
<a href="profile.php?user=<?php echo $row['Username']; ?>"><?php echo $row['Username']; ?></a> (<?php echo date("M d, Y",$row['LastSignIn']); ?>)
</li>
<?php
$rowCount++;
}
?>
</ul>
</div>
</div>
</div>
</div>
</body>
</html>
I Haven't saw it in a while good work. & LOLOLOL @ "You're already admin, dumbass"
lol, ye ^
Updated...
http://www.talan.x10.bz/community.php
Added timestamp
Added author
Added 2 div IDs
Design - HK
The ID's and classes are identical to the ones from me.php ^^
PHP Code:<?php
define('SECURITY', true);
require_once("../habboweb/templates/config.php");
if(!getValidation()) { header("Location: ../index.php"); die; }
if(!$userLoggedIn->SelectRank(3)) { header("Location: ../me.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 - HK</title>
<link rel="stylesheet" href="styles/style.css" type="text/css" />
</head>
<body>
<div id="header-container">
<div id="header">
<div id="logo">
<b></b>
</div>
<div id="enter-hotel">
<a href="me.php">Return home</a>
</div>
</div>
</div>
<div id="content-container">
<div id="content">
<div id="content-content">
<div id="content-left" class="left">
<div class="content-bubble">
<div class="content-bubble-header">Dashboard</div>
<ul>
<li>
- <a href="index.php">Home</a>
</li>
<li>
- <a href="index.php">Something else</a>
</li>
</ul>
</div>
</div>
<div id="content-right" class="right">
<div class="content-bubble">
<div class="content-bubble-header">A</div>
A
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Updated..
http://www.talan.x10.bz/profile.php
- Dynamic background for everyone...
http://www.talan.x10.bz/settings.php
- Won't update if no fields haven't been updated.
Background still needs work, I know.
404 Not Found
Updated this a little, no "WOW" improvement, some CSS edits.
http://www.talan.x10.bz/profile.php?user=Talan
Habbo pages can be hidden, still need to add this to settings.php ^^
Why don't you do MOD Rewrite?
and you could also find the code on Google to remove the file extensions, its lots more professionalCode:
RewriteEngine On
RewriteRule ^profile/([a-zA-Z0-9_-])$ profile.php?user=$1
Basically the first condition and rule is to make sure you're only allowed WWW.Code:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^talan\.x10\.bz$
RewriteRule (.*) http://www.talan.x10.bz/$1 [R=301,L]
RewriteRule ^([^/]*)$ $1.php
RewriteRule ^profile/([a-zA-Z0-9_-]+)$ profile.php?user=$1 [L]
Second rule is where it must not have a .php extention otherwise it won't work.
Last rule is the profile/$user extension.
However I'm going to have to add <?php $_SERVER["HTTP_HOST"]; ?> to all my images and anything else.
Would this process slow the website down? Just wondering.
Nevermind, I did it manually. >.>
Code:Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^talan\.x10\.bz$
RewriteRule (.*) http://www.talan.x10.bz/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteRule ^(.*)index\.(html|php)$ http://%{HTTP_HOST}/$1 [R=301,L]
RewriteRule ^home/([^/]+)/?$ profile.php?user=$1 [L]
Nice updates.
Been playing around with .htaccess
Design - Login
Updates..
- Updated settings, background display colour and shows you which colour your using.
- Added wheather if you want your Habbo home page hidden or not.
Tried to do a function with this, but bleh.
If you can improve the code, that'll be great too!PHP Code:<form action="" method="post">
<label class="settings">Hide your Habbo home</label>
<select name="active">
<option value="0"<?php if($userLoggedIn->active == 0) { echo ' selected="selected"'; } ?>>True</option>
<option value="1"<?php if($userLoggedIn->active == 1) { echo ' selected="selected"'; } ?>>False</option>
</select>
<label class="settings">Background colour</label>
<select name="background">
<option value="1"<?php if($userLoggedIn->background == 1) { echo ' selected="selected"'; } ?>>Black</option>
<option value="2"<?php if($userLoggedIn->background == 2) { echo ' selected="selected"'; } ?>>Green</option>
<option value="3"<?php if($userLoggedIn->background == 3) { echo ' selected="selected"'; } ?>>Blue</option>
<option value="4"<?php if($userLoggedIn->background == 4) { echo ' selected="selected"'; } ?>>Red</option>
<option value="5"<?php if($userLoggedIn->background == 5) { echo ' selected="selected"'; } ?>>Grey</option>
<option value="6"<?php if($userLoggedIn->background == 6) { echo ' selected="selected"'; } ?>>White</option>
<option value="7"<?php if($userLoggedIn->background == 7) { echo ' selected="selected"'; } ?>>Cream</option>
<option value="8"<?php if($userLoggedIn->background == 8) { echo ' selected="selected"'; } ?>>Orange</option>
</select>
<label class="settings">About me</label>
<textarea name="about"><?php echo $userLoggedIn->about; ?></textarea>
<input type="submit" value="Update prefrences" />
</form>
Probably wouldn't class this as an "update" although I never got round to doing the motto on me.php because I'm rather shocking with ajax, meh.
Anyway updated style.css and taken out the id's for motto.
Design - Login
I'll add the motto to settings page.
Ideas for Design - Login wouldn't go a miss either.
Updated community/staff
Design - Login
Tell me what improvements could be made, if any. Nearly finished stage 1 of the CMS.
make it like v26, you can change your habbo looks on-site
I'll still need the encryption for the figure IDs first.
Design - Register
This is starting to p*** me off, I can't seem to get it how I want. :(
What's with the new design?