Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUT] How to make a new Box on youre RP Or Hotel.
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Dion1" data-source="post: 11227" data-attributes="member: 1652"><p>This is what you'l be needing.</p><p></p><p>• the page where you want to place the box on.</p><p>• And the recourse code of the current box</p><p></p><p>So il be Using my lder staff page because i want to add a new rank to the page</p><p></p><p>Just do this</p><p></p><p></p><p>Copy The code of youre box on the staff.php page.</p><p> like this.</p><p></p><p></p><p> [CODE] <?php</p><p>/*================================================================+\</p><p>|| # PHPRetro - An extendable virtual hotel site and management</p><p>|+==================================================================</p><p>|| # Copyright (C) 2009 Yifan Lu. All rights reserved.</p><p>|| # http://www.yifanlu.com</p><p>|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.</p><p>|| # http://www.meth0d.org</p><p>|| # All images, scripts, and layouts</p><p>|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.</p><p>|+==================================================================</p><p>|| # PHPRetro is provided "as is" and comes without</p><p>|| # warrenty of any kind. PHPRetro is free software!</p><p>|| # License: GNU Public License 3.0</p><p>|| # http://opensource.org/licenses/gpl-license.php</p><p>\+================================================================*/</p><p></p><p>$page['allow_guests'] = true;</p><p>require_once('./includes/core.php');</p><p>require_once('./includes/session.php');</p><p>$lang->addLocale("credits.credits");</p><p></p><p>$page['id'] = "staff";</p><p>$page['name'] = "Staff";</p><p>$page['bodyid'] = "home";</p><p>$page['cat'] = "community";</p><p></p><p>require_once('./templates/community_header.php');</p><p>?></p><p><div id="container"></p><p> <div id="content" style="position: relative" class="clearfix"></p><p> <div id="column1" class="column"></p><p></p><p> <div class="habblet-container "></p><p> <div class="cbb clearfix red "></p><p></p><p> <h2 class="title">Hotel Administrators</p><p> </h2></p><p><p class="credits-countries-select"></p><p><?php</p><p> $sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 7 ORDER BY rank DESC";</p><p> $result = mysql_query($sql) OR die(mysql_error());</p><p> if(mysql_num_rows($result)) {</p><p> while($row = mysql_fetch_assoc($result)) {</p><p></p><p> $userid = $row['id'];</p><p> if($row['rank'] == "7")</p><p> {</p><p> $rank="<b/>Habbol Administrator</b>";</p><p> }</p><p></p><p>if($row['private'] == 1)</p><p>{</p><p> $s_username = 'Anonymous';</p><p> $s_mission = 'This member of staff would prefer to remain anonymous.';</p><p> $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';</p><p>}</p><p>else</p><p>{</p><p> $s_username = $row['name'];</p><p> $s_mission = $row['mission'];</p><p> $s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml&size=m';</p><p>}</p><p>echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' /></p><p><b><a href='home/".$s_username."'>".$s_username."</a></b>&nbsp;<br /></p><p>".$s_mission."<br/></p><p><br /></p><p>Rank: ".$rank."<br /></p><p>Last Visit: ".$row['lastvisit']."<br /></p><p><img src=\"http://images.habbo.com/c_images/album1584/ADM.gif\" /><br /><br /><br /></p>";</p><p> }</p><p>}</p><p>?></p><p> </div></p><p> <div class="cbb clearfix red "></p><p></p><p> <h2 class="title">Habbol Moderators</p><p> </h2></p><p><p class="credits-countries-select"></p><p><?php</p><p> $sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 6 ORDER BY rank DESC";</p><p> $result = mysql_query($sql) OR die(mysql_error());</p><p> if(mysql_num_rows($result)) {</p><p> while($row = mysql_fetch_assoc($result)) {</p><p></p><p> $userid = $row['id'];</p><p> if($row['rank'] == "6")</p><p> {</p><p> $rank="<b/>Habbol Support staff</b>";</p><p> }</p><p></p><p>if($row['private'] == 1)</p><p>{</p><p> $s_username = 'Anonymous';</p><p> $s_mission = 'This member of staff would prefer to remain anonymous.';</p><p> $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';</p><p>}</p><p>else</p><p>{</p><p> $s_username = $row['name'];</p><p> $s_mission = $row['mission'];</p><p> $s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml';</p><p>}</p><p>echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' /></p><p><b><a href='home/".$s_username."'>".$s_username."</a></b>&nbsp;<br /></p><p>".$s_mission."<br/></p><p><br /></p><p>Rank: ".$rank."<br /></p><p>Last Visit: ".$row['lastvisit']."<br /></p><p><img src=\"http://images.habbo.com/c_images/album1584/ADM.gif\" /><br /><br /><br /></p>";</p><p> }</p><p>}</p><p>?></p><p><br> </div></p><p> <div class="cbb clearfix red "></p><p></p><p> <h2 class="title">Habbol Trial Moderators</p><p> </h2></p><p><p class="credits-countries-select"></p><p><?php</p><p> $sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 5 ORDER BY rank DESC";</p><p> $result = mysql_query($sql) OR die(mysql_error());</p><p> if(mysql_num_rows($result)) {</p><p> while($row = mysql_fetch_assoc($result)) {</p><p></p><p> $userid = $row['id'];</p><p> if($row['rank'] == "5")</p><p> {</p><p> $rank="<b/>Hotel Moderator</b>";</p><p> }</p><p></p><p>if($row['private'] == 1)</p><p>{</p><p> $s_username = 'Anonymous';</p><p> $s_mission = 'This member of staff would prefer to remain anonymous.';</p><p> $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';</p><p>}</p><p>else</p><p>{</p><p> $s_username = $row['name'];</p><p> $s_mission = $row['mission'];</p><p> $s_figure = 'http://www.habbo.com/habbo-imaging/avatarimage?figure='.$row['figure'].'&size=b&direction=2&head_direction=3&gesture=sml';</p><p>}</p><p>echo "<p><img src='".$s_figure."' alt='".$s_username."' align='left' /></p><p><b><a href='home/".$s_username."'>".$s_username."</a></b>&nbsp;<br /></p><p>".$s_mission."<br/></p><p><br /></p><p>Rank: ".$rank."<br /></p><p>Last Visit: ".$row['lastvisit']."<br /></p><p><img src=\"http://images.habbo.com/c_images/album1584/ADM.gif\" /><br /><br /><br /></p>";</p><p> }</p><p>}</p><p>?></p><p></p><p><?php require_once('./templates/community_footer.php'); ?></p><p>[/CODE]</p><p></p><p></p><p>I have already added a new rank but what u copy is:</p><p></p><p>[CODE]</p><p><br> </div></p><p> <div class="cbb clearfix red "></p><p></p><p> <h2 class="title">Habbol Trial Moderators</p><p> </h2></p><p><p class="credits-countries-select"></p><p><?php</p><p> $sql = "SELECT name,mission,rank,lastvisit,figure,sex,id,hbirth,birth,private FROM users WHERE rank = 5 ORDER BY rank DESC";</p><p> $result = mysql_query($sql) OR die(mysql_error());</p><p> if(mysql_num_rows($result)) {</p><p> while($row = mysql_fetch_assoc($result)) {</p><p></p><p> $userid = $row['id'];</p><p> if($row['rank'] == "5")</p><p> {</p><p> $rank="<b/>Hotel Moderator</b>";</p><p> }</p><p>[/CODE]</p><p></p><p></p><p>Also put <br> Behind the code otherwise it would get 2 boxes into eachather.</p><p></p><p>Then change the rank to 5 or 4 or what you want.</p><p></p><p>And this result would be happening:</p><p></p><p></p><p><img src="http://img252.imageshack.us/img252/7625/naamloosw.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p></p><p>The next thingis how to Add a chatbox on youre Me Page.</p><p></p><p>What you do is change this on the me page.</p><p></p><p>Search for </p><p> <h2 class="title">Chat Box<?php echo $lang->loc['']; ?> Some text wil be on [''''] Remove that and put by the >< youre text.</p><p></p><p></p><p>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.</p><p></p><p></p><p>I hoped i helped a little with this thanks me if i did and dont forget to leave a comment.</p></blockquote><p></p>
[QUOTE="Dion1, post: 11227, member: 1652"] 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. [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'); ?> [/CODE] 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>"; } [/CODE] 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: [IMG]http://img252.imageshack.us/img252/7625/naamloosw.jpg[/IMG] 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. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Tutorials
[TUT] How to make a new Box on youre RP Or Hotel.
Top