Saturday, December 15, 2007

Files in CmsForNerd

Files in CmsForNerd

(1) This files must be in the contents directory

common-headertag.inc - Contain information for HEAD TAG
header.inc - not used but need to have. Refer themes directory
footer.inc - The footer of the website
right-side.inc - Right hand side colum
left-side.inc - Left hand side colum

(2) This files must be in the includes directory

common.inc.php - php functions
global-control.inc.php - parameter global to all

(3) This directory and files must be in the themes directory

CmsForNerd - the directory (folder)

Inside this folder should have this files.

theme.php - This will call the style.css
style.css - The CSS file that control the appearance of the website
pager.php - The control page for the layout
header.tpl - called by pager.php
bodytop.tpl - called by pager.php
bodyfooter.tpl - called by pager.php

If you want to customize the layout. Copy the contents of this CmsForNerd folder into another name and it should be in themes directory.

To called you new theme, change the file global-control.inc.php in includes directory. The parameter $THEMENAME="CmsForNerd"; should change to your theme name.

http://cmsfornerd.harisfazillah.info/

18 November 2007

http://linuxmalaysia.harisfazillah.info/


Monday, November 26, 2007

CmsForNerd For Learning HTML CSS and PHP

CmsForNerd For Learning HTML CSS and PHP

CmsForNerd Main Site http://cmsfornerd.harisfazillah.info/
CmsForNerd at Sourceforge http://cmsfornerd.sourceforge.net/
CmsForNerd at Freshmeat http://freshmeat.net/~harisfazillah/
CmsForNerd Blog http://cmsfornerd.perempuanmelayu.info/
CmsForNerd at Geocities http://www.geocities.com/cmsfornerd

CmsForNerd is a simple Contents Management Software or CMS that can easily understand by any PHP programmers. It's using the common logics and structures that are used by numbers of PHP programs and CMS.

Our goal is to produce an output that confirm to XHTML W3C standard. By using PHP any web pages a website using CmsForNerd can have a standard theme and XHTML output.

CmsForNerd is target for advanced end users that like to coding in HTML, PHP and CSS but want the web site to be easy to maintain and manage.

CmsForNerd is design not to used any database. CMS with database will added extra administration jobs to backup and checking the database.

CmsForNerd is for small web site with static contents that not usually change.

A web page from CmsForNerd is called from a PHP script. Each web pages will have it own PHP scripts. This PHP scripts will get it's content from contents folder. This PHP script also called pager.php from theme folder for the layout of the web page.
The list of Files and folders used by CmsForNerd

(1) This files must be in the contents directory

* common-headertag.inc - Contain information for HEAD TAG. Some information need to be customize for your website.
* header.inc - not used but need to have for reference. Refer header.tpl in themes folder.
* footer.inc - The common footer of the web site.
* right-side.inc - Right hand side colum.
* left-side.inc - Left hand side colum.

(2) This files must be in the includes directory

* common.inc.php - PHP functions for CmsForNerd to work.
* global-control.inc.php - parameter global to all.

(3) This directory and files must be in the themes directory

* CmsForNerd - the directory (folder). It can be in any name depending on the theme.

Inside this folder should have this files.

* theme.php - It's called by global-control.inc.php in includes folder. This file will call file style.css for CSS.
* style.css - The CSS file that control the appearance of the website.
* pager.php - The control page for the layout. It is called by the PHP scripts of the web pages.
* header.tpl - called by pager.php. Usually the top banner graphic is called from here.
* bodytop.tpl - called by pager.php
* bodyfooter.tpl - called by pager.php

If you want to customize the layout. Copy the contents of this CmsForNerd folder into another name and it should be in themes directory.

To called you new theme, change the file global-control.inc.php in includes directory. The parameter $THEMENAME="CmsForNerd"; should be change to your new theme.

CmsForNerd Main Site http://cmsfornerd.harisfazillah.info/
CmsForNerd Blog http://cmsfornerd.perempuanmelayu.info/

Sunday, November 18, 2007

CmsForNerd A CMS For Nerd

The goal of CmsForNerd is to make a CMS that suitable to advanced users with the knowledge of HTML, PHP and CSS. CmsForNerd is for small website, contents that will not alway be change and does not required database. Most of CMS is to complicated or big, as a solution for this type of website.

The admin only need to copy 2 files. One file in PHP code will called a file that has the content in HTML. This PHP file will also called a theme files that will customize the look of the website.

With the knowledge in PHP, HTML and CSS a theme can be customize. Theme can be change without the need to adjust the contents.

The content files can contain any type of coding, HTML, JavaScript, PHP and many more, as long the web server support it.

One of our concern about using CMS, the need to customize the links output for the search engine. We want to make the links and output produce a search engine friendly.

The codes already in production.

A sample site can be view at http://cmsfornerd.harisfazillah.info/