Wordpress Comment Show full post instead of excerpt ?

So, the wordpress comment integration feature allow me to create a new topic in the forum with the excerpt and link to the original post. Any way for it to show the full one ?

Comments

  • BleistivtBleistivt Moderator
    edited December 2014

    Yes, by removing these 2 lines:
    https://github.com/vanilla/vanilla/blob/8633a73feb4eed238e41dd10df835fd127671313/library/core/functions.general.php#L795-L796

    To prevent losing your changes on the next update, copy the entire function:
    https://github.com/vanilla/vanilla/blob/2.1/library/core/functions.general.php#L725-L828

    to your conf/bootstrap.before.php and make the changes there.

  • @Bleistivt said:
    Yes, by removing these 2 lines:
    https://github.com/vanilla/vanilla/blob/8633a73feb4eed238e41dd10df835fd127671313/library/core/functions.general.php#L795-L796

    To prevent losing your changes on the next update, copy the entire function:
    https://github.com/vanilla/vanilla/blob/2.1/library/core/functions.general.php#L725-L828

    to your conf/bootstrap.before.php and make the changes there.

    Where do I need to remove the lines ? And aside from copying over the function, what do I need to change in the bootstrap.before file ?

  • Just add it to the end of the file or create it if it doesn't exist (make sure it starts with <?php)

    Then copy the code block I linked to in the file and remove the lines there.

  • @Bleistivt said:
    Just add it to the end of the file or create it if it doesn't exist (make sure it starts with <?php)

    Then copy the code block I linked to in the file and remove the lines there.

    I don't have the file so I need to create it right ? But then there weren't any of those 2 lines to begin with so how I'm I suppose to delete them ?

  • you need to think logically. and place the steps in order.

    here is an attached zip of what bleistivt suggested with the changes.

    just download unzip and place in your conf folder.

  • @peregrine said:
    you need to think logically. and place the steps in order.

    here is an attached zip of what bleistivt suggested with the changes.

    just download unzip and place in your conf folder.

    Thanks but let me try if this is the correct one, don't want to let you guys do all the work everytime:
    1. Create the file and copy everything from the link
    2. Delete the 2 lines

    Is this the correct one ?
    And also can anyone help me with the other 2 thread ?

  • @peregrine said:
    you need to think logically. and place the steps in order.

    here is an attached zip of what bleistivt suggested with the changes.

    just download unzip and place in your conf folder.

    It doesn't seems to be working, still only show the excerpt. Any ideas ?

  • I didn't test I don't use wordpress comment integration, so I have no idea. I simply followed the instructions and posted a zip since you seemed to misunderstand the instructions.

  • @peregrine said:
    I didn't test I don't use wordpress comment integration, so I have no idea. I simply followed the instructions and posted a zip since you seemed to misunderstand the instructions.

    Thanks a lot for it anyway.
    Can anyone else give me some ideas ?

  • This kind of depends on the meta tags from your wordpress site. If it finds og:description it will use this instead.
    I looked at you site and it seems like your SEO WP plugin does that, so you also need to remove this line:

    $PageInfo['Description'] = DomGetContent($Dom, 'meta[property=og:description]');
    

    You can also test by clicking on "Refetch page" in the gear menu of a linked topic.

  • @Bleistivt said:
    This kind of depends on the meta tags from your wordpress site. If it finds og:description it will use this instead.
    I looked at you site and it seems like your SEO WP plugin does that, so you also need to remove this line:

    $PageInfo['Description'] = DomGetContent($Dom, 'meta[property=og:description]');
    

    You can also test by clicking on "Refetch page" in the gear menu of a linked topic.

    Still not working and clicking Refetch page doesn't do anything. This is annoying. Hope we'll solve this soon.

  • Try if disabling your WP SEO plugin changes anything.

  • @Bleistivt said:
    Try if disabling your WP SEO plugin changes anything.

    I disabled them, still the same.

  • BleistivtBleistivt Moderator
    edited December 2014

    I just tested it myself with one of your blog posts and it fetches the full text.

    Your site takes very long to load, I suspect it times out, as this happened a few times when I tried.

    Can you enable Debug mode and click "Refetch page" again? Look if an error message pops up in an inform notification.

  • GogitoGogito New
    edited December 2014

    @Bleistivt said:
    I just tested it myself with one of your blog posts and it fetches the full text.

    Your site takes very long to load, I suspect it times out, as this happened a few times when I tried.

    Can you enable Debug mode and click "Refetch page" again? Look if an error message pops up in an inform notification.

    Thanks a lot. I'll try it and report.

  • @Gogito said:
    Thanks a lot. I'll try it and report.

    It said Page refetch succesfully. And how did you test ?

  • BleistivtBleistivt Moderator
    edited December 2014

    @Gogito said:
    It said Page refetch succesfully. And how did you test ?

    by linking a topic in my local test board to one of your blog posts. This is what I get:

    What do you get when you click Refetch page on that discussion?

  • GogitoGogito New
    edited December 2014

    @Bleistivt said:

    Well, it changed the image and the post title, now it's including my site name "the you...."

    But that was a very short post, just 1 paragraph. It doesn't fetch full with other long post.

Sign In or Register to comment.