HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Number of Activity Post per Page in Activity Page

Hi. Is there a way I could change the number of posted activity per page in the Activity Area?

Thank you.

Tagged:

Comments

  • hgtonighthgtonight ∞ · New Moderator
    edited November 2015

    Welcome to the community!

    There is no way to do this out of the box. The change is simple but requires modification of the core files. This is not ideal as this change will be wiped out when you apply security updates to your forum.

    In /applications/dashboard/controllers/class.activitycontroller.php change line 133 to:

    list($Offset, $Limit) = OffsetLimit($Page, c('Garden.Activities.PerPage', 30));
    

    Then add the following line to your /conf/config.php file:

    $Configuration['Garden']['Activities']['PerPage'] = 30;
    

    You can change 30 to be whatever number you want.

    I have also filed PRs to add this capability to new versions of Vanilla. (here and here).

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

    wztantra
  • @hgtonight Thanks! It worked!

Sign In or Register to comment.