import untouched content
-
hello!
is it possible to import untouched content ?
i need to import forums from phpBB, and i need untouched content – import 1:1???
-
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.
- This reply was modified 12 years, 4 months ago by Stephen Edgar.
- This reply was modified 12 years, 4 months ago by Stephen Edgar. Reason: markdown
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
see it here: http://paste.php.lv/082eff9d3001b4a10de96e5a0baed45a?lang=php
also btw – in the bbpress is bug in link parsing:
link:
<a href="http://www.flickr.com/photos/29725651@N02/sets/72157630105769752/">http://www.flickr.com/photos/29725651@N ... 105769752/</a>
is parsed to:
<a href="http://www.flickr.com/photos/29725651@N02/sets/72157630105769752/"></a><a href="http://www.flickr.com/photos/29725651@N">http://www.flickr.com/photos/29725651@N</a> … 105769752/
in example above, the problem is the DOTS.if we will remove those dots, parsing will be correct:
<a href="http://www.flickr.com/photos/29725651@N02/sets/72157630105769752/">http://www.flickr.com/photos/29725651@N105769752/</a>
is parsed to:
<a href="http://www.flickr.com/photos/29725651@N02/sets/72157630105769752/">http://www.flickr.com/photos/29725651@N105769752/</a>
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.
check those two posts:
link in standart WP post: http://wordpress.versuspro.lv/uncategorized/test/
the same link in the forum: http://wordpress.versuspro.lv/forums/topic/test/
@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 -->
There is more info on ‘magic_url’ here and here.
Thanks for posting your example code above.You may also want to look at https://bbpress.trac.wordpress.org/ticket/1884
- This reply was modified 12 years, 4 months 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 ???
Sure jump into #bbpress on irc.freenode.net
- You must be logged in to reply to this topic.