| | |
CMS....php
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Well i am running my site www.it101.uni.cc , i am planing of adding a php back end to this site...
I was thinking of making some simple and that works... in a Slackware type of way... so that you would be able to control everything with the help of a simple text editor (you can do that now... but it is not a simple as just changing a line or adding one... ) just putting the content in one file and the links in another ... and so on... so it would be easy to change a template (as it would be in one file) ... if you change a link it would change all around the site...
any suggestions would be appreciated... BTW I m thinking of GPLing the whole thing...so that others would be able to use
it would be a great way to get my php skills up.. and maybe learn some JS and so on...
I was thinking of making some simple and that works... in a Slackware type of way... so that you would be able to control everything with the help of a simple text editor (you can do that now... but it is not a simple as just changing a line or adding one... ) just putting the content in one file and the links in another ... and so on... so it would be easy to change a template (as it would be in one file) ... if you change a link it would change all around the site...
any suggestions would be appreciated... BTW I m thinking of GPLing the whole thing...so that others would be able to use
it would be a great way to get my php skills up.. and maybe learn some JS and so on...
Is the current site just HTML/CSS? It looks really good.
I've never written a full CMS before... I've written small miniture CMS type deals, for web apps, similar. What I usually do is just look into the (GPL) code of my favourite CMS's, and pick out what I like best and modify them for what I'm doing..
The main points I would believe is to keep in mind the following:
1) Create a modular core that stands in the middle, not right at the bottom. Most think the core of a CMS should be at the bottom of a pyramid.. they end up redesigning the core later. If you just think of it as in the center of a circle.. you'll be able to add say, a new database support such as mysqli withought too much redevelopment.
Example: redesign of Joomla's "database abstraction layer" to support mysqli. It seemed the core depended on the mysql class so everything up from there was dependent on it also.
Thsi would probably be the hardest to figure out.
2) Follow existing standards and use existing scripts. There are too many advantages to this!
Some resources for scripts and design concepts/standards:
Model-View-Controller - a way to think of the structure you're designing.
Pear - Some coding principles and some "standadization"
PHPTools - some cool php apps w/ a modular base
Smarty - popular templating engine
For web Standards:
W3C - World wide web Consortium (Im sure is spelled that wrong).
You'd probably have to make a decision on what type of data your CMS will output. xHTML/CSS, or just XML/XSLT, or even something cool like: JSON/JavaScript
But if your CMS is modular enough, you should support all.. aye?
As far as the WYSIWYG editors go.. heres a list:
http://extensions.joomla.org/compone...773/Itemid,35/
Its for the Joomla CMS, but most of them are based on standalone versions so you'll probably get their original author in the GPL if you donwload them.
In my experience, the more modular you want yoru CMS, the more work you put in initially, but on the other hand the less time you'll need fixing it. But since you can't spend forever making it modular, you'll have to compromise..
I usually fall into a unending cycle where I'm designing a more and more modular core and never ever finish the *amn thing..
Hope that helps abit... and watch out for too much modularity..
I've never written a full CMS before... I've written small miniture CMS type deals, for web apps, similar. What I usually do is just look into the (GPL) code of my favourite CMS's, and pick out what I like best and modify them for what I'm doing..
The main points I would believe is to keep in mind the following:
1) Create a modular core that stands in the middle, not right at the bottom. Most think the core of a CMS should be at the bottom of a pyramid.. they end up redesigning the core later. If you just think of it as in the center of a circle.. you'll be able to add say, a new database support such as mysqli withought too much redevelopment.
Example: redesign of Joomla's "database abstraction layer" to support mysqli. It seemed the core depended on the mysql class so everything up from there was dependent on it also.
Thsi would probably be the hardest to figure out.
2) Follow existing standards and use existing scripts. There are too many advantages to this!
Some resources for scripts and design concepts/standards:
Model-View-Controller - a way to think of the structure you're designing.
Pear - Some coding principles and some "standadization"
PHPTools - some cool php apps w/ a modular base
Smarty - popular templating engine
For web Standards:
W3C - World wide web Consortium (Im sure is spelled that wrong).
You'd probably have to make a decision on what type of data your CMS will output. xHTML/CSS, or just XML/XSLT, or even something cool like: JSON/JavaScript
But if your CMS is modular enough, you should support all.. aye?
As far as the WYSIWYG editors go.. heres a list:
http://extensions.joomla.org/compone...773/Itemid,35/
Its for the Joomla CMS, but most of them are based on standalone versions so you'll probably get their original author in the GPL if you donwload them.
In my experience, the more modular you want yoru CMS, the more work you put in initially, but on the other hand the less time you'll need fixing it. But since you can't spend forever making it modular, you'll have to compromise..
I usually fall into a unending cycle where I'm designing a more and more modular core and never ever finish the *amn thing..
Hope that helps abit... and watch out for too much modularity..
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Thanks for the tips.... those links are great.... yeah it is html/css (some php for common things like links on the top and so on)
I am going to start with simple scripts that would do simple things... like control the links on the top... add and remove content... and so on... (one script and an xml file for the data) then i would work on a simple bare-bone core... as i want this to be a light as possible.... (Slackware-ish) as for templating I need to work on that on the 1st stages of the core design... as I want it to be easy to make templates (i believe this to be the selling point for any cms....)
I am going to start with simple scripts that would do simple things... like control the links on the top... add and remove content... and so on... (one script and an xml file for the data) then i would work on a simple bare-bone core... as i want this to be a light as possible.... (Slackware-ish) as for templating I need to work on that on the 1st stages of the core design... as I want it to be easy to make templates (i believe this to be the selling point for any cms....)
Last edited by badran; Nov 12th, 2006 at 5:43 pm.
![]() |
Similar Threads
- New CMS - Help Needed (PHP)
- novice needs help setting a membership up (PHP)
- Article Directory (PHP)
- PHP Programmer needed (CMS) (PHP)
- php project (PHP)
Other Threads in the PHP Forum
- Previous Thread: How to change dpi of image from 72 to 300 ?
- Next Thread: Table issue
| Thread Tools | Search this Thread |
.htaccess ajax apache api array back basic beginner binary broken cakephp checkbox class cms code computing cron curl customizableitems database date delete display dynamic echo email error file files filter folder form forms function functions gc_maxlifetime google host href htaccess html image include insert integration ip java javascript joomla limit link login loop mail memmory memory menu mlm mod_rewrite multiple mysql navigation oop parsing paypal pdf php problem query radio random recursion regex remote script search server sessions sms snippet soap source space sql syntax system table thesishelp trouble tutorial update upload url validation validator variable video web xml youtube






