Home arrow PHP arrow Page 6 - Nuking The Competition

Doing The Funky Chameleon - PHP

The PHP-Nuke content management system is a popular open-sourceproject, designed to help you get your Web site off the ground with minimumfuss...and if you're a budding Webmaster, or just running on a tightschedule, it can probably make your life simpler. This article discussesdeploying and customizing the system to your needs.

TABLE OF CONTENTS:
  1. Nuking The Competition
  2. Getting Started
  3. Building Blocks
  4. Managing Things
  5. All Wired Up
  6. Doing The Funky Chameleon
  7. Commercial Break
  8. Conclusions
By: icarus, (c) Melonfire
Rating: starstarstarstarstar / 1
June 06, 2001

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
While the default administration interface does allow access to most of the things an administrator would need, it's not the only option available. The variables you set through the various control panels correspond to the variables in the "config.php" configuration file, and to the records in PHP-Nuke's extensive database. If you're a power user, you should spend some time studying the configuration file and the database schema to understand how the various tables are linked together; the information's bound to come in handy if things go wrong.

It's also sure to come in handy when you decide that the default PHP-Nuke configuration no longer works for you. As I've already stated, there are a large number of PHP-Nuke themse available for download - like WinAmp skins, these themes allow administrators (and registered users) to personalize the PHP-Nuke system extensively, even to the extent of completely altering colours, page layout and displayed articles. While the default themes which ship with PHP-Nuke are fine to start out with, you're going to have to learn to make your own - especially if you plan to deploy this system on a commercial basis.

PHP-Nuke themes are relatively easy to build, once you have a sound understanding of the architecture. Every theme consists of three main files - "header.php", "theme.php" and "footer.php" - together with required images.

Each of these files has a specific function in the PHP-Nuke system. "header.php" sets up the header which appears at the top of every page, together with the blocks on the left side; "theme.php" sets up the UI for the articles and news items; and "footer.php" sets up the blocks on the right side, and a page footer. The order in which the various pre-defined and custom blocks appear can be controlled as well - each of the blocks is represented by a function call, as the following snippet from "header.php" demonstrates:

mainblock(); adminblock(); leftblocks(); ephemblock(); headlines(); online();
As you might imagine, if you know HTML, slapping together your own theme is not very hard at all. However, rather than starting from scratch, I'd recommend that you take an existing theme file and modify it to reflect your requirements (at least the first couple of times that you attempt this exercise). This will help you get to grips with the function of each file, and also provide some understanding of which parts of the system can be customized easily, and which ones require more work.

If you'd like to learn more about building your own themes, I'd recommend that you also take a look at the excellent tutorial at http://www.dinerminor.com/ for a detailed, step-by-step description of the process.

This article copyright Melonfire 2001. All rights reserved.

 
 
>>> More PHP Articles          >>> More By icarus, (c) Melonfire
 

blog comments powered by Disqus
   

PHP ARTICLES

- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...
- PHP: Building Concrete Validators
- Sanitizing Input with PHP
- Executing Shell Commands with PHP
- Handling File Data with PHP
- File Security and Resources with PHP
- ArrayObject PHP Class Examples
- ArrayObject PHP Class: An Introduction
- Getting File System Data with PHP
- PHP Tools for Working with the File and Oper...
- Working with the File and Operating System w...
- PHP Proxy Patterns: Completing a Blog


© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 5 - Follow our Sitemap

Dev Shed Tutorial Topics: