July 05, 2008 | 03:19 PM  
Welcome

Don't have an account yet? You can create one, it is free, just click here

as a registered user you have some advantages like free downloads, comments and posting on our forums, depending upon this site's configuration and options.

 • •  Control Panel - Register - Login  • • 
Current Stable MDPro Lite 1.0821 Download
   30-Nov-1999  Print current page  Show map

c. The new Theme directory

c. The new Theme directory

- File Permissions

*** modules/AutoTheme/autotheme.cfg and any theme.cfg in your theme directories must be writeable by the web server!

The easiest way in Unix/Linux is CHMOD 777 autotheme.cfg and CHMOD 777 theme.cfg

Windows should not be an issue unless you have set custom file or directory permissions.

AutoTheme is a Theme System, not a theme. The included HTML templates and images may be used as is or modified to fit your needs, but they are only examples. You should use your own creativity to build a custom theme using the AutoTheme functionality. The template files in your AutoTheme can be named anything you wish and can be organized in any directory structure under your theme directory. Your site may require fewer files or more files.

A theme directory needs to include following files:

  • theme.cfg, chmod 777, writable, for the theme configuration from the Admin Panel >> Autotheme.

  • theme.php, that includes the AT theme engine Module.

  • nuclei.cfg if you use the 9 different area blocks andPostNuke systems.

  • The /docs subdirectory with the GPL license file or other files you may included

  • the /images subdirectory, where you will save the images used in the layout

  • the /includes subdirectory, with two files for first time run, that can be deleted after configuring theme from the Admin Panel >> Autotheme configuration. Leave that directory if you use PostNuke.

  • The /lang subdirectory with subdirectories for every language of the file containing a global.php file for the language variables used in the template. Not necessary for every theme...

  • the /style subdirectory: when you build your templates you may use cascading style sheets to define the appearance of certain tags or elements. This style sheet needs to be saved under the style/ directory of your theme directory as style.css (main style sheet) and styleNN.css (used for Netscape navigator). These may contain style differences but most likely will work if they are the same. You may include your style sheet in the header of your theme template while editing, but the <­link> reference will be stripped out by AutoTheme and CMS will dynamically include one or the other depending on the viewer's browser. You may also define an additional style sheet to be included after these CMS default ones.

    Download the basic ATTest theme from  

    that contains basic files needed for your theme and copy it into your local MDPro/themes directory.