Forum Replies Created
-
In reply to: importing from local mdb – what settings please
Can you point me to the newer example, and i’ll code that for snitz so that it looks consistent and has help prompts in it, then I’ll ticket it to you.
In reply to: importing from local mdb – what settings pleasePS the example.php that downloads with the bbpress plugin doesn’t have a bit to bring the message accross, so initially I had a great forum with no topic content!
I nicked the following from another converter and it seemed to work
// Topic content.
// Note: We join the posts table because topics do not have content.
$this->field_map[] = array(
‘from_tablename’ => ‘FORUM_TOPICS’,
‘from_fieldname’ => ‘T_MESSAGE’,
‘join_tablename’ => ‘thread’,
‘join_type’ => ‘INNER’,
‘join_expression’ => ‘USING (threadid) WHERE post.parentid = 0′,
‘to_type’ => ‘topic’,
‘to_fieldname’ => ‘post_content’,
‘callback_method’ => ‘callback_html’In reply to: importing from local mdb – what settings pleaseStephen,
Thanks, that got me going in the right direction and I have achieved it.
I’ll try and post the full method for future users – I found your custom stuff useful https://codex.bbpress.org/import-forums/custom-import/
Working out the mapping and date formats took a bit of effort, but once there the rest is easy !
Thanks again
In reply to: sidebar item to link to bbpress profileand it trashed my code, try again without the ‘s
a href=”” class=”submit user-submit”><?php echo get_avatar( bbp_get_current_user_id(), '40' ); ?
In reply to: sidebar item to link to bbpress profileSorry I’m a rookie idiot that didn’t include the website