Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 23 replies - 1 through 23 (of 23 total)
  • @caplain

    Member

    Thanks. I figured it out while waiting, even though your response was immediate ;)

    $group = new BP_Groups_Group( 1, true );
    $avatar = bp_core_fetch_avatar(
    array(
    ‘item_id’ => 1,
    ‘object’ => ‘group’,
    ‘type’ => ‘full’,
    ‘avatar_dir’ => ‘group-avatars’,
    ‘alt’ => ‘Group Avatar’,
    ‘css_id’ => 0,
    ‘class’ => ‘avatar’,
    ‘width’ => false,
    ‘height’ => false
    )
    );

    echo $avatar . “
    “;
    echo ‘slug.’/”>’.$group->name.’
    ‘.$group->description;

    @caplain

    Member

    I changed $group_ids = $this->get_group_ids( $user_id ); to $group_ids = BP_Groups_Member::get_group_ids( $user_id ); and the error is gone. Maybe my provider changed my version of php – dunno. Anyway, I’ll download BP again…

    Thanks –Eric

    @caplain

    Member

    According to my plugins page and the buddypress readme file, I am using 1.2.5. I guess I can download again – strange that I ended up with different code. However, buddypress was working fine for a couple of weeks. Then after no code changes to anything in wordpress or buddypress, this error popped up.

    @caplain

    Member

    I opened a ticket for the seemingly undeclared bp_before_group_invites() and for bp_core_catch_no_access(), which doesn’t appear to be called anywhere.
    https://trac.buddypress.org/ticket/2537

    @caplain

    Member

    I’m really mystified. I added to /members/single/groups/invites.php in my child theme. Then went to http://www.rocketmavericks.com/members/eric/groups/invites, but cc_core_catch_no_access() didn’t seem to be called. I was going to add my function to bp_before_group_invites_content() (see /bp-themes/bp-default/members/single/groups/invites.php:<?php do_action( 'bp_before_group_invites_content' ) for reference), but I grep'd for that function and couldn't find that function defined anywhere. Am I just stumbling upon hooks that haven't been implemented yet?

    @caplain

    Member

    A related thread, https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/no-must-login-message-or-redirect, had a short life about three weeks ago. It looks like the bp_core_catch_no_access() function is not actually used.

    @caplain

    Member

    I’m dealing with the same issue. I tried adding if ( $bp_no_status_set ) bp_core_redirect($bp->root_domain.”/wp-login.php?redirect_to=”.$bp_unfiltered_uri); to bp_core_catch_no_access() but then I grep’d for that function and couldn’t find it called from anywhere.

    @caplain

    Member

    It looks like what I want to do could be done in /bp-core/bp-core-catchuri.php:function bp_core_catch_no_access() by starting the function with:

    if ( $bp_no_status_set ) bp_core_redirect($bp->root_domain.”/wp-login.php?redirect_to=”.$bp_unfiltered_uri);

    instead of just returning false, but bp_core_catch_no_access() doesn’t seem to be called anywhere.

    @caplain

    Member

    Where is BP redirecting to the base blog url if a user is not logged in? Maybe I can start there. I can’t believe no one’s tackled this already. If a user is not logged in, you want to get them logged in and then back to where they were trying to go instead of dumping them somewhere they were not expecting to go.

    @caplain

    Member

    Done. Thanks.

    @caplain

    Member

    Do any of you know to remove tabs/pages added by extending BP_Group_Extension from the group create steps?

    @caplain

    Member

    This has been resolved.

    @caplain

    Member

    I experienced the same issue as @shaunmacrae. I’m assuming /plugins/bp-custom.php is loaded before /plugins/buddypress/bp-groups/bp-groups-classes.php. So, I put my new class in /plugins/bp-group-project-ext.php and added the following to /plugins/bp-custom.php:

    function group_project_plugin_init() {
    require( dirname( __FILE__ ) . ‘/bp-group-project-ext.php’ );
    }
    add_action( ‘bp_init’, ‘group_project_plugin_init’ );

    This works, but I’m not sure if it’s the appropriate or most elegant solution.

    @caplain

    Member

    I found my stupid mistake. I changed the msgid string instead of the msgstr string. doh!

    @caplain

    Member

    just ran msgfmt again but in verbose mode:
    > msgfmt -v -o buddypress-mav.mo buddypress-mav.po
    0 translated messages, 903 untranslated messages.

    ??? –caplain

    @caplain

    Member

    Ugh. I really need to use the API if I’m going to use buddypress, but without docs I may have bail on it :(

    @caplain

    Member

    this has been resolved.

    @caplain

    Member

    The only way I can see anything about other members is if I manually go to /members/ (which I discovered by just snooping). There is a link ‘All members’ with a count of members, but the link just goes to the blog root URL.

    @caplain

    Member

    “member’s single profile” ?? Interesting I don’t know what that is :) Other than the Users page (as admin) I have no visibility of other site users.

    @caplain

    Member

    So, why does BP have the notion of friends if you need a plugin to invite/add a friend? Thanks!

    @caplain

    Member

    Resolved. My solution (in sidebar.php) has been amended to http://buddypress.pastebin.com/tkUDryN3

    Thanks for pointing me in the right direction.

    @caplain

    Member

    I discovered the problem: I’m using a widgetized theme, so dynamic_sidebar() is being used. Now I have to figure out where that is called to see if I can wrap that in a ‘if(bp_is_blog_page()){}’…

    @caplain

    Member

    I tried your solution in page.php

    if (bp_is_blog_page()) {
    get_sidebar();
    }

    My sidebar still appeared on all BP pages.

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