...

View Full Version : Need help on this timeline



LondonBoy
08-29-2006, 04: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?

Mwnciau
08-29-2006, 05: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(
'/\[b\](.*?)\[\/b\]/is',
'/\[i\](.*?)\[\/i\]/is',
'/\[u\](.*?)\[\/u\]/is',
'/\[move\](.*?)\[\/move\]/is',
'/\[img\=(.*?)\]/is',
'/\[hr\]/i',
'/\[s\](.*?)\[\/s\]/is',
'/\[o\](.*?)\[\/o\]/is',
'/\[font\=(.*?)\](.*?)\[\/font\]/is',
'/\[url\=(.*?)\](.*?)\[\/url\]/is',
'/\[url\](.*?)\[\/url\]/is',
'/\[img\](.*?)\[\/img\]/is',
'/\[sup\](.*?)\[\/sup\]/is',
'/\[sub\](.*?)\[\/sub\]/is',
'/\[tr\](.*?)\[\/tr\]/is',
'/\[td\](.*?)\[\/td\]/is',
'/\[table\](.*?)\[\/table\]/is',
'/\[tr (.*?)\](.*?)\[\/tr\]/is',
'/\[td (.*?)\](.*?)\[\/td\]/is',
'/\[table (.*?)\](.*?)\[\/table\]/is',
'/\[code\](.*?)\[\/code\]/is',
'/\[email\](.*?)\[\/email\]/is',
'/\[email\=(.*?)\](.*?)\[\/email\]/is',
'/\n/i'
);

$replace = array(
'<strong>$1</strong>',
'<em>$1</em>',
'<u>$1</u>',
'<marquee>$1</marquee>',
'<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" />',
'<sup>$1</sup>',
'<sub>$1</sub>',
'<tr>$1</tr>',
'<td>$1</td>',
'<table>$1</table>',
'<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;
}

amir
08-29-2006, 05: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

LondonBoy
08-29-2006, 05: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?

Mwnciau
08-29-2006, 06: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)

LondonBoy
08-29-2006, 06: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

Thanks
Bobby K.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum