• Welcome to Tux Reports: Where Penguins Fly. We hope you find the topics varied, interesting, and worthy of your time. Please become a member and join in the discussions.

Rewriting of xf_integration.php file

LPH

Flight Director
Flight Instructor
Jaime Holmes of XenScripts has done a great job getting the WordPress-XenForo Bridge functioning. There are still a few glitches regarding double posts. For example, I have a site with the thread creation off and yet the post is still made. This causes double postings in the forums. The following if statements might alleviate the issue.

Code:
global $XF, $wpdb;

if($XF->options['use_thread_creation_page'] == 'on')
{
add_action('publish_page', 'xf_edit_post');
}

if($XF->options['use_thread_creation'] == 'on')
{
//the edit post actions
add_action('publish_post', 'xf_edit_post');

//the post creation actions
add_action('pending_to_publish', 'xf_new_post');
add_action('draft_to_publish', 'xf_new_post');
add_action('new_to_publish', 'xf_new_post');
add_action('future_to_publish','xf_new_post');
}
View the Post on the Blog
 

LPH

Flight Director
Flight Instructor
Unfortunately this did not repair the issue. Duplicate posts are still being done.
 
Top