Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: phpbb3 -> bbpress converter

@psycheangels

Member

Fix Topic Slug phpBB Convert bbPress

add this to function.php in your template file

function fix_topicslug() {
global $bbdb;
$get_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE topic_slug='' ");
foreach( $get_topics as $get_topic ) {
$slug_fix = bb_slug_sanitize( wp_specialchars_decode($get_topic->topic_title));
$topic_id = $get_topic->topic_id;
$bbdb->query("UPDATE $bbdb->topics SET topic_slug= '$slug_fix' WHERE topic_id = '$topic_id' ;");
}
}

and echo fix_topicslug in header. cek your database, and dont forget to remove the above code if you already finish.

my problem now the post_position is broken after convert to bbpress (all post is position 1) any fix ?

Skip to toolbar