Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to default group view to Forum


  • Weshaw
    Participant

    @weshaw

    Hi. I’m building a (BP 1.2.x) site for a group of people who aren’t super geeky. They’re warming to the idea of participating in groups, but everybody’s now just posting everything to each groups’ activity stream, I think because it’s the first thing they see when they land on the group page. Any way to tweak the settings so that the first thing they see when they arrive on a group page is the forum tab?

    Many thanks. -Wes

Viewing 14 replies - 1 through 14 (of 14 total)

  • Weshaw
    Participant

    @weshaw

    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.


    Matt Hamilton
    Participant

    @classiccartel

    Was thinking this would be nice for my BP site. Awaiting answer too…


    Steve Ford
    Participant

    @privateenglishportal

    I second your idea! I am not a .php code poet, but my members would love to have that option.


    Weshaw
    Participant

    @weshaw

    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.


    Weshaw
    Participant

    @weshaw

    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.


    Weshaw
    Participant

    @weshaw

    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.


    Weshaw
    Participant

    @weshaw

    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.


    r-a-y
    Keymaster

    @r-a-y

    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.


    Weshaw
    Participant

    @weshaw

    @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.


    r-a-y
    Keymaster

    @r-a-y

    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.


    Weshaw
    Participant

    @weshaw

    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.


    Weshaw
    Participant

    @weshaw

    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?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘How to default group view to Forum’ is closed to new replies.
Skip to toolbar