Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Aug 2006
    Posts
    105
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help on this timeline

    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?

  • #2
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    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:

    PHP Code:
    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;
        } 

  • #3
    Regular Coder
    Join Date
    Mar 2005
    Location
    Pakistan
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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
    God helps those who help others.

  • #4
    Regular Coder
    Join Date
    Aug 2006
    Posts
    105
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?

  • #5
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    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

  • #6
    Regular Coder
    Join Date
    Aug 2006
    Posts
    105
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #7
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    No, that website I showed you explains the BB functions, which my function posted earlier converts to html.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •