XenScripts WordPress to XenForo Bridge [Paid] [Deleted]

Are you using the latest version? This error was repaired in 1.25.

For now, here is a temporary fix until you get the latest released version.
http://xenscripts.com/community/threads/wordpress-3-5.565/page-2#post-1617

I used the above code and it worked wonderfully. Creating a post in WordPress is now successfully creating a XenForo thread for it.

I'm trying to make the comments bubble on my front page now link to its corresponding XenForo thread. This is the edit I made - shouldn't it work?

PHP:
<a href="<?php xenforo_thread_url(); ?>"><?php global $post_id; echo get_comments_number( $post_id ); ?></a>

After making this change, the link now goes to the site homepage... doesn't link to the corresponding XenForo thread. The comment number shows correctly, however.

I have everything unchecked in XenScripts settings besides "Automatically create threads in XenForo" and "replace wordpress comments system with XenForo one"
 
Last edited:
I see that this is the code used to generate the link to the XenForo thread:

PHP:
global $XF;

    if($XF->useXenForoCommentHandler() && isset($XF->post->thread_id) && $XF->post->thread_id != '0')
    {
        $link = $XF->createLink('threads/' . $XF->post->thread_id . '/');
        return $link;
    }
    else
    {
        return '';
    }

Mine seems to always be returning ' '. @LPH
 
Last edited:
Jamie sent me a download link and I downloaded the version via my page on xenscripts.com. There isn't a version number anywhere to be seen.

http://community.tuxreportsnetwork.com/resources/howto-find-xenscripts-version-number.21/

I used the above code and it worked wonderfully. Creating a post in WordPress is now successfully creating a XenForo thread for it.

Excellent news.

I'm trying to make the comments bubble on my front page now link to its corresponding XenForo thread. This is the edit I made - shouldn't it work?

http://community.tuxreportsnetwork....on-links-to-bottom-of-wordpress-blog-post.11/
 
I just noticed another odd "bug" that happens when the plugin is enabled (even though I don't have a setting checked for it). The admin's username was changed and displayed as the username set in XenForo, and my other Author's username seems to have randomly been changed to the name of another random forum member. When the plugin is disabled, the name changes revert back to normal.
 
Yes. Please contact Jamie.
Alright, I have 1.25 now.

I replaced the code in xf_replacement_comment_header with the following

PHP:
//function to be used in templates to display a link to the XenForo thread
function xenforo_thread_url()
{
global $XF;

if($XF->useXenForoCommentHandler() && isset($XF->post->thread_id) && $XF->post->thread_id != '0')
{
$link = '/forums/threads/' . $XF->post->thread_id . '/';
return $link;
}
else
{
return '';
}
}

All front page posts are still showing the correct number of comments but are just linking to the site's domain name.

Here's a dump of the template code I'm trying to edit: http://pastebin.com/5LR1CCpY

I'm assuming I had to edit the above path to /forums/threads/ rather than /community/threads/ to match my directory.

What am I missing?
 
Let me modify the instructions. The word templates is misleading. I should have said to modify the WordPress child theme comments.php file.
 
I am getting this error on all the articles where it is supposed to show the comment count.

Strict Standards: Only variables should be passed by reference in/home/xxx/public_html/news/wp-content/plugins/xf_integration/include/xf_replacement_comment_handler.php on line 287

This is on current released version of the add-on. The only change that I did today was recompiled PHP with PDO and PDO MySQL support.
 
Last edited:
I am getting this error on all the articles where it is supposed to show the comment count.

As a guess, that is a PHP warning regarding the passing of insertion_id in the function xf_set_post_id. This could be fixed by storing the value in a variable first then using the variable in the UPDATE.

Please let me know if that fixes the issue.

This is on current released version of the add-on. The only change that I did today was recompiled PHP with PDO and PDO MySQL support.

Please be more specific. Which version of XS is installed? Does it state 1.25 in the WP plugins area? Which version of PHP are you using?
 
As a guess, that is a PHP warning regarding the passing of insertion_id in the function xf_set_post_id. This could be fixed by storing the value in a variable first then using the variable in the UPDATE.
Please let me know if that fixes the issue.

Please be more specific. Which version of XS is installed? Does it state 1.25 in the WP plugins area? Which version of PHP are you using?
I think you could be right. I had seen similar solutions on stackoverflow too. Don't want to setup a test environment right away or play with my live site right now.

It is XS1.1 and PHP 5.4
 
there's a vanilla forums plugin for wordpress that lets you comment on wordpress posts using the vanilla forum... basically, like this plugin but it also shows the thread replies in the post as comments... something like the disqus plugin... like it takes over and replaces the wordpress comment system... is that possible? can something like that be added to your plugin? willing to pay extra for it...
 
Back
Top Bottom