Helping you Build Your Own Social Network!

Faster, better and easier!

personal activity feed

(12 posts) (2 voices)
  • Started 9 months ago by gwu
  • Latest reply from Brajesh Singh

Tags:

No tags yet.


  1. Hi Brajesh,

    I changed the tab on activity page from "all" to "personal". So now i just see my personal activity on one tab. however, the feed link still points to Site wide feed.

    I am not sure how the RSS Feed Template Tags in activity template are used. There is some ajax involved and over my head.

    Can you help me on this?

    thanks,
    gwu

    Posted 9 months ago #
  2. any idea hw this can be done?

    Posted 9 months ago #
  3. HI Gwu,
    will post about it. It will require to hook to one ajax action, though need to test before posting.

    Posted 9 months ago #
  4. thanks.

    Posted 9 months ago #
  5. Hi Brajesh,

    any updates?

    thanks

    Posted 9 months ago #
  6. Hi Brajesh,

    any help on this.

    Posted 7 months ago #
  7. Hi Gwu,
    sorry for getting back too late.

    Please put this in your functions.php

    add_filter('bp_ajax_querystring','my_personal_feed',15,2);
    
    function my_personal_feed($query,$object){
        global $bp;
        if(!bp_is_page(BP_ACTIVITY_SLUG)||$object!==$bp->activity->id)
            return $query;
    
        if(empty($query)&&  is_user_logged_in())
            $query='scope=personal&user_id='.  bp_loggedin_user_id();
    
        return $query;
    
    }

    That will do it.

    Posted 7 months ago #
  8. hi Brajesh,

    this did not help. Do i have to change something in the theme/activity/index.php

    there is

    bp_sitewide_activity_feed_link()

    it has to be changed with personal feed.

    Posted 7 months ago #
  9. Hi Gwu,
    I am sorry, I posted the code which will force the Directory activity to show the personal activity of user even if you don't make any change.

    for feed, please use this

    function my_feed_link(){
    $link = bp_loggedin_user_domain() . bp_get_activity_slug() . '/feed/';
    echo $link;
    }

    put that in functions.php and then you can replace
    bp_sitewide_activity_feed_link()
    with
    my_feed_link()

    Hope that helps.

    Posted 7 months ago #
  10. Sorry to bug you. this does not work. Something missing. do we need add_action? why does this echo the link? I see the link on the web page.

    Posted 7 months ago #
  11. i take tht back. works on BP 1.5, was trying of earlier version.

    thanks a ton

    Posted 7 months ago #
  12. No problem :)

    Posted 7 months ago #

Reply

You must log in to post.