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

Activity Tweaks

On my site, we use the activity wall almost exclusively. I understand that's not the intended purpose of Vanilla. It's just our preference. Has anyone implemented activity tweaks?

For example: Is it possible to only show the last 5 comments for an activity post and collapse the rest? Or, bump an activity post to the top when commented on? I'd love to enhance the activity section.

Using Version 2.1b2

Comments

  • the 5 comment thing you could probably do in js.

    the bump to the top might be trickier but you could probably do that as well.

    I suspect this would be of such esoteric interest, that few developers would be interested in pursuing unless it was sponsored, but you never know.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • Heya! I don't think I have seen you around before. How is it going?

    The collapsing could be done by overriding the activity helper_functions file. I attached one that does basic collapsing. Extract it into /themes/{your_theme}/views/activity/.

    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.

  • peregrineperegrine MVP
    edited December 2013

    peregrine chirped:
    but you never know

    hgtonight delivered.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • @hgtonight said:
    Heya! I don't think I have seen you around before. How is it going?

    >

    It's going great now that you've arrived. Thank you! :)

    This is a great beginning to enhancing this section of Vanilla.

  • hgtonighthgtonight MVP
    edited December 2013

    This question actually uncovered a bug I never would have found. The activity/item view is messed up and gives me a fatal error.

    I was looking for a way to click on the "x comments hidden" block and retrieve the comments. Turns out the activity/item view is non functional as an html page. It works fine as a json request, so it just doesn't have a properly functioning view file.

    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.

Sign In or Register to comment.