View Full Version : Need help on this timeline

08-29-2006, 05:58 PM
Hi all,

I need to create a section within a site, that section is basically for a non-technical person to be able to update and modify content, change text etc..

So suppose you create a website but the content manager isn't technical with HTML, so you create a section that allows that person to edit content without needing to be technical.

What are some best practices for this feature and how would you get started?
Also how long would such a feature take to build?

I don't need complex HTML, that would be hard coded and mostly the content would change.
formatting like enter, space and the regular bold, italic and underlink and make this a link, text color, images, bullets and tables would be sufficient.

Also able to change and add menu items.

How long would it take a junior programmer to do that with about 60 pages of content or so. How long would the cms type feature take to build?

I did a search and found some threads already started on this, but how long would it take for a junior developer to create such a tool? Roughly!

That's what i ned to know, how long would it take a junior developer to create this?

08-29-2006, 06:12 PM
You can simply do it by putting all your pages into a database and then using a large textarea for the person to edit the page with. You could use a BB function to process the text:

function bb($str){

$str = nl2br(htmlentities($str));
$search = array(
'/\[tr (.*?)\](.*?)\[\/tr\]/is',
'/\[td (.*?)\](.*?)\[\/td\]/is',
'/\[table (.*?)\](.*?)\[\/table\]/is',

$replace = array(
'<img src="$1" />',
'<hr />',
'<span style="text-decoration:line-through;">$1</span>',
'<span style="text-decoration:overline;">$1</span>',
'<span style="font-family:$1">$2</span>',
'<a href="$1" target="_blank">$2</a>',
'<a href="$1" target="_blank">$1</a>',
'<img src="$1" />',
'<tr $1>$2</tr>',
'<td $1>$2</td>',
'<table $1>$2</table>',
'<b>Code:</b><br /><table class="code"><tr><td class="code">$1</td></tr></table>',
'<a href="mailto:$1">$1</a>',
'<a href="mailto:$1">$2</a>',
'<br />'

// Do simple BBCode's
$str = preg_replace ($search, $replace, $str);
return $str;

08-29-2006, 06:57 PM
hi friend
it totally depends on ur skills
for junior level programmer
i think 7 days are ok to build a small scale CMS as ur requirement

08-29-2006, 06:58 PM
But I also need formatting features like bolding and text color and adding links in your example?

Also How long would this take to write from scartch?

08-29-2006, 07:15 PM
With bb to make text bold you can just use [ b ] and [/ b ] (without spaces) and to make urls you can just do [ url ] url here and [ url ] or [ url=url here] display here [ /url ]

look here (http://www.blogfeast.net/guide_to_bbcode)

08-29-2006, 07:19 PM
But this is for a website not for a blog
And client wouldn't want blogfeast to be installed on server.

So how would I create a small scale cms that allows client to do edits, deletions, formatting such as images, bold, italic, changing tables etc...

And how in the world would allowing the client to create tables work?
Also change menu items and bullets

Bobby K.

08-29-2006, 07:56 PM
No, that website I showed you explains the BB functions, which my function posted earlier converts to html.