59.4 F
Los Angeles
Tuesday, May 14, 2024

Trump Lawyer Resigns One Day Before Trial To Begin

Joseph Tacopina has filed with the courts that he will not represent Donald J. Trump. The E. Jean Carroll civil case is schedule to begin Tuesday January 16,...

Judge Lewis A. Kaplan Issues Order RE Postponement

On May 9, 2023, a jury found Donald J. Trump liable for sexual assault and defamation. The jury awarded Ms. Carroll $5 million in damages. Seven months ago,...

ASUS Announces 2023 Vivobook Classic Series

On April 7, 2023, ASUS introduced five new models in the 2023 Vivobook Classic series of laptops. The top laptops in the series use the 13th Gen Intel® Core™...
WebdesignWordPressRewriting of xf_integration.php file

Rewriting of xf_integration.php file

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’);
}
[/code]

Latest news

Related news