Results 1 to 9 of 9
  1. #1
    Casual Pligger Lostshootingstar's Avatar
    Joined
    Sep 2007
    Posts
    33
    Thanks
    Received:0
    Given: 0

    Rich text editor (like VB!)

    I'm sure this has been brought up before, but i searched and didn't find anything worth while.

    I'm trying to shift my pligg site "business model" from a link aggregation site, to a more "unique content" site.

    One thing that really makes this difficult is the lack of formating options for the story text. HTML is kind of a sloppy way for users to generate unique content.

    I would really love to implement something like Vbulletin has.

    90% of my traffic comes from automotive forums, and everyone is familiar with BB code and how to format text, insert images, etc, so i'd like to proivde them with the same kind of interface.

    Any tips on where to start with this? any PHP frameworks available for this kind of thing? should i just look at PHPbb or Vbulletin code and figure it out myself?

    Also, does anyone know how VB stores this "rich text" in the sql database? does it parse the [ BBcode ] tags at submission time, or at display time?

    Any information would be appreciated!

    -Eric

  2. #2
    Casual Pligger Lostshootingstar's Avatar
    Joined
    Sep 2007
    Posts
    33
    Thanks
    Received:0
    Given: 0
    For anyone looking to do this:

    I found a great, really SIMPLE bbcode parser here:
    Simple BB Code Parser - Web Tech 101

    Its really easy to use.

    1. copy the simple_bb_code.php file to the libs/ folder

    2. Add the following to link.php
    PHP Code:

    /* Add this code at the top of link.php, BEFORE the class link { .. } declaration */
    require_once('simple_bb_code.php');


    /* Find this code */
    if($type == "full"){
        
    $smarty->assign('story_content'$this->content );
    }

    /* replace it with this */
    $bb = new Simple_BB_Code();

    if(
    $type == "full"){
        
    $smarty->assign('story_content'$bb->parse($this->content) );

    Thats it! I know have fully functional BBcode parsing.

    I'm now working on an attractive text editor for the submission process.

  3. #3
    Casual Pligger Lostshootingstar's Avatar
    Joined
    Sep 2007
    Posts
    33
    Thanks
    Received:0
    Given: 0
    Here is a screen shot. Its not LIVE yet (there are still a bunch of things i need to work out). but it works!

    Things to do:
    figure what to do with summary: The BBcode is being truncated at 150 characters, which causes problems (obviously). not sure how i want to handle this yet.
    Attached Images Attached Images

  4. #4
    Casual Pligger Lostshootingstar's Avatar
    Joined
    Sep 2007
    Posts
    33
    Thanks
    Received:0
    Given: 0
    Finished product: screenshot attached.
    Attached Images Attached Images

  5. #5
    New Pligger seriestv's Avatar
    Joined
    Sep 2008
    Posts
    1
    Thanks
    Received:0
    Given: 0
    But did you achieved to the last product?

    What are all the steps?

  6. #6
    Pligg Donor catchpen's Avatar
    Joined
    Jan 2008
    Posts
    185
    Thanks
    Received:1
    Given: 0
    Quote Originally Posted by seriestv View Post
    But did you achieved to the last product?

    What are all the steps?
    http://forums.pligg.com/pligg-mods/5...-step-2-a.html

    nicedit is a good one too no overkill

    http://forums.pligg.com/pligg-mods/5...html#post56217

  7. #7
    Casual Pligger Jessemn's Avatar
    Joined
    Jun 2008
    Posts
    56
    Thanks
    Received:0
    Given: 0
    Have you thought about adding this sort of thing to the comments (ie. adding it to the story page)?

    I would enjoy having a comment system that was closer to that of a forum, using bbcode rather than its html equivalent.

    This seems like it shouldn't bee too difficult to implement... hmmm... I'll try to take a look at this over the weekend. Unless any of you have any other thoughts.

  8. #8
    Pligg Donor pxlpshr's Avatar
    Joined
    Aug 2008
    Posts
    39
    Thanks
    Received:0
    Given: 0
    Quote Originally Posted by Lostshootingstar View Post
    For anyone looking to do this:

    I found a great, really SIMPLE bbcode parser here:
    Simple BB Code Parser - Web Tech 101

    Its really easy to use.

    1. copy the simple_bb_code.php file to the libs/ folder

    2. Add the following to link.php

    how do I add in support so that it filters properly in the link summary? the story page looks fine, but the story summary displays the BBCode.

  9. #9
    New Pligger plug's Avatar
    Joined
    Feb 2008
    Posts
    13
    Thanks
    Received:0
    Given: 0
    Thanks for the snippet bud.

Similar Threads

  1. Drag and Drop editor incl. text and images pligg 9.5.5
    By Fred007 in forum Questions & Comments
    Replies: 0
    Last Post: 01-15-2009, 10:07 PM
  2. Rich text Editor
    By Lostshootingstar in forum Questions & Comments
    Replies: 1
    Last Post: 01-08-2008, 03:57 PM
  3. Changing Text Editor
    By anandn in forum Questions & Comments
    Replies: 0
    Last Post: 12-21-2007, 07:15 AM
  4. Text Editor: line endings
    By revolver in forum Questions & Comments
    Replies: 0
    Last Post: 05-09-2007, 09:35 AM
  5. Text Editor for Users in Summary?
    By abcdefgary in forum Questions & Comments
    Replies: 2
    Last Post: 02-13-2007, 05:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg