Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    One of my clients is experiencing a similar issue and after some investigation it led me to this.

    Connect to your site via FTP (FileZilla is good) and under the following directory:
    wp-content/plugins/buddypress/bp-activity/classes/

    Open class-bp-activity-activity.php in a code editor or even notepad.

    At line: 602 replace
    if ( ! empty( $r[‘count_total’] ) ) {
    with
    if ( empty( $r[‘count_total’] ) ) {

    Please let me know if this works for you.

    This however may break upon upgrading buddypress as they may overwrite these changes so I’d advise keeping an eye on this.

    So, how can I remove this text: “Viewing 1 – 0 of 0 items”

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    Sorry about the delayed reply.
    The solution by @georged19 is right about the soution and it can be included in the sitewide activity widget. I could not notice the topic earlier, my apologies for that.

    An update is coming in 2-3 hours.

    @1cocuk
    Do you want to remove the pagination text even if it is fixed?

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Have updated the plugin. Please do check if that fixes or not.

    Thank you
    Brajesh

    Hi,

    For my client’s site I had a local copy where the solution above done the trick however when I went to apply the changes on the live site, this solution did not work as the code already had that solution applied.

    Instead after looking here: https://bpdevel.wordpress.com/2014/06/09/changes-to-bp_has_activities-queries-in-bp-2-1/

    I went to wp-content\plugins\buddypress\bp-activity\bp-activity-template.php line 247.
    Changed
    ‘count_total’ => $count_total
    to
    ‘count_total’ => ‘count_query’

    Then the feed started to pull through properly.

    Just in case the solution above doesn’t work by itself.

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    Thank you for the update.

    Setting the ‘count_total’=> true or anything that is not false will do the trick with current version. They are not checking for any specific value. You can verify that in looking at class-bp-activity-activity.php
    https://github.com/buddypress/BuddyPress/blob/master/src/bp-activity/classes/class-bp-activity-activity.php#L613

    So, It is no more required to set to ‘count_query’ .

    Hope that helps.

    Hi Brajesh,

    Thank you for the update. Even if it is fixed (yes it is fixed) I want to remove it or edit this text “Viewing 1 – xxx of x items” my own language.

    Plugin Author Brajesh Singh

    (@sbrajesh)

    Hi,
    I am sorry I did not follow up.
    It is coming from BuddyPress. If you have translated BuddyPress activity pagination string, it will be automatically translated.

    In case you need to hide it, here is a small css snippet to do that

    .swa-pagination .pag-count{ display:none;}

    That will remove the text but keep the pagination links.

    Hope that helps.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Links to further activity not working, displays as Viewing 1 – 0 of 0 items’ is closed to new replies.