How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Hey guys, just a simple TUT on how to add tabs to PhoenixPHP.
Step 1 - Add
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 2 - Make a new nav in /system called (example; forumnav.php)
Step 3 - Add
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 4 - Make sure the top of ur page shows this...
PHP 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>
Step 5 - Make sure ur page has
PHP Code:
<div class="mainBox">
<?php include("header.php"); ?>
<?php include("system/forumnav.php"); ?>
In it!
Step 6 - Edit this in ur database... http://i51.tinypic.com/288a63o.png
Step 7 - Last of all! Open Header.php and add...
PHP Code:
<div class="navButton" ref="Forum" onClick="location.href='forum.php'">Forum<a href="forum.php"></a></div>
Need any help? Add my msn; strikehotel@live.com
Thanks andi hope u enjoy! :thumbup1:
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Screen of the work when its done? :)
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
I did this one that way...
Image:
http://i52.tinypic.com/331ep3c.png
I did this one a different way which ill explain later...
Image:
http://i55.tinypic.com/2nsughu.png
Thanks :thumbup1:
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
I loved this plugin I can now post events and ends at the hotel! Very good!
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Mhm, i don't like to do this via SQL. But its a good tutorial, goodluck in the future.
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Thanks and i cant post in the tutorials section. It doesnt show a post new thread button. Thanks again! :)
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
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.
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Quote:
Originally Posted by
Refraction
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.
if you don't wanna be ripped, then secure ur site, or let the owner secure his site.
By the way, good tutorial. Already knew this but still gold.
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Quote:
Originally Posted by
George2000
if you don't wanna be ripped, then secure ur site, or let the owner secure his site.
By the way, good tutorial. Already knew this but still gold.
Its Called.. You Wont Believe This. View-Source ! Ooooo I know right its so surprising. The most u can do is Block Right Clicking.:closedeyes:
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Quote:
Originally Posted by
Refraction
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
Quote:
Originally Posted by
Originalz
Its Called.. You Wont Believe This. View-Source ! Ooooo I know right its so surprising. The most u can do is Block Right Clicking.:closedeyes:
You can encode or encrypt it aswell.
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
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...
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Actually, Originalz and I own a hotel now so no worries :)
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
Quote:
Originally Posted by
-Jordan-
You gonna cry now for making a few edits? I feel for you, No really I do.
*Sarcasm*
Index of /Public/Styles/custom
Actually It's Not Crying. How about i Rip ur Edits right, and use it eyyy :D :thumbup1: . And I Said That With Respect So Dont go and start sometin big szeen.
You can encode or encrypt it aswell.
And Yee I'll Encode It Thanks For The Advice. :laugh: (Y)
Re: How to add tabs to PhoenixPHP (NOOB FRIENDLY)
will be trying this tonight