import untouched content
When importing from phpBB BBCode is NOT converted, this will hopefully be an option in future releases.
Have a look at the raw data in your MySQL database not the rendered HTML output, apart from some ‘line breaks’ (<br />) you will find this data is identical.
phpBBv3: phpbb_posts.post_text bbPress: wp_posts.post_content
If you are actually wanting the importer to convert phpBB’s BBCode during import that is being worked on for future versions of bbPress and the import/conversion tool.
those was RAW data from MYSQL DB …
i actually DON’T NEED to convert BBCodes – i need original post texts, and that is the problem, cause bbpress converter convert [quote] to DIV
temporary fix was – to get original text from the phpbb_posts table via wp_postmeta key _bbp_post_id
OK, I’m with you now, are you going to use a BBCode plugin for bbPress to render the HTML output?
I have just started working on a patch to add CSS for bbcode_quote, bbcode_quote_head, bbcode_quote_body and a few of the other CSS classes that are are parsed with bbp-parser.php
i updated my sample
also btw – in the bbpress is bug in link parsing:
<a href="http://www.flickr.com/photos/29725651@N02/sets/72157630105769752/">@N" rel="nofollow">http://www.flickr.com/photos/29725651@N ... 105769752/</a>
is parsed to:
in example above, the problem is the DOTS.if we will remove those dots, parsing will be correct:
is parsed to:
I don’t understand. Do you mean here at bbPress.org? If not, and you mean the bbPress software, it’s using whatever WordPress core uses.
@capsx Those are phpBB ‘magic_url’ and phpBB by default will truncate/shorten all URL’s to 55 characters. It does this so there are not extremely long URL’s in posts. eg. This URL is 63 characters in length, phpBB will leave the ‘href’ in tact but shorten the displayed URL to 55 characters.
<a href="http://www.example.com/directory/directory/directory/directory/">http://www.example.com/directory/directo ... directory/</a>
phpBB SQL DB stores this in the posts table with the following code
<!-- m --><a href="http://www.example.com/directory/directory/directory/directory/">http://www.example.com/directory/directo ... directory/</a><!-- m -->
Thanks for posting your example code above.You may also want to look at http://bbpress.trac.wordpress.org/ticket/1884
- This reply was modified 9 months, 1 week ago by Stephen Edgar. Reason: code formatting
i understand that phpBB truncate those urls
the problem is – BBPRESS CANT SHOW THOSE URLS
WP CAN …
p.s. maybe we can talk in IRC ???
You must be logged in to reply to this topic.