944,179 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1504
  • PHP RSS
Nov 12th, 2006
0

CMS....php

Expand Post »
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...
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
badran is offline Offline
21 posts
since Oct 2006
Nov 12th, 2006
0

Re: CMS....php

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..
Moderator
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
digital-ether is offline Offline
1,250 posts
since Sep 2005
Nov 12th, 2006
0

Re: CMS....php

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....)
Last edited by badran; Nov 12th, 2006 at 5:43 pm.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
badran is offline Offline
21 posts
since Oct 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How to change dpi of image from 72 to 300 ?
Next Thread in PHP Forum Timeline: Table issue





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC