#2558 closed defect (bug) (fixed)
Conversion issues SMF to bbPress
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | 2.5.3 |
Component: | API - Importers | Keywords: | has-patch |
Cc: |
Description
There are two minor issues with the SMF.php importer. and <br> are not being converted correctly.
Lines 722 - 728 instead of :
// Replace '<br />' with '' $SMF_markup = preg_replace( '/\<br \/\>/', '<tt>', $SMF_markup ); // Replace '[size=$1]' with '<span style="font-size:$1%;">$3</span>' $SMF_markup = preg_replace( '/\[size=(.*?)\]/', '<span style="font-size:$1">', $SMF_markup ); // Replace '[/size]' with '</span>' $SMF_markup = preg_replace( '/\[\/size\]/', '</span>', $SMF_markup );
Needs to be something like:
// Replace '<br />' with '' $SMF_markup = preg_replace( '/\<br \/\>/', '<br>', $SMF_markup ); // Replace '[size=$1]' with '<span style="font-size:$1%;">$3</span>' $SMF_markup = preg_replace( '/\[size=(.*?)\]/', '<span style="font-size:$1">', $SMF_markup ); // Replace '[/size]' with '</span>' $SMF_markup = preg_replace( '/\[\/size\]/', '</span>', $SMF_markup ); // Replace ' ' with ' ' $SMF_markup = preg_replace ( '/ /', ' ', $SMF_markup );
Attachments (1)
Note: See
TracTickets for help on using
tickets.
Thanks for this, let me know if you find any others and we'll ship this as part of 2.6