PHP
  Home arrow PHP arrow Page 6 - Nuking The Competition
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Mobile Linux 
App Generation ROI 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Nuking The Competition
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 1
    2001-06-06

    Table of Contents:
  • Nuking The Competition
  • Getting Started
  • Building Blocks
  • Managing Things
  • All Wired Up
  • Doing The Funky Chameleon
  • Commercial Break
  • Conclusions

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Nuking The Competition - Doing The Funky Chameleon


    (Page 6 of 8 )

    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


     

       

    PHP ARTICLES

    - Working With Different Namespaces in PHP 5
    - User Management Explained: Overview
    - Using Namespaces in PHP 5
    - Database Security: Guarding Against SQL Inje...
    - Building a Modular Exception Class in PHP 5
    - Database and Password Security for Web Appli...
    - Handling MySQL Data Set Failures in PHP 5
    - Building Site Registration for Web Applicati...
    - Intercepting Customized Exceptions in PHP 5
    - Securing Your Web Application Against Attacks
    - Sub Classing Exceptions in PHP 5
    - Authentication for Web Application Security
    - Building a Content Management System with Co...
    - Filters and Login Systems for Web Applicatio...
    - Working with the Email Class in Code Igniter





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
    Stay green...Green IT