• Support notice: Alex (MD + XFtoWP lead developer) is back from a short absence and will answer support questions as normal. Thank you for your patience!
  • Welcome to the all-new Kolakube support, the official place to get help for Marketers Delight, XFtoWP, CryptoWP, and other WordPress products! Please login with your account details to access members-only support forums.

Everything says it's working. Nothing is working.

racesimcentral

Member
XFtoWP
Messages
23
Reaction score
3
Comments in forum are not doing anything in WP even though the thread is linked to post.

I can bulk action sync users and it'll literally say the user is synced or already syncing, etc, but those users do not - ever - appear in the xenforo userlist.

Basically, so far, the plugin doesn't actually do anything except have an admin panel.
 
Solution
Do I have to have comments_template() in the theme for it to function if I don't want people to comment on wp itself? I basically want to link to the forum to comment.
Yes. You can use the "replace Comments" option in the Thread Connect settings to not show wp comments and only the xf thread. You need to have this function active however.
Are you able to manually create a user from WP admin > Users > Add new? With the "Enable user sync on registration" option turned on, this will create a user in XF. This will be a good test to run before running any further bulk actions.

This guide may help you check your API connection:

 
Comment
Go to WP admin > XenForo > User syncing > Settings > Sync user registrations.
 
Comment
Fixed that. I had to disconnect them (even though the connection wasn't working) then connect them again.

But comments in the forum aren't yet showing up in WP. :(
 
Comment
It may also be worth checking that your site has comments enabled in the WordPress Settings > Discussion admin

Also in the post editor, does the XenForo meta box have an attached thread ID? Either by creating a new thread or connecting an existing one, attaching a thread will show a list of replies where your blog comments usually show up.

The only requirement from your theme is the usage of the comments_template() function, which is pretty important for rendering comments in WordPress.
 
Comment
Do I have to have comments_template() in the theme for it to function if I don't want people to comment on wp itself? I basically want to link to the forum to comment.
 
Comment
To explain that more. I basically want a link in WP that will say "Comments: 2" that links to the forum. The easiest way I could think of to do this was to have the comments copied from the XF to WP like this plugin is supposed to do, but just not show them on WP in the theme. Can I do this?

To confirm, currently, users are synced fine. Comments are not. No matter whether a post is attached to a WP post or not, whether I disconnect and reconnect, nothing gets copied from forum to WP.
 
Comment
Do I have to have comments_template() in the theme for it to function if I don't want people to comment on wp itself? I basically want to link to the forum to comment.
Yes. You can use the "replace Comments" option in the Thread Connect settings to not show wp comments and only the xf thread. You need to have this function active however.
 
Comment
Solution
Ah! It works as soon as I put that in.
Is there any way for me to get the number of comments and put it elsewhere in the template being used by single.php or on index.php?
 
Comment
(I guess I could use css and display:none; anything I don't want, then put the comments template anywhere I want it). But, do you have a nicer way? :)
 
Comment
Ah! It works as soon as I put that in.
Is there any way for me to get the number of comments and put it elsewhere in the template being used by single.php or on index.php?
Yes, xftowp will add the thread replies count to the comments total output with get_comments_number().

(I guess I could use css and display:none; anything I don't want, then put the comments template anywhere I want it). But, do you have a nicer way? :)
Which parts are you referring to?
 
Comment
Is there a template addition I can put in to get the theadid on posts that have one attached?
Something that can go:
<a href="***here?***"><? echo get_comments_number(); ?> <?php if ( '1' === get_comments_number() ) { ?>Comment<? } else { ?>Comments<? } ?></a>

I literally just want a link to the forum thread with a number in it. :)
 
Comment
Ok, I got everything working how I want but I'd love to get an easy and more lightweight way to just have this on WP:

<a href="link to forum thread">8 Comments</a>
 
Comment
PHP:
$thread_id = xf_post_meta( array( 'comments', 'thread_id' ) );
$thread_url = get_xf_url( 'threads', $thread_id );

I am on mobile so working off the top of my head, but this should return the thread url.
 
Comment
Back
Top