Skip to:
Content

bbPress.org

Changeset 5350


Ignore:
Timestamp:
05/16/2014 01:51:38 AM (8 years ago)
Author:
netweb
Message:

Add support to vBulletin importer for 'YouTube Share' BBCode
Props netweb. Fixes #2601

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/converters/vBulletin.php

    r5349 r5350  
    649649        $vbulletin_markup = preg_replace( '/\[QUOTE\]/', '<blockquote>', $vbulletin_markup );
    650650        // Replace '[QUOTE=User Name($1);PostID($2)]' with '<em>@$1 $2 wrote:</em><blockquote>"
    651         $vbulletin_markup = preg_replace( '/\[QUOTE=(.*?);(.*?)\]/' , '<em>@$1 $2 wrote:</em><blockquote>', $vbulletin_markup );
     651        $vbulletin_markup = preg_replace( '/\[QUOTE=(.*?);(.*?)\]/', '<em>@$1 $2 wrote:</em><blockquote>', $vbulletin_markup );
    652652        // Replace '[/QUOTE]' with '</blockquote>'
    653653        $vbulletin_markup = preg_replace( '/\[\/QUOTE\]/', '</blockquote>', $vbulletin_markup );
     
    657657        // Replace '[video=youtube;$1]$2[/video]' with '$2"
    658658        $vbulletin_markup = preg_replace( '/\[video\=youtube;(.*?)\](.*?)\[\/video\]/', '$2', $vbulletin_markup );
     659        // Replace '[video=youtube_share;$1]$2[/video]' with '$2"
     660        $vbulletin_markup = preg_replace( '/\[video\=youtube_share;(.*?)\](.*?)\[\/video\]/', '$2', $vbulletin_markup );
    659661
    660662        // Now that vBulletin custom HTML has been stripped put the cleaned HTML back in $field
Note: See TracChangeset for help on using the changeset viewer.