Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Limiting user activity with the “Load More” option enabled.


  • 9087877
    Inactive

    Does anyone know of a plugin, or method to purge old user activity? I am using WP 3.2.1 & BP 1.5.1. It seems like it takes forever for the activity page to load. Any other methods to speed up the activity page loading time would be helpful also. I have tried limiting the amount of items loaded, the code snippet did limit the amount, but made the “Load More” option disappear which is not what I wanted to accomplish. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

  • @mercime
    Keymaster

    @mercime

    >> the code snippet did limit the amount, but made the “Load More” option disappear which is not what I wanted to accomplish

    if you placed `max_page=5` for example, then yes, you won’t see the remaining activities. Load more appears when you write `per_page=5` instead


    9087877
    Inactive

    @mercime That worked perfectly! Thank you for your help! For anyone else who would like to limit their activity with the load more option still functioning below is the code snippet. Just replace the line of code in your themes activity-loop.php that says:
    if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) ) ) :
    With this one:
    if ( bp_has_activities( bp_ajax_querystring( ‘activity’ ) . ‘&per_page=5’ ) ) :


    @mercime
    Keymaster

    @mercime

    You’re welcome. Thank you for sharing your solution :-)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Limiting user activity with the “Load More” option enabled.’ is closed to new replies.
Skip to toolbar