Sign in to follow this  
Shinji3rd

How to post full article to forum topic instead of the excerpt

Recommended Posts

Hello!

I recently purchased IPWI for Wordpress 3, and I am truly happy with it. It all works great and smooth, I love it.

But there is one little thing I can't solve. My WP theme let me add a personalized excerpt for the articles, so I can improve SEO among other things, but this caused a little problem when I was using another bridge system, and now the same happens woth IPWI.

The problem is that when I post something in WP, a topic is created in the IPB forum but the content of that topic is the article's personalized excerpt instead of the full article. With the other bridge system, I solved the problem by changing a line of code from

$content = !empty($post->post_excerpt) ? $post->post_excerpt : $post->post_content;

to

$content = $post->post_content;

but I don't know what to touch here on IPWI to get the same results. I'm sure that the solution is just that simple too, I'll appreciate if you can point me in the right direction to fix this.

 

And another detail is that the topic in IPB is created by me, even if I publish a WP article written by another author on my site, like if it does not take in account who is the author but instead who is logged and posting the article.

 

Thanks!

Edited by Shinji3rd

Share this post


Link to post
Share on other sites

In the IPBWI topics/comments settings, you can set the excerpt length and author id behavior of IPBWI for WordPress :)

module sourcecode is in \wp-content\plugins\ipbwi\lib\wordpress\topics\comments.inc.php

Share this post


Link to post
Share on other sites

Oh, I know about IPWI topic/comments settings, and its set to "Wordpress Post author", but for example, if I review a pending article from one of my writers and then I publish it, WP shows the writer as the author in WP, as usual, but the post in the forum appear with me as the author and not the WP post author, as intended.

About the excerpt lenght, that's not a problem. What I want is a forum topic created after publishing an article, containing the full article in the post instead of the excerpt. If that's possible, then great. If not, then it is not a big problem either.

EDITION: Ok, the "problem" about posting the excerpt instead of the full article has been solved by changing one line of code in the module sourcecode.

But still the problem about the author being me if I publish someone else's WP post remains.

 

@straightvisions

NEW EDIT:

I found out that the problem is not only with the author settings. When I publish a new article in WordPress it creates a new post in the forum, BUT IT DOES NOT LINK ONE TO THE OTHER. I mean, when you open the article, in the comments section you can see that it says "there is no topic created" and if someone leave a comment, a new topic is created and that topic is then linked to the WordPress publication.

You can see how I configured the options here: https://gyazo.com/9ea67f29778b91b4525d6e49f034d9ea

As you can see, Forum for Comments is set to "Portal", and the Auto create Discussion Topics is enabled. It does those two things, but it does not link one to the other. In fact, after I publish the WP article, I can see that there is no topic ID in the WP Edit screen, and also no category selected either.

For the other option, you can see that I have selected "Wordpress Post Author" as the IP.board's Author ID for the topic created, but as I have commented before, that does not work either, because if I publish an article on which I am not the author, the article is correctly published in WP, but the IP.board's post is assigned to me as author instead of the WordPress article post author.

I think that there may be a single problem here, causing this two things: not linking the forum post with the WP article and not assigning the author correctly.

Edited by Shinji3rd

Share this post


Link to post
Share on other sites

Hi,

the "post discussion topic as WP post author" feature requires that the WP post author has a synced IP.board account. If IPBWI for WordPress tries to retrieve the user ID from board with the given author data and has no success, the behavior described occurs.

Kind regards,

Matthias

Share this post


Link to post
Share on other sites
6 hours ago, straightvisions said:

Hi,

the "post discussion topic as WP post author" feature requires that the WP post author has a synced IP.board account. If IPBWI for WordPress tries to retrieve the user ID from board with the given author data and has no success, the behavior described occurs.

Kind regards,

Matthias

They are all synced, Matthias. Same email and same username. The only difference is the name to show. I will check if that is the problem.

 

Edit: Nope, that's not the problem. I have changed some data in my WP profile and it changed also in IP.Board, so the user is synced. Then I have posted an article in WP, it created a topic in IPB, but it did not set the topic ID to the article, I had to do it manually.

Edited by Shinji3rd

Share this post


Link to post
Share on other sites
Sign in to follow this