Skip to:
Content
Pages
Categories
Search
Top
Bottom

code to add activity filter

  • Avatar of gwu123
    gwu123
    Participant

    @gwu123

    hi,
    If anyone needs to add an activity filter for the group reviews put this code to the templatetags.php file.
    Just take care of the tags.
    =====================================================================================
    `function bp_rating_activity_filter_option() { ?>

    <?php }
    add_action( ‘bp_activity_filter_options’, ‘bp_rating_activity_filter_option’ );
    add_action( ‘bp_group_activity_filter_options’, ‘bp_rating_activity_filter_option’ );`

    [edited to add backticks - Boone]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Thanks! If I remember, I will add this to the plugin itself.

    Avatar of gueteloli
    gueteloli
    Member

    @gueteloli

    Half of the American people have never read a newspaper. Half never voted for President. One hopes it is the same half

    Avatar of digibluez
    digibluez
    Member

    @digibluez

    Strange it still dose not work, after i put a new activity item on the group’s page,
    that last activity/update get’s displayed as my last review text,
    the stars are grayed out,

    I can not post a new review,but still is kind of broken as for now. no idea how to fix it either…. anyone?

    temp FIX:
    wp-contentpluginsbp-group-reviewstemplates
    delete or php comment
    `

    the problem is it deletes the last activity you posted, but not the last review. How to fetch last review/activity i posted instead of the last activity on group?

    Adds link to delete review at the review list.
    templates..entry.php

    ADD
    `

    still looking for,how to pull last review only,quess its same like mentions and favorites activity on profile.And as i set up, that u can only post 1 review on a group. its possible to pull the last only instead of last activity from your group. but how to code the group part into it to pull only from the group site you are in now…

    can some one fix this plugin…or is it only me having trouble?

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

You must be logged in to reply to this topic.