Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

Problem importing posts from phpbb 3 to Vanilla 2

This discussion is related to the Vanilla Porter addon.

Hello,

I've been trying to export posts from phpbb3 that include bbcode such as [spoiler], [spoiler=], [video], [url=] and the usual nested quotes ([quote], [quote=]).

When importing everything to Vanilla 2; I'm loosing all of the nested quotes (it only preserves the first quote of a post), the same behaviour is observed on url links (it preserves the first tag and link and neglects the links of subsequent tags).

Is it possible for me to edit the importer in order to handle these specifics? Or is there another way?

Comments

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP

    try my version https://dl.dropbox.com/u/15933183/porterplus/porterplus.php

    it has a bunch of phpBB fixes.

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

    UnderDog
  • Thanks @x00, your version seems to fix most of the problems, just a couple of questions.

    The "search to replace" boxes do they override/take priority over the "convert bbcode to html" option?

    Is there an option for making the "search to replace" boxes convert

    <

    blockquote class="UserQuote">

    said:

    <

    div class="QuoteText">

    <

    p> to @ in one instance?"

  • Thanks @x00, your version seems to fix most of the problems, just a couple of questions.

    The "search to replace" boxes do they override/take priority over the "convert bbcode to html" option?

    Is there an option for making the "search to replace" boxes convert <blockquote class="UserQuote"><div class="QuoteAuthor"><a href="/profile/" rel="nofollow"></a> said:</div><div class="QuoteText"><p> to @<username> in one instance?"

    P.S.: Sorry for the double post, couldn't make the code show properly in previous post.

    P.S. 2: And not on this one either. :(

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP

    notice you can reorder the options, the parsing happens in the or same order of precedence.

    You could try something like

    <div class="QuoteAuthor"><a href="/profile[^>]*>([^<]*)</a> said:</div> -> <div class="QuoteAuthor">@$1 said:</div>

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

    UnderDog
Sign In or Register to comment.