Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • Youraj Pawar
    Participant

    @youraj

    I strongly feel using this documentation you can achieve what you want.
    https://codex.buddypress.org/developer-docs/group-extension-api/

    And this should help you with manipulating navigation items in group , renaming them or removing them. (At midway of page)
    http://themekraft.com/2011/02/customize-profile-and-group-menus-in-buddypress/

    And this for custom fields (Not sure how much this will help for groups)
    http://wparena.com/how-to/the-power-of-wordpress-custom-fields/

    bye


    Youraj Pawar
    Participant

    @youraj

    I found the problem was in bp-custom.php where I wrote the code which applies filters ‘bp_get_group_permalink’
    as a result if slug was not sports it was returning just group slug. But if someone explain more on this would appreciate.

    <?php //Don't use this code it will mess your groups buggy one I removed it
    function group_members_permalink( ) {
    global $groups_template, $bp;
    if ( !$group )
    $group =& $groups_template->group;

    if($bp->current_component==$bp->sports->slug)
    {
    return apply_filters( ‘bp_get_group_permalink1’, $bp->root_domain . ‘/’ . $bp->groups->slug . ‘/’ . $group->slug . ‘/members’ );
    }
    else
    {
    return apply_filters( ‘bp_get_group_permalink1’, $bp->root_domain . ‘/’ . $bp->groups->slug . ‘/’ . $group->slug . ‘/’ );
    }

    }

    add_action( ‘bp_get_group_permalink’,’group_members_permalink’);
    ?>
    Ahh , would love to know more about this stuff. Any pointers.


    Youraj Pawar
    Participant

    @youraj

    Also when I hover mouse on ‘Admin’ it shows me correct url http://localhost/buddies/groups/sportsgroup/admin/
    but when I click group name is not seen in url and result is http://localhost/buddies/groups//admin/
    I wonder if groups/single/admin.php has something in it.


    Youraj Pawar
    Participant

    @youraj

    [RESOLVED] Root cause was meta_value in table wp_bb_meta remain unchanged after migration to other site.
    Scenario: I had similar problem on forum. I tried removing and re-installing many times. Re-installing means copying my complete wordpress with plugin buddypress folder still didn’t worked. Sometimes i used to get HTTP Error 403 Forbidden while accessing forums. This was error was esp when i used existing installation option from admin page in forums setup under buddypress.
    But when I click on setup new bbpress installation I could post on forums but could not see topics.
    REASON: I checked the database for table wp_bb_forums and it had entry of new topic, then I checked wp_bb_meta in that incorrect meta value was setup for field meta_value where meta_key is uri , I corrected the url stored in meta_value it was url of my previous website name. I had done migration to new site so the problem. If you face similar conditions just check these values.

Viewing 4 replies - 1 through 4 (of 4 total)
Skip to toolbar