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; strikehotel@live.comPHP Code:<div class="navButton" ref="Forum" onClick="location.href='forum.php'">Forum<a href="forum.php"></a></div>
Thanks andi hope u enjoy!![]()








(Y)

