1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 HTML code reappearing after import

Discussion in 'Installation, Upgrade, and Import Support' started by Thierry Martin, Mar 9, 2014.

  1. In vBulletin 4.2.2 I had a forum with many posts where I saved the posts with html which were then converted to BB code. Now after importing, some of these posts have the original HTML showing, in some cases mixed in with part of the post in BB code. This is weird.
  2. Mike

    Mike XenForo Developer Staff Member

    For the most part, the post is imported as is. It sounds like the HTML was actually in the post (and you had HTML enabled for that forum, which XF does not support). I'm afraid the markup would have to be edited manually.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  4. Here is the code that needs to be converted - Please note the where I entered XXXXX this is a string that changes from one instance to the next so the XXXXX is not something that should be altered in the cleanup, but it needs to be untouched. I suppose I will have to do multiple passes, changing the string before and then between and then after those XXXXs.

    (<u><a href="http://insidestocks.com/chart.asp?sym=XXXXX&amp;code=BCMM" target="_blank">XXXXX </a></u>) (<u><a href="http://club.ino.com/trend/analysis/stock/XXXXX?a_aid=CD28&amp;a_bid=6ae5b6f7" target="_blank">analysis</a></u>) <i>(XXXXX)</i>
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    What is the before and after?
  6. Before
    (<u><a href="http://insidestocks.com/chart.asp?sym=XXXXX&amp;code=BCMM" target="_blank">XXXXX</a></u>) (<u><a href="http://club.ino.com/trend/analysis/stock/XXXXX?a_aid=CD28&amp;a_bid=6ae5b6f7" target="_blank">analysis</a></u>)

    ([U][URL='http://insidestocks.com/chart.asp?sym=XXXXX&code=BCMM']XXXXX[/URL][/U]) ([U][URL='http://club.ino.com/trend/analysis/stock/XXXXX?a_aid=CD28&a_bid=6ae5b6f7']analysis[/URL][/U])
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Quick Find: (<u><a href="http://insidestocks.com/chart.asp

    Regular Expression: #(<u><a href="http://insidestocks\.com/chart\.asp\?sym=([^&"]+)&amp;code=BCMM" target="_blank">([^<]+)</a></u>) (<u><a href="http://club\.ino\.com/trend/analysis/stock/([^\?"]+)\?a_aid=CD28&amp;a_bid=6ae5b6f7" target="_blank">analysis</a></u>)#siU

    Replacement String: ([U][URL='http://insidestocks.com/chart.asp?sym=\1&code=BCMM']\2[/URL][/U]) ([U][URL='http://club.ino.com/trend/analysis/stock/\3?a_aid=CD28&a_bid=6ae5b6f7']analysis[/URL][/U])
  8. Wow you are a lifesaver, I have hundreds of posts that need fixing, going back years. Thanks!

Share This Page