729 lines
9.8 KiB
HTML
729 lines
9.8 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>PHP-Nuke: Management and Programming</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="NEXT"
|
|
TITLE="Terms of distribution"
|
|
HREF="c84.htm"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="PHP-Nuke"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="programming"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="management"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="tutorial"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="PHP"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="MySQL"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="Linux"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="structure"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="news"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="content management system"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="CMS"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="UNIX"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="nuke"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="modules"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="blocks"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="topics"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="themes"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="architecture"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="howto"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="guide"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="content"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="download"><META
|
|
NAME="KEYWORD"
|
|
CONTENT="book"></HEAD
|
|
><BODY
|
|
CLASS="BOOK"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="BOOK"
|
|
><A
|
|
NAME="AEN1"
|
|
></A
|
|
><DIV
|
|
CLASS="TITLEPAGE"
|
|
><H1
|
|
CLASS="TITLE"
|
|
><A
|
|
NAME="AEN2"
|
|
></A
|
|
>PHP-Nuke: Management and Programming</H1
|
|
><H3
|
|
CLASS="AUTHOR"
|
|
><A
|
|
NAME="AEN5"
|
|
></A
|
|
>Claudio Erba</H3
|
|
><DIV
|
|
CLASS="AFFILIATION"
|
|
><SPAN
|
|
CLASS="JOBTITLE"
|
|
>Webmaster<BR></SPAN
|
|
><SPAN
|
|
CLASS="ORGNAME"
|
|
>www.spaghettibrain.com<BR></SPAN
|
|
></DIV
|
|
><H3
|
|
CLASS="OTHERCREDIT"
|
|
><A
|
|
NAME="AEN11"
|
|
></A
|
|
>Chris Karakas</H3
|
|
><DIV
|
|
CLASS="AFFILIATION"
|
|
>www.karakas-online.de</DIV
|
|
><H3
|
|
CLASS="OTHERCREDIT"
|
|
><A
|
|
NAME="AEN16"
|
|
></A
|
|
>Andre Purfield</H3
|
|
><DIV
|
|
CLASS="AFFILIATION"
|
|
>oss.cs-consultants.com</DIV
|
|
><H3
|
|
CLASS="OTHERCREDIT"
|
|
><A
|
|
NAME="AEN21"
|
|
></A
|
|
>Fortunato Matarazzo</H3
|
|
><H3
|
|
CLASS="OTHERCREDIT"
|
|
><A
|
|
NAME="AEN25"
|
|
></A
|
|
>Chris Karakas</H3
|
|
><DIV
|
|
CLASS="AFFILIATION"
|
|
>www.karakas-online.de</DIV
|
|
><DIV
|
|
><DIV
|
|
CLASS="ABSTRACT"
|
|
><A
|
|
NAME="AEN54"
|
|
></A
|
|
><P
|
|
></P
|
|
><P
|
|
> <DIV
|
|
CLASS="MEDIAOBJECT"
|
|
><P
|
|
><IMG
|
|
SRC="./images/logo1.png"></P
|
|
></DIV
|
|
></P
|
|
><P
|
|
> <DIV
|
|
CLASS="MEDIAOBJECT"
|
|
><P
|
|
><IMG
|
|
SRC="./images/logo2.png"></P
|
|
></DIV
|
|
></P
|
|
><P
|
|
>There has always been the necessity to have a definitive guide on PHP-Nuke. This tutorial describes the installation and structure of PHP-Nuke and the details of customizing the front end to suit the users' needs. The architecture of PHP-Nuke, with its modules, blocks, topics and themes is presented in detail, as well as the interplay of PHP and MySQL for the creation of a mighty content management system (CMS).It also delves into more advanced issues, like the programming of PHP-Nuke blocks and modules.</P
|
|
><P
|
|
></P
|
|
></DIV
|
|
></DIV
|
|
><HR></DIV
|
|
><DIV
|
|
CLASS="TOC"
|
|
><DL
|
|
><DT
|
|
><B
|
|
>Table of Contents</B
|
|
></DT
|
|
><DT
|
|
>1. <A
|
|
HREF="c84.htm"
|
|
>Terms of distribution</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c84.htm#DISCLAIMER"
|
|
>Disclaimer</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x93.htm"
|
|
>Formats</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x160.htm"
|
|
>Licence</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x183.htm"
|
|
>Availability of sources</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x191.htm"
|
|
>Aknowledgements</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>2. <A
|
|
HREF="c238.htm"
|
|
>Introduction to PHP-Nuke</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c238.htm#PURPOSE"
|
|
>Purpose</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x244.htm"
|
|
>What Is PHP-Nuke</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x296.htm"
|
|
>Short history of PHP-Nuke</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x314.htm"
|
|
>The Nuke Communities</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x357.htm"
|
|
>Why use PHP-Nuke and not static HTML pages</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>3. <A
|
|
HREF="c381.htm"
|
|
>Front end structure: user view</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c381.htm#PREINSTALLED-MODULES"
|
|
>The preinstalled modules</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x699.htm"
|
|
>Other non-installed modules</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x734.htm"
|
|
>The preinstalled blocks</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>4. <A
|
|
HREF="c803.htm"
|
|
>Back end structure: administrator view</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c803.htm#ADMINISTRATION-FUNCTIONS"
|
|
>The administration functions</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1072.htm"
|
|
>The Preferences Page</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>5. <A
|
|
HREF="c1179.htm"
|
|
>How to install PHP-Nuke</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c1179.htm#INSTALLATION-PROCESS"
|
|
>Installation process</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c1179.htm#AEN1193"
|
|
>Download<A
|
|
NAME="DOWNLOAD"
|
|
></A
|
|
></A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="c1179.htm#UPLOAD"
|
|
>Upload through FTP</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="c1179.htm#PERMISSIONS"
|
|
>Formulation of the file permissions</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
><A
|
|
HREF="x1241.htm"
|
|
>How to install PHP-Nuke through PHPMyadmin</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="x1241.htm#AEN1243"
|
|
>What Is PHPMyadmin<A
|
|
NAME="WHATIS-PHPMYADMIN"
|
|
></A
|
|
></A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1241.htm#INSTALL-DB"
|
|
>How to install the DB of PHP-Nuke with PHPMyadmin</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1241.htm#AEN1314"
|
|
>The config.php file</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1241.htm#RESOURCES"
|
|
>Resources</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>6. <A
|
|
HREF="c1363.htm"
|
|
>Architecture and structure</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c1363.htm#DIRECTORY-STRUCTURE"
|
|
>Directory structure</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1491.htm"
|
|
>Main page management</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1503.htm"
|
|
>Module management</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1526.htm"
|
|
>Administration management</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>7. <A
|
|
HREF="c1559.htm"
|
|
>Customising PHP-Nuke themes</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c1559.htm#TOPIC-STRUCTURE"
|
|
>Structure of a PHP-Nuke theme</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1704.htm"
|
|
>Modifying the HTML template</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="x1704.htm#AEN1706"
|
|
>Example creation of HTML file to include in the theme</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
><A
|
|
HREF="x1728.htm"
|
|
>Theme construction: the rules to follow</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>8. <A
|
|
HREF="c1745.htm"
|
|
>Creating blocks</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c1745.htm#BLOCK-TYPES"
|
|
>The characteristics of the various types of blocks</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1801.htm"
|
|
>How to create a new block</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="x1801.htm#AEN1804"
|
|
>How to create a block, theoretical approach:<A
|
|
NAME="BLOCK-THEORY"
|
|
></A
|
|
></A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1801.htm#BLOCK-PRACTICE"
|
|
>How to create a block, a practical example</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>9. <A
|
|
HREF="c1852.htm"
|
|
>Creating modules</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c1852.htm#MODULE-STRUCTURE"
|
|
>Module structure</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1877.htm"
|
|
>Creating fully compatible modules: the rules to follow</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1912.htm"
|
|
>Module creation, the public part</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x1986.htm"
|
|
>Module creation, administrator part</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>10. <A
|
|
HREF="c2099.htm"
|
|
>Some security precautions</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c2099.htm#PERMISSIONS2"
|
|
>The permissions on the folders and files</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x2144.htm"
|
|
>Cookies - timeout and configuration</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
>11. <A
|
|
HREF="c2221.htm"
|
|
>Programmer's tools</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="c2221.htm#DATABASE-TABLES"
|
|
>The database tables</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x2643.htm"
|
|
>The syntax of SQL code</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x2692.htm"
|
|
>PHPMyadmin, administering MySQL via web</A
|
|
></DT
|
|
><DD
|
|
><DL
|
|
><DT
|
|
><A
|
|
HREF="x2692.htm#AEN2694"
|
|
>What is PHPMyadmin<A
|
|
NAME="WHATIS-PHPMYADMIN2"
|
|
></A
|
|
></A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x2692.htm#INSTALL-DB2"
|
|
>How to install the PHP-Nuke DB with PHPMyadmin</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
><A
|
|
HREF="x2753.htm"
|
|
>MySQL Front, how to administer a MySQL DB from Windows</A
|
|
></DT
|
|
><DT
|
|
><A
|
|
HREF="x2797.htm"
|
|
>Foxserv, making PHP-Nuke work on Windows Systems</A
|
|
></DT
|
|
></DL
|
|
></DD
|
|
><DT
|
|
><A
|
|
HREF="i2819.htm"
|
|
>Index</A
|
|
></DT
|
|
></DL
|
|
></DIV
|
|
><DIV
|
|
CLASS="LOT"
|
|
><DL
|
|
CLASS="LOT"
|
|
><DT
|
|
><B
|
|
>List of Figures</B
|
|
></DT
|
|
><DT
|
|
>3-1. <A
|
|
HREF="c381.htm#FIG-HOMEPAGE"
|
|
>PHP-Nuke Homepage</A
|
|
></DT
|
|
><DT
|
|
>3-2. <A
|
|
HREF="c381.htm#FIG-CATEGORY"
|
|
>Classifying articles</A
|
|
></DT
|
|
><DT
|
|
>3-3. <A
|
|
HREF="c381.htm#FIG-DOWNLOADS"
|
|
>Downloads module</A
|
|
></DT
|
|
><DT
|
|
>3-4. <A
|
|
HREF="c381.htm#FIG-PRIVATE-MESSAGES"
|
|
>Private messages</A
|
|
></DT
|
|
><DT
|
|
>3-5. <A
|
|
HREF="c381.htm#FIG-SEARCH"
|
|
>Search module</A
|
|
></DT
|
|
><DT
|
|
>3-6. <A
|
|
HREF="c381.htm#FIG-STATS"
|
|
>Statistics module</A
|
|
></DT
|
|
><DT
|
|
>3-7. <A
|
|
HREF="c381.htm#FIG-YOUR-ACCOUNT"
|
|
>Your account</A
|
|
></DT
|
|
><DT
|
|
>3-8. <A
|
|
HREF="c381.htm#FIG-FORUM"
|
|
>Forum</A
|
|
></DT
|
|
><DT
|
|
>4-1. <A
|
|
HREF="c803.htm#FIG-ADMIN-PANEL"
|
|
>Administration panel</A
|
|
></DT
|
|
><DT
|
|
>4-2. <A
|
|
HREF="c803.htm#FIG-ARTICLES"
|
|
>Articles</A
|
|
></DT
|
|
><DT
|
|
>5-1. <A
|
|
HREF="c1179.htm#FIG-FILE-STRUCTURE"
|
|
>PHP-Nuke 6.0 file structure</A
|
|
></DT
|
|
><DT
|
|
>5-2. <A
|
|
HREF="x1241.htm#FIG-MYADMIN1"
|
|
>PHPMyAdmin start screen</A
|
|
></DT
|
|
><DT
|
|
>5-3. <A
|
|
HREF="x1241.htm#FIG-MYADMIN2"
|
|
>PHPMyAdmin table selection</A
|
|
></DT
|
|
><DT
|
|
>5-4. <A
|
|
HREF="x1241.htm#FIG-SQL-QUERY"
|
|
>PHPMyAdmin: SQL query</A
|
|
></DT
|
|
><DT
|
|
>5-5. <A
|
|
HREF="x1241.htm#FIG-MYADMIN4"
|
|
>PHPMyAdmin: table data</A
|
|
></DT
|
|
><DT
|
|
>5-6. <A
|
|
HREF="x1241.htm#FIG-MYADMIN5"
|
|
>PHPMyAdmin: database dump</A
|
|
></DT
|
|
><DT
|
|
>8-1. <A
|
|
HREF="c1745.htm#FIG-BLOCK-EXAMPLE"
|
|
>Block example</A
|
|
></DT
|
|
><DT
|
|
>9-1. <A
|
|
HREF="x1912.htm#FIG-INSERTING-VALUES"
|
|
>PHPMyAdmin: inserting values</A
|
|
></DT
|
|
><DT
|
|
>9-2. <A
|
|
HREF="x1912.htm#FIG-EXAMPLE-MODULE"
|
|
>Example module</A
|
|
></DT
|
|
><DT
|
|
>11-1. <A
|
|
HREF="x2692.htm#FIG-MYADMIN1-COPY"
|
|
>PHPMyAdmin start screen</A
|
|
></DT
|
|
><DT
|
|
>11-2. <A
|
|
HREF="x2692.htm#FIG-FORUM_TOPICS"
|
|
>PHPMyAdmin: table forum_topics</A
|
|
></DT
|
|
><DT
|
|
>11-3. <A
|
|
HREF="x2753.htm#FIG-MYSQLFRONT-CONNECTION"
|
|
>MySQL Front: Connection</A
|
|
></DT
|
|
><DT
|
|
>11-4. <A
|
|
HREF="x2753.htm#FIG-MYSQLFRONT-EXPORT-TABLES"
|
|
>MySQL Front: export tables</A
|
|
></DT
|
|
><DT
|
|
>11-5. <A
|
|
HREF="x2753.htm#FIG-MYSQLFRONT-SQL-QUERY"
|
|
>MySQL Front: SQL Query</A
|
|
></DT
|
|
></DL
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="c84.htm"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
> </TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Terms of distribution</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |