[phpBB2] Disable [code] tag from BBCode

Discussion in 'PHP' started by Divvy, Oct 28, 2009.

  1. #1
    hi guys,

    Can someone help me?
    I like to make a url clickable inside of a
     tags.
    
    I am using a database from an old forum and would like to disable all [code] tags that appears in all posts. I only need this to make urls into links. So, If exists a easy way to make this, please let me know
    
    Thank you
    
    This is my includes/bbcode.php file:
    http://amadoras1.do.sapo.pt/bbcode.txt
    Code (markup):
     
    Divvy, Oct 28, 2009 IP
  2. Divvy

    Divvy Well-Known Member

    Messages:
    785
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #2
    Please, someone?
    Need to make urls clickable inside the code tag...

    Anyone please?
     
    Divvy, Oct 28, 2009 IP
  3. Divvy

    Divvy Well-Known Member

    Messages:
    785
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #3
    I tried this:

    Find:
    // [code] and [/code] for posting code (HTML, PHP, C etc etc) in your posts.
    $text = bbencode_first_pass_pda($text, $uid, '[code]', '[/code]', '', true, '');
    PHP:
    Replace:
    // [code] and [/code] for posting code (HTML, PHP, C etc etc) in your posts.
    //$text = bbencode_first_pass_pda($text, $uid, '[code]', '[/code]', '', true, '');
    PHP:
    But appears like that:
    http://i38.tinypic.com/v33io8.jpg

    Now only need to make the url clickable... If I put the url without the tags appears fine, but with tags and with the modification above, appears like I show in the link above.
    Can you make only the url clickable inside the code tag? Please?
     
    Divvy, Oct 28, 2009 IP
  4. Divvy

    Divvy Well-Known Member

    Messages:
    785
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    128
    #4
    Please, someone?
     
    Divvy, Oct 29, 2009 IP