Search Results for 'wordpress'
-
Search Results
-
Hi,
here is the my code. tab is created,
but if user not member this private group redirect to wp-login page. how to open everyone this tab?function custom_members_tab() {
if ( bp_is_groups_component() && bp_is_single_item() ) {
global $bp;
$group_link = bp_get_group_permalink( $bp->groups->current_group );
$tab_args = array(
‘name’ => esc_html__( ‘destination’, ‘default’ ),
‘slug’ => ‘destination-members’,
‘screen_function’ => ‘destination_members_screen’,
‘position’ => 60,
‘parent_url’ => $group_link,
‘parent_slug’ => $bp->groups->current_group->slug,
‘default_subnav_slug’ => ‘destination-members’,
‘item_css_id’ => ‘destination-members’,
‘access’ => ‘anyone’,
‘show_tab’ => ‘anyone’,
‘show_for_displayed_user’ => true
);
bp_core_new_subnav_item( $tab_args, ‘groups’ );
}
}
add_action( ‘bp_setup_nav’, ‘custom_members_tab’ );function destination_members_screen() {
add_action( ‘bp_template_content’, ‘custom_group_tab_content’ );
bp_core_load_template( ‘buddypress/members/single/plugins’ );
}
function custom_group_tab_content() {
echo “show non group members, guests, everyone”
}I read this ticket, but I couldn’t understand how to use it.
https://buddypress.trac.wordpress.org/ticket/4785Hi,
WordPress Version 5.9.2
Theme: MagicVersion: 1.10.0 By Bdaia
Website: miComunidad.comWhen I install the BuddyPress.10.2.0 I get these errors:
WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_notifications' doesn't exist] SELECT COUNT(*) FROM wp_wkkr_bp_notifications n WHERE user_id IN (1) AND component_name IN ('xprofile','friends','messages','activity','groups','members') AND is_new = 1 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_messages_recipients' doesn't exist] SELECT SUM(unread_count) FROM wp_wkkr_bp_messages_recipients WHERE user_id = 1 AND is_deleted = 0 AND sender_only = 0 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_friends' doesn't exist] SELECT id FROM wp_wkkr_bp_friends WHERE (initiator_user_id = 1 OR friend_user_id = 1) ORDER BY date_created DESC WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_invitations' doesn't exist] SELECT DISTINCT i.item_id FROM wp_wkkr_bp_invitations i WHERE user_id IN (1) AND class IN ('bp_groups_invitation_manager') AND type = 'invite' AND invite_sent = 1 AND accepted = 0 WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_groups' doesn't exist] SELECT DISTINCT g.id FROM wp_wkkr_bp_groups g WHERE g.id IN (0) ORDER BY g.date_created DESC WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_groups' doesn't exist] SELECT COUNT(DISTINCT g.id) FROM wp_wkkr_bp_groups g WHERE g.id IN (0) WordPress database error: [Table 'micomuni_wpcristiana.wp_wkkr_bp_notifications' doesn't exist] SELECT id, user_id, item_id, secondary_item_id, component_name, component_action, date_notified, is_new, COUNT(id) as total_count FROM wp_wkkr_bp_notifications n WHERE user_id IN (1) AND component_name IN ('xprofile','friends','messages','activity','groups','members') AND is_new = 1 GROUP BY user_id, component_name, component_action ORDER BY date_notified descHow do I create these database tables? Please help?
Thanks,
Carlos
Topic: Database Errors
Any advice on debugging the error below?
WordPress 5.9.2, BuddyPress 10.1.0, bbPress 2.6.9
(I haven’t upgraded to 10.2.0 yet, but I don’t see any fixes that seems to apply to this.)
It happens “once in a while” since upgrading to 10.1.0. (Four times since March 9th.)
It *might* be related to email notifications (mentions?) in a bbPress closed topic.[09-Mar-2022 17:13:53 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new' at line 1 for query UPDATE wp_bp_notifications SET is_new = 0 WHERE item_id IN () AND user_id = 1348 AND component_name = 'messages' AND component_action = 'new_message' made by require('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/generatepress/page.php'), generate_do_template_part, get_template_part, locate_template, load_template, require('/themes/generatepress/content-page.php'), the_content, apply_filters('the_content'), WP_Hook->apply_filters, bp_replace_the_content, apply_filters('bp_replace_the_content'), WP_Hook->apply_filters, BP_Members_Theme_Compat->single_dummy_content, bp_buffer_template_part, bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages.php'), bp_get_template_part, bp_locate_template, load_template, require('/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/single.php'), bp_thread_the_message, BP_Messages_Thread_Template->the_message, do_action('thread_loop_start'), WP_Hook->do_action, WP_Hook->apply_filters, bp_messages_screen_conversation_mark_notifications, bp_notifications_mark_notifications_by_item_ids, BP_Notifications_Notification::update_id_listWordpress: 5.8.3
BuddyPress: 10.1.0
URL: https://learn.rebeccagordonastrology.com/Why can’t a user that has access to a hidden group not be able to see that group on the groups page?
Thank you for your help.
Topic: Malicious code
Hello friends,
i’m creating a wide social with Buddypress.
Having already considered all the security measures regarding wordpress (first of all registration), which are the way or best practices to avoid maliciuos code injected via publishing a post by a member (that is not manual approval of any commment of course)?
Example: dedicated plug-in, limitation of some symbol as “bad word” (i have plugin) or others.
Many thanks,
Giuseppe
Hi,
I get this message when my pages disappeared and I get a 404-page error.
Notice: Trying to get property ‘ID’ of non-object in <b>/home/micomuni/public_html/wp-content/plugins/pmpro-buddypress/includes/restrictions.php on line 232
Please help?
Thanks.
Hi,
Where can I find the group profile and background images in WordPress? I want to download them, but can’t find them in the Media section.
Thx
Topic: speed up my buddypress site
Hello
I’m hosting my site to Hostinger with the “WordPress Starter Hosting”.
I have installed 35 pluggins (all are updated) and I already note my website speed is slowing down.
The best solution would be to upgrade my hosting plan ? The “WordPress Business Hosting” plan could be sufficient ? Or should select a more powerfull one ?
I would appreciate help.
Thanks.
Fabien
What’s the REST API endpoint to get activity with comments, Or what’s the endpoint to get comments?
I’m using this endpoint getting the last 10 activity but no comments are associated
https://example.com/wp-json/buddypress/v1/activity
I’m using the latest WordPress and buddyPress version and have no problems, everything works fine,
I can not share link to my company website for NDA contract reasons
thanks