-
caplain started the forum topic Is there a bp function to add a user to a group? in the group How-To and Troubleshooting: 14 years, 1 month ago
Is there something like a bp_group_add_user($user_id, $group_id) ?
I want to add all registered users to a general user group.
-
caplain started the forum topic /register/accept-invitation/ form posts to same page with no processing in the group How-To and Troubleshooting: 14 years, 1 month ago
The form on the /register/accept-invitation/user@domain.com/ page has action=””. Submitting it just reloads the page with no processing or messages, I’ve been unsuccessful understanding how the form submission is handled and could really use some guidance on debugging this.
-
caplain posted on the forum topic bp group API function to fetch a group by id outside of group context? in the group How-To and Troubleshooting: 14 years, 1 month ago
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 )…[Read more]
-
caplain started the forum topic bp group API function to fetch a group by id outside of group context? in the group How-To and Troubleshooting: 14 years, 1 month ago
Is there a bp group API function to fetch a group by id?
I want to display the name and avatar of group on a WP page outside of BP. Can I fetch group info by id outside of a group context?
-
caplain posted an update in the group How-To and Troubleshooting: 14 years, 2 months ago
I want to use bp_group_id() in a group extension function, but it’s returning nothing. bp_group_name() works. Do I need to call some other function first?
-
caplain started the forum topic How do I replace bp_core_new_subnav() with a customized version? in the group How-To and Troubleshooting: 14 years, 2 months ago
I want to add a Member Directory tab that links to ‘/members/’ on the subnav of the friends tab. I added a call to bp_core_new_subnav_item() in a customized bp_friends_setup_nav(), which does add the subnav item, but, the link URL is wrong because bp_core_new_subnav_item() requires a parent url, parent slug, and screen_function. I tried replacing…[Read more]
-
caplain started the forum topic Discrepency between members on group members page and what's in the db table, wp_bp_groups_members, in the group How-To and Troubleshooting: 14 years, 3 months ago
If I view the members of a particular group: http://www.rocketmavericks.com/groups/mavericks-team/members/ (group_id=1) there are 4 members shown, which I believe to be the correct number of members. If I query wp_bp_groups_members for user_id for group_id=1: SELECT gm.user_id FROM wp_bp_groups_members gm WHERE gm.group_id=1 it returns 9 records.…[Read more]
-
caplain posted on the forum topic Fatal error: Using $this when not in object context (bp-groups-classes.php) in the group How-To and Troubleshooting: 14 years, 3 months ago
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 posted on the forum topic Fatal error: Using $this when not in object context (bp-groups-classes.php) in the group How-To and Troubleshooting: 14 years, 3 months ago
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 started the forum topic Fatal error: Using $this when not in object context (bp-groups-classes.php) in the group How-To and Troubleshooting: 14 years, 3 months ago
My buddypress site was working fine. I left town for a couple of days and returned to: Fatal error: Using $this when not in object context in /imedia/users/mavericks/htdocs/wp-content/plugins/buddypress/bp-groups/bp-groups-classes.php on line 1053 Here’s a snippet of the offending code: function delete_all_for_user( $user_id ) { global $wpdb, $bp;…[Read more]
-
caplain started the forum topic How do you query for a list of all group members in the group How-To and Troubleshooting: 14 years, 4 months ago
I want to add some functionality to groups that requires a list of all members of the group. Is there a function that will return an array of members’ user_id given a group name?
-
caplain posted on the forum topic How to redirect to login and return in the group How-To and Troubleshooting: 14 years, 4 months ago
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 posted on the forum topic How to redirect to login and return in the group How-To and Troubleshooting: 14 years, 4 months ago
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…[Read more]
-
caplain posted on the forum topic How to redirect to login and return in the group How-To and Troubleshooting: 14 years, 4 months ago
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 posted on the forum topic No "must login message" or redirect in the group How-To and Troubleshooting: 14 years, 4 months ago
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 posted an update 14 years, 4 months ago
@MrMaz Hi Marshall, when a user receives a group invite via email, I don’t want them to land on the domain root page if they’re not logged in. I want them to be redirected to /wp-login.php?redirect_to. I tried something but it didn’t work. I created a topic for this…[Read more]
-
caplain posted an update 14 years, 4 months ago
@hnla Sorry to bug you, but you appear to be an online BP Mod and I’m desperate for help. Could you please look at https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-redirect-to-login-and-return/ to help with a redirect issue? Thanks.
-
caplain posted on the forum topic How to redirect to login and return in the group How-To and Troubleshooting: 14 years, 4 months ago
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…[Read more]
-
caplain started the forum topic How to redirect to login and return in the group How-To and Troubleshooting: 14 years, 4 months ago
If a user is not logged in and tries to access a buddypress path, they’re redirected to the site base url – either by actual redirection or by truncating the path (I don’t know which). This is not an expected behavior on the web. If a user is not logged in, they should be redirected […]
-
caplain started the forum topic [Closed] How do I redirect to a login screen from a group invitation URL? in the group How-To and Troubleshooting: 14 years, 4 months ago
If a user is not already cookied/logged-in when they click on the invite link in a group invitation email, they are redirected to the site base URL. This somewhat defeats the purpose of the email invite, and I can’t believe this is the default behavior. Anyway, how can I redirect to a login page and […]
- Load More
@caplain
Not recently active
See if this threat helps you….
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-get-group-id-while-in-activity-loop-php/?_wpnonce=7b5975440e#post-54703