It looks like you're new here. If you want to get involved, click one of these buttons!
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
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.
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •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="QuoteText">
<
p> to @ in one instance?"
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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. :(
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •