• Resolved JMLatino

    (@jmlatino)


    Hello Aheadzen,

    I am using this plugin for an app. But by call the function activity_get_activities it only returns 20 entries. I did change all possible parameters to see all activities in one page. If this is not possible then I want to know how to call a second page with de methode activity_get_activities.

    Kind regards,
    Juan

    https://www.ads-software.com/plugins/buddypress-json-api/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author aheadzen

    (@aheadzen)

    Hi Juan,

    There are many options you can add for your activity api as mention below:

    * Returns an Array with all activities
    * @param int pages: number of pages to display (default unset)
    * @param int offset: number of entries per page (default 10 if pages is set, otherwise unset)
    * @param int limit: number of maximum results (default 0 for unlimited)
    * @param String sort: sort ASC or DESC (default DESC)
    * @param String comments: ‘stream’ for within stream display, ‘threaded’ for below each activity item (default unset)
    * @param Int userid: userID to filter on, comma-separated for more than one ID (default unset)
    * @param String component: object to filter on e.g. groups, profile, status, friends (default unset)
    * @param String type: action to filter on e.g. activity_update, profile_updated (default unset)
    * @param int itemid: object ID to filter on e.g. a group_id or forum_id or blog_id etc. (default unset)
    * @param int secondaryitemid: secondary object ID to filter on e.g. a post_id (default unset)
    * @return array activities: an array containing the activities

    Get more details from php file >plugins > buddypress_json_api > controllers > BuddypressJsonRead.php

    File.
    Thanks

    Thread Starter JMLatino

    (@jmlatino)

    The problem was located in one of the buddypress controls. The number of entries per page is set in the controller buddypres. if you want to show more than 20 entries. You have to change the number of entries in the controller 20 to which they want to show.

    Thank you for your answer,
    Juan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘activity_get_activities only show 20 entries’ is closed to new replies.