Screen of the work when its done? :)
This is a discussion on How to add tabs to PhoenixPHP (NOOB FRIENDLY) within the Habbo Tutorials forums, part of the Habbo Hotel category; Hey guys, just a simple TUT on how to add tabs to PhoenixPHP. Step 1 - Add PHP Code: INSERT INTO ...

Hey guys, just a simple TUT on how to add tabs to PhoenixPHP.
Step 1 - AddStep 2 - Make a new nav in /system called (example; forumnav.php)PHP Code:INSERT INTO `plugin` (`id`, `name`, `uninstall_code`, `hk_tab`, `hk_text`, `hk_link`, `cms_tab`, `cms_text`, `cms_link`) VALUES
('1', 'Forum', 'forum', '', '', ''),
(44, 'Forum', '', '', '', '', 'forum', 'Forum', '/forum');
Step 3 - AddStep 4 - Make sure the top of ur page shows this...PHP Code:<div class="SubnavBar">
<?php
$getplugin = mysql_query("SELECT * FROM plugin WHERE cms_tab = 'forum'");
while($plugin = mysql_fetch_array($getplugin))
{
?>
<div class="navButton" <?php if(THIS_SCRIPT == $plugin['cms_link']) echo 'style="font-weight:bolder;"'; ?> onClick="location.href='<?php echo $plugin['cms_link']; ?>.php'"><a href="<?php echo $plugin['cms_link']; ?>.php"><?php echo $plugin['cms_text']; ?></a></div>
<?php
}
?>
</div>Step 5 - Make sure ur page hasPHP Code:<?php
define('USERNAME_REQUIRED', TRUE);
define('ACCOUNT_REQUIRED', TRUE);
include('global.php');
define("THIS_SCRIPT", 'forum');
?>
<!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">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<head>
<title><?php echo $sitename." - Forum"; ?></title>In it!PHP Code:<div class="mainBox">
<?php include("header.php"); ?>
<?php include("system/forumnav.php"); ?>
Step 6 - Edit this in ur database...
Step 7 - Last of all! Open Header.php and add...Need any help? Add my msn; [email protected]PHP Code:<div class="navButton" ref="Forum" onClick="location.href='forum.php'">Forum<a href="forum.php"></a></div>
Thanks andi hope u enjoy!![]()
Last edited by thetrev14; 19-07-11 at 01:27 AM.
Screen of the work when its done? :)
I did this one that way...
Image:
I did this one a different way which ill explain later...
Image:
Thanks![]()
I loved this plugin I can now post events and ends at the hotel! Very good!
Mhm, i don't like to do this via SQL. But its a good tutorial, goodluck in the future.
Thanks and i cant post in the tutorials section. It doesnt show a post new thread button. Thanks again! :)
Thanks for steeling Twiz Hotel's css and images. The plugin is alright but did anyone take a look at the credits. "Originalz". He just stole it from him. If you don't believe me go to Twiz Hotel.
You gonna cry now for making a few edits? I feel for you, No really I do.
*Sarcasm*
Index of /Public/Styles/custom
You can encode or encrypt it aswell.
Last edited by zJordan; 19-07-11 at 06:34 PM.
as jordan said you can encrypt it - like we used to do with our loaders haha - also id never use this since mysql server doesnt need that stress...
Actually, Originalz and I own a hotel now so no worries :)
will be trying this tonight