Search Results for 'buddypress'
-
Search Results
-
Topic: Creating group admin submenu
Hi all,
I am creating a plugin (which I will release in the repository), that lists former members of a buddypress group. I have 95% of it nutted out.
However when I register the nav menu (which I need to appear in the manage/admin section for the group), it shows in the menu correctly but 404´s when I click on it. My code is below, any help would be appreiated. I am running the latest version of buddypress, wordpress, as multisite)
As I said when I finish the plugin it will go in the repository for everyone to benefit.
public function show_screen_title() {
echo ‘New Tab Title’;
}public function show_screen_content() {
echo ‘New Tab content’;
}public function new_group_tab_screen() {
add_action(‘bp_template_title’, array($this, “show_screen_title”));
add_action(‘bp_template_content’, array($this, “show_screen_content”));$templates = array(‘groups/single/plugins.php’, ‘plugin-template.php’);
if (strstr(locate_template($templates), ‘groups/single/plugins.php’)) {
bp_core_load_template(apply_filters(‘bp_core_template_plugin’, ‘groups/single/plugins’));
} else {
bp_core_load_template(apply_filters(‘bp_core_template_plugin’, ‘plugin-template’));
}}
public function new_nav(){
global $bp;if (isset($bp) and isset($bp->groups->slug) and isset($bp->groups->current_group->slug)){
bp_core_new_subnav_item( array(
‘name’ => __( ‘Former Members’, ‘altctrl-public-group’ ),
‘slug’ => ‘former-members’,
‘parent_url’ => bp_get_groups_action_link( ‘admin’ ),
‘parent_slug’ => $bp->groups->current_group->slug . ‘_manage’,
‘screen_function’ => array( $this, ‘new_group_tab_screen’),
‘user_has_access’ => bp_is_item_admin(),
‘position’ => 40
), ‘groups’ );}
}
Hi,
On my Buddypress site, if users try logging in, a page comes up that says “401 unauthorized “
I found a temporary fix around this by placing a theme my login widget there but this will not work in the long run as there is no way to access the user profile page with that. I also use the third party plugin “youzer” and that gives the same 401 unauthorized. I contacted WordPress support, and was told this was not on their end.Anyone know what this is?
HI,
When i search for a member in a group (/groups/grupo-do-andre/members/), occurs this error:[Unknown column ‘u.user_id’ in ‘IN/ALL/ANY subquery’]
SELECT u.ID as id FROM adwp_users u WHERE 1=1 AND u.ID IN (27412,304,509,6625) AND u.user_id IN ( SELECT ID FROM adwp_users WHERE ( display_name LIKE ‘%ar%’ OR user_login LIKE ‘%ar%’ ) ) ORDER BY FIELD(u.id,27412,304,509,6625) LIMIT 0, 20
[Unknown column ‘u.user_id’ in ‘IN/ALL/ANY subquery’]
SELECT COUNT(u.ID) FROM adwp_users u WHERE 1=1 AND u.ID IN (27412,304,509,6625) AND u.user_id IN ( SELECT ID FROM adwp_users WHERE ( display_name LIKE ‘%ar%’ OR user_login LIKE ‘%ar%’ ) )In log we have “do_action(‘wp_ajax_bp_get_suggestions’), WP_Hook->do_action, WP_Hook->apply_filters, bp_ajax_get_suggestions, bp_core_get_suggestions, BP_Groups_Member_Suggestions->get_suggestions, BP_User_Query->__construct, BP_User_Query->do_user_ids_query”
I check the SQL and changing the field name “… AND u.user_id IN ( SELECT ID FROM adwp_users …” by “… AND u.ID IN ( SELECT ID FROM adwp_users …” fix it.
I am using WP 4.9.7 and Buddypress 3.1.0.
Seems that SQL is wrong, isnt?
Tks
Douglas
Wordpress 4.9.7 Buddypress 3.1.0
I am using WP SMTP integrated with SendGrid to send out the automated emails that BuddyPress sends to members as the members interact with my wordpress site (i.e. someone commenting, sending a PM, favoriting, etc.)
When those emails get sent out to yahoo and aol addresses I get an email that says:
This is the mail system at host gateway36.websitewelcome.com.
I’m sorry to have to inform you that your message could not
be delivered to one or more recipients. It’s attached below.For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.The mail system
<yolojim@aol.com>: host mx-aol.mail.gm0.yahoodns.net[74.6.141.40] said: 554
Message not allowed – Headers are not RFC compliant[291] (in reply to end
of DATA command)
Reporting-MTA: dns; gateway36.websitewelcome.com
X-Postfix-Queue-ID: 80867400C8426
X-Postfix-Sender: rfc822; torus@drumsbygenre.com
Arrival-Date: Mon, 9 Jul 2018 20:33:42 -0500 (CDT)Final-Recipient: rfc822; yolojim@aol.com
Original-Recipient: rfc822;yolojim@aol.com
Action: failed
Status: 5.0.0
Remote-MTA: dns; mx-aol.mail.gm0.yahoodns.net
Diagnostic-Code: smtp; 554 Message not allowed – Headers are not RFC
compliant[291]I also see that the emails are sending duplicate subject lines which I read could be the root of this issue.
1. Does anyone have a solution for this?
2. If the solution is making sure there is only one subject line, does anyone know how to execute this?Thanks for your time guys 🙂
Hello guys,
I am experimenting some problems with buddypress login.
I have sucessfully registered a few members.
Now none of them can login with their username and pwd.Can you help please?
Hello,
The links related to the member page are not loading any content besides the page header and some text. The page also gets stuck which does not allow me to scroll down to the footer. This issue is only occurring to the links relating to the members page.
I have tried deactivating plugins, reinstalling theme and buddypress plugin but no solution. I don’t no what can be causing this…
Greetings,
We are using LDAP to populate and maintain our Buddypress members list, and because of this we don’t want people to be able to change their password or email address via the Settings > General tab. We would like to therefore hide the General tab and have Settings redirect to a different tab instead (preferably Settings > Profile)
I have gone through the forums and have viewed other posts by people dealing with the same issue, specifically this one:
Here’s the code:
function bpex_change_profile_settings_default_tab() { if( bp_is_active( 'xprofile' ) ) : $access = bp_core_can_edit_settings(); $slug = bp_get_settings_slug(); $args = array( 'parent_slug' => $slug, 'subnav_slug' => 'notifications', 'screen_function' => 'bp_settings_screen_notification', 'user_has_access' => $access ); bp_core_new_nav_default( $args ); endif; } add_action( 'bp_actions', 'bpex_change_profile_settings_default_tab' ); function bpex_remove_general_item_on_usermenu() { global $wp_admin_bar; if ( bp_use_wp_admin_bar() ) { $wp_admin_bar->remove_node( 'my-account-settings-general' ); } } add_action( 'wp_before_admin_bar_render', 'bpex_remove_general_item_on_usermenu' ); function bpex_remove_profile_settings_general_tab() { if( bp_is_active( 'xprofile' ) ) : bp_core_remove_subnav_item( 'settings', 'general' ); endif; } add_action( 'bp_actions', 'bpex_remove_profile_settings_general_tab' );This seems to be the solution I need, but when I add the code to bp-custom.php it does remove the General tab, but now clicking on Settings generates a 404 error. As this post is over a year old, I’m wondering if there have been changes to Buddypress that stops this from working.
I should mention that I’ve done some (but not a lot) of PHP programming. I did have a co-oworker who is quite proficient at PHP look over this with me, but everything we tried failed to work.
Thanks for any help anyone can give.
Is it possible to use GIFs as Profile Avatar in Buddy Press – this means an option to upload without cropping.
Is there any plugin to do so or can someone request a change in Buddypress core.I see that even if the photo is smaller than required dimensions.. it still is forced to be cropped.
thanks