Import bug with SMF Private Messages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Adavb
    New Member
    • Jun 2008
    • 4

    Import bug with SMF Private Messages

    Hello Jerry,

    We've found another minor problem with the impex when converting from SMF 1.1.4.

    It seems that private messages are not being converted thoroughly. Some of the BBCode is not being converted and double quotes are not either. The only way to get the double quotes to display properly in the private message is to turn on HTML formatting on in the vbulletin options. Not sure if thats safe.

    Anyway here's a pic a fresh conversion of the Private messages using 1.90 impex:

  • Jerry
    Senior Member
    • Dec 2002
    • 9137
    • 1.1.x

    #2
    Parser must of missed the html chars, try this SQL :

    Code:
    UPDATE pmtext SET message = REPLACE(pagetext, '"', '"') WHERE pagetext LIKE '%&quot%';
    I wrote ImpEx.

    Blog | Me

    Comment

    • Adavb
      New Member
      • Jun 2008
      • 4

      #3
      Originally posted by Jerry
      Parser must of missed the html chars, try this SQL :

      Code:
      UPDATE pmtext SET message = REPLACE(pagetext, '"', '"') WHERE pagetext LIKE '%&quot%';
      That code gave me an error, but I modified it some and it worked:
      Code:
      UPDATE vb_pmtext SET message = REPLACE(message, '"', '"') WHERE message LIKE '%&quot%';
      Now is there another magical sql to fix the bbcode quote?

      Comment

      • Jerry
        Senior Member
        • Dec 2002
        • 9137
        • 1.1.x

        #4
        You'll have to use cleaner.php for that, the SMF specific HTML parsing was missing from the PM's for some reason, though was on the post texts.

        I've added that now.

        You'll have to use this line in cleaner to get it :

        PHP Code:
        $text preg_replace('#\[quote author=(.*)\]#siU''[quote=$1]'$text); 
        Replacing line 142 :

        PHP Code:
        #$text = preg_replace('##siU', '', $text); 
        I wrote ImpEx.

        Blog | Me

        Comment

        Related Topics

        Collapse

        Working...