Minimal groups, forums, members and blogs lists
I needed to display the groups, forums, members and blogs on my site in a more minimalistic way than the standard bp widgets. I just wanted the bare minimum like ‘name of’ showing and not avatars and various other details. I created a few chunks of code that I use around my theme. Thought they might be useful for somebody. So here they are:
(Posting code to the forums doesn’t always work so well)
The first is a list of forums on my site. I run two bbpress installs one for groups and one for site wide discussions. So the first link is to the community bbpress install and the rest just lists the existing group forums that have been created.
Second is a list of the newest groups with a link to my community blog that runs the bp home theme. The link just runs the groups directory over there.
Third is a list of all the blogs on the site with a link to the community blog directory.
Number four lists the newest members with a link to the community members directory as a title.
The reference to the function oci_get_community_blog_url() goes out and gets the url of the site community blog where I have the bp home theme running. It just goes out and gets the url from options.
I haven’t turned these things into template tags with options yet but I’ll get there sometime. This works for me now, since I’m only using this code in a file I include in various places around the theme.
You must be logged in to reply to this topic.