This topic has 7 replies, 2 voices, and was last updated 9 years by IDBash.

  • Author
  • #82960
     IDBash
    Participant

    I am trying to make it so that the default choice, which is currently “All Members”, truly shows all content available to the user, not just public. Should I look at modifying the queries, or is there a very simple way to do this?

     

    #82976
     sharmstr
    Moderator

    Here’s the buddypress documentation on the activity loop: https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/ If you need assistance, its best to ask on the buddypress forum since its their function you’ll have to filter (not Kleo) https://buddypress.org/support/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #83235
     IDBash
    Participant

    The problem I am having is that the kleo activity stream has been completely customized to allow for the endless scrolling. I am as a result having trouble identifying the variables used to select the appropriate filters so I can modify them.

    #83239
     sharmstr
    Moderator

    There is a load more button which is standard buddypress. Enable the WP 2015 Theme and you’ll see that its the same as Kleo. It hasnt been highly customized in that sense at all. Only styling has been applied to the feed. If you look at the activity-loop.php template file that Kleo overrides, you’ll see that its using the same exact query string (bp default query).

    COPY CODE
    
    if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) )
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #83242
     IDBash
    Participant

    I have located the filter mechanism, and it is outside the Activity-loop.php all together. It seems the object generation strings are in the index.php of the activity page, but I am still having trouble figuring out how it is designed. Below is the chunk of code that generates the activity data that is polled during the activity loop. All I want to do is make the bp_activity_directory_permalink() output all data accessible to the user.

    #83270
     sharmstr
    Moderator

    Do you have code that *should* work but doesnt because of Kleo? In other words, do you have a solution that works with the 2015 Theme?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #83275
     IDBash
    Participant

    I just followed the slugs and realized you are not generating your own lists, you are pulling the premade ones on our profiles! Clever! So now I just need to add the groups data to the regular.

    https://codex.buddypress.org/developer/function-examples/bp_activity_add/

    This is the way of crafting a custom set of data which Kleo does not use. So I now get to figure out how to do that without breaking Kleo. I will post here if I have any updates to it, and I would suggest you add it to the Kleo since the current setup is extremely nonintuitive where the rest of Kleo is highly intuitive.

    #83276
     IDBash
    Participant

    Just to clarify since Kleo pulls the data in from other places and uses that data as is, using the standard method will break Kleo because the other datasets use the same activity loop as the primary.

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?