Dion1
Member
- Nov 22, 2010
- 68
- 0
This is what you'l be needing.
• the page where you want to place the box on.
• And the recourse code of the current box
So il be Using my lder staff page because i want to add a new rank to the page
Just do this
Copy The code of youre box on the staff.php page.
like this.
I have already added a new rank but what u copy is:
Also put <br> Behind the code otherwise it would get 2 boxes into eachather.
Then change the rank to 5 or 4 or what you want.
And this result would be happening:
The next thingis how to Add a chatbox on youre Me Page.
What you do is change this on the me page.
Search for
<h2 class="title">Chat Box<?php echo $lang->loc['']; ?> Some text wil be on [''''] Remove that and put by the >< youre text.
Then under that there is a </h2> Put youre chatbox behind it of xat and change the heights so it wil fit in the box To 440 440.
I hoped i helped a little with this thanks me if i did and dont forget to leave a comment.
• the page where you want to place the box on.
• And the recourse code of the current box
So il be Using my lder staff page because i want to add a new rank to the page
Just do this
Copy The code of youre box on the staff.php page.
like this.
Code:
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 Yifan Lu. All rights reserved.
|| # http://www.yifanlu.com
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/
$page['allow_guests'] = true;
require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("credits.credits");
$page['id'] = "staff";
$page['name'] = "Staff";
$page['bodyid'] = "home";
$page['cat'] = "community";
require_once('./templates/community_header.php');
?>
<div id="container">
<div id="content" style="position: relative" class="clearfix">
<div id="column1" class="column">
<div class="habblet-container ">
<div class="cbb clearfix red ">
<h2 class="title">Hotel Administrators
</h2>
<p class="credits-countries-select">
<?php
$sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 7 ORDER BY rank DESC";
$result = mysql_query($sql) OR die(mysql_error());
if(mysql_num_rows($result)) {
while($row = mysql_fetch_assoc($result)) {
$userid = $row['id'];
if($row['rank'] == "7")
{
$rank="<b/>Habbol Administrator</b>";
}
if($row['private'] == 1)
{
$s_username = 'Anonymous';
$s_mission = 'This member of staff would prefer to remain anonymous.';
$s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure=ha-1015-.hd-180-1.ch-210-66.lg-270-81.sh-290-80.hr-100-&size=b&direction=2&head_direction=3&gesture=sml&size=m';
}
else
{
$s_username = $row['name'];
$s_mission = $row['mission'];
$s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml&size=m';
}
echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' />
<b><a href='home/".$s_username."'>".$s_username."</a></b> <br />
".$s_mission."<br/>
<br />
Rank: ".$rank."<br />
Last Visit: ".$row['lastvisit']."<br />
<img src=\"http://images.habbo.com/c_images/album1584/ADM.gif\" /><br /><br /><br /></p>";
}
}
?>
</div>
<div class="cbb clearfix red ">
<h2 class="title">Habbol Moderators
</h2>
<p class="credits-countries-select">
<?php
$sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 6 ORDER BY rank DESC";
$result = mysql_query($sql) OR die(mysql_error());
if(mysql_num_rows($result)) {
while($row = mysql_fetch_assoc($result)) {
$userid = $row['id'];
if($row['rank'] == "6")
{
$rank="<b/>Habbol Support staff</b>";
}
if($row['private'] == 1)
{
$s_username = 'Anonymous';
$s_mission = 'This member of staff would prefer to remain anonymous.';
$s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure=ha-1015-.hd-180-1.ch-210-66.lg-270-81.sh-290-80.hr-100-&size=b&direction=2&head_direction=3&gesture=sml&size=m';
}
else
{
$s_username = $row['name'];
$s_mission = $row['mission'];
$s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml';
}
echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' />
<b><a href='home/".$s_username."'>".$s_username."</a></b> <br />
".$s_mission."<br/>
<br />
Rank: ".$rank."<br />
Last Visit: ".$row['lastvisit']."<br />
<img src=\"http://images.habbo.com/c_images/album1584/ADM.gif\" /><br /><br /><br /></p>";
}
}
?>
<br> </div>
<div class="cbb clearfix red ">
<h2 class="title">Habbol Trial Moderators
</h2>
<p class="credits-countries-select">
<?php
$sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 5 ORDER BY rank DESC";
$result = mysql_query($sql) OR die(mysql_error());
if(mysql_num_rows($result)) {
while($row = mysql_fetch_assoc($result)) {
$userid = $row['id'];
if($row['rank'] == "5")
{
$rank="<b/>Hotel Moderator</b>";
}
if($row['private'] == 1)
{
$s_username = 'Anonymous';
$s_mission = 'This member of staff would prefer to remain anonymous.';
$s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure=ha-1015-.hd-180-1.ch-210-66.lg-270-81.sh-290-80.hr-100-&size=b&direction=2&head_direction=3&gesture=sml&size=m';
}
else
{
$s_username = $row['name'];
$s_mission = $row['mission'];
$s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml';
}
echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' />
<b><a href='home/".$s_username."'>".$s_username."</a></b> <br />
".$s_mission."<br/>
<br />
Rank: ".$rank."<br />
Last Visit: ".$row['lastvisit']."<br />
<img src=\"http://images.habbo.com/c_images/album1584/ADM.gif\" /><br /><br /><br /></p>";
}
}
?>
<?php require_once('./templates/community_footer.php'); ?>
I have already added a new rank but what u copy is:
Code:
<br> </div>
<div class="cbb clearfix red ">
<h2 class="title">Habbol Trial Moderators
</h2>
<p class="credits-countries-select">
<?php
$sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 5 ORDER BY rank DESC";
$result = mysql_query($sql) OR die(mysql_error());
if(mysql_num_rows($result)) {
while($row = mysql_fetch_assoc($result)) {
$userid = $row['id'];
if($row['rank'] == "5")
{
$rank="<b/>Hotel Moderator</b>";
}
Also put <br> Behind the code otherwise it would get 2 boxes into eachather.
Then change the rank to 5 or 4 or what you want.
And this result would be happening:
The next thingis how to Add a chatbox on youre Me Page.
What you do is change this on the me page.
Search for
<h2 class="title">Chat Box<?php echo $lang->loc['']; ?> Some text wil be on [''''] Remove that and put by the >< youre text.
Then under that there is a </h2> Put youre chatbox behind it of xat and change the heights so it wil fit in the box To 440 440.
I hoped i helped a little with this thanks me if i did and dont forget to leave a comment.