So, does no response mean that this is impossible (or really difficult), or does it mean I’ve asked a bonehead question and everybody is rolling their eyes? If the latter, please say so and I’ll keep poking through the codex to try to figure it out. Thanks, all.
Was thinking this would be nice for my BP site. Awaiting answer too…
I second your idea! I am not a .php code poet, but my members would love to have that option.
Matt and Steve: will definitely share here if I figure something out anywhere other than in this thread. I’ve already toyed around with the template files a bit, but to no avail.
hnla: Thanks for sharing this! Pardon the rookie question, but I’m not sure where to add this code. I’m guessing it’s in the groups-loop.php file, but I’m guessing it matters where, precisely, I put it.
hnla: having another look at this code, I realize that it looks familiar: in fact I’ve already added this in to my functions.php file. Unfortunately, it addresses something different. This code puts a link to each group’s forum in the group loop. What I’m trying to do is make it so when people visit a group’s page that they automatically land in the forum section.
. . . though, perhaps I could tweak this to do just that. Hmm. Let the site-busting begin.
Ok, I figured out a “hackish” temporary sorta-fix.
If you go to the groups-loop.php file (/wp-content/plugins/buddypress/bp-themes/bp-default/groups/groups-loop.php)
And on line 28 add “forum” (no quotes, and no space) after where it says bp_group_permalink() ?>
. . . the link from the groups page will automatically send people to the forum page. This solution has limitations, obviously. If people get to the group via any other link, they’ll still end up on the group’s activity page. But it’s a start until somebody much cleverer than me shares a real way to do this.
If you make changes to the default BP theme, you should create a child theme so your changes will not be overwritten when you upgrade BP.
@r-a-y: you’re absolutely right, but I’m new at this. Do I have to copy all the files to my child theme in any folder where I change even one file, or can I just create a “groups” folder in my child theme (I already have one) and add only the one file I’ve changed? Thanks.
Please read the instructions provided in the previous post.
All you need to do is create a new folder in /wp-content/themes/.
Then you create a stylesheet with the data listed in the tutorial.
Next, you should copy over “/wp-content/plugins/buddypress/bp-themes/bp-default/groups/groups-loop.php” to your new theme, maintaining the directory structure.
eg. /wp-content/themes/YOUR_NEW_THEME/groups/groups-loop.php
Then make your changes there.
Thanks, r-a-y. I’d followed the instructions in the post you shared, but the only files I’d modified so far in my child theme were in the root folder for the theme. Sounds like I can selectively do other folders deeper down. Thanks for explaining.
One quick note: I learned the hard way that this hack I added causes trouble if the group doesn’t have a forum: it bounces people who hit the group’s link back to the front page if there’s no /fourm address for the group. Confusing for users. Oops. Guess I need to be more sophisticated with this.
Awesome. I just did that and it worked out perfect. Is there a way to show member bio info on group pages where it lists the members?