Skip to:
Content
Pages
Categories
Search
Top
Bottom

Code to find the user subscribed topics

  • @nikhilnaik

    Participant

    Hello All,

    I am using a buddypress+bbpress intergrated site, hence the bbpress profiles are disabled. Only buddypress profiles are made visible because of which I can’t figure out which user is subscribed to which forum. Is there a function or a shortcode using which I can display on the user dashboard the topics/forums he is subscribed to?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • @casiepa

    Moderator

    Hi nikhilnaik,
    To list the forums a user has subscribed to, I have used bbp_get_user_subscribed_forum_ids as a function while looping the users.
    Pascal.

    @nikhilnaik

    Participant

    @casiepa, thanks for your response. I tried this:

    function user_subscriptions_count( $user_id = 1) {	
    	$forum_count = count(bbp_get_user_subscribed_forum_ids($user_id));	
    	echo  $forum_count;
    }

    but didn’t seem to work, could you assist in getting it right?

    @robkk

    Moderator

    This user said they got forums, but not topics from forums with the code posted in this topic.

    How to query recently active topics from user subscribed forums?


    @casiepa

    Thanks for sometimes helping out here in the forums.

    @nikhilnaik

    Participant

    Thanks a lot @robkk!

    @casiepa

    Moderator

    @robkk

    The goal of a forum is to all help each other, right 🙂

    I’m giving the info that I know and at the same time I learn on how to tune my own bbpress !

    Pascal.

    @robkk

    Moderator

    @casiepa

    Great attitude to have! 😀

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar