Recent Topics Widget to Display based on BP Group
-
Hello,
I am trying to get the Recent Topics widget to dynamically display the recent topics on a specific forum based on the Group they are in. I know it currently allows me to put in a parent forum ID, but that does not allow it to be dynamic based on the user. I also tried Dynamic Widgets plugin but it is not really a sustainable model either considering there would be potentially be many groups on my website.
I’m new to programming, so is there a plugin already that does something similar? Or how would I go about adding the reference lookup to obtain the user’s bp group(s), the forum tied to that bp group(s), and then display the recent 5-10 topics?
Thanks!
-
You could use the private groups plugin, which lets you control who sees what forum, and then the widgets that come with that (recent topics, recent replies and latest activity) would display only those topic related to the group.
Hi Robin,
Thank you very much for your reply. I was looking at the plugin and think it may be very useful. However, I am currently using a lot of functionality from Buddypress so I am trying to make the connecting points as seemless as possible. Is there any way to link the groups from bbpress from the Private Groups Plugin with the Buddypress Groups? For example, if someone is from Buddypress Group A they would become part of Group A from the Private Groups plugin.
no direct link as yet
Or how would I go about adding the reference lookup to obtain the user’s bp group(s), the forum tied to that bp group(s), and then display the recent 5-10 topics?
If you are really not that good with code, try to hire a developer to create this for you.
Here is a couple of links that might be helpful though.
http://hookr.io/plugins/buddypress/#index=g&search=bp_get_group
http://hookr.io/plugins/buddypress/#index=i&search=bp_is
https://developer.wordpress.org/reference/functions/is_user_logged_in/
https://github.com/ntwb/bbPress/blob/master/src/includes/common/widgets.php#L674
Thanks for the reply Robkk. I ended up going with a plugin called Buddypress Sitewide Activity Widget. It seemed to do the trick.
https://wordpress.org/plugins/buddypress-sitewide-activity-widget/
Thanks for sharing that you found a plugin that does this kind feature. I am sure it will be really useful to a ton of other users that use Group Forums using bbPress and BuddyPress.
- You must be logged in to reply to this topic.