Search Results for 'wordpress'
-
Search Results
-
How to edit a slide pictures to a WordPress website without a plugin? this is my website, I want to edit slide picture.
Topic: Bubble Notifications Problem
Hi all! I’m new in php & css.
After reading a lot and learning very little, I managed to program the notifications in my project in php and css. It works fine, shows the amounts (friends, messages and notifications) and redirects where it should.
My problem is that I need to “hide” the bubble of “0” when the user has no notifications and only show when if they have 1 or more notifications

Functions.php
function my_counter_nav_menu($menu) { if ( ! is_user_logged_in() ) { return $menu; } $user_id = bp_loggedin_user_id(); $user_url = bp_loggedin_user_domain(); $friends_url = $user_url . bp_get_friends_slug() . '/'; $msg_url = $user_url . bp_get_messages_slug() . '/'; $notify_url = $user_url . bp_get_notifications_slug() . '/'; ob_start(); ?> <li><a><a href="<?php echo bp_loggedin_user_domain();?>friends"><span class="notifications_icons"><i class="fas fa-user-friends" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo friends_get_friend_count_for_user( $user_id );?></span></a></a></li> <li><a><a href="<?php echo bp_loggedin_user_domain();?>messages"><span class="notifications_icons"><i class="fas fa-envelope" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo bp_get_total_unread_messages_count( $user_id );?></span></a></a></li> <li><a><a href="<?php echo bp_loggedin_user_domain();?>notifications"><span class="notifications_icons"><i class="fas fa-bell" style="font-size:17px;"></i></span><span class="my_bubble_notify"><?php echo bp_notifications_get_unread_notification_count( $user_id );?></span></a></a></li> <?php $menu_items = ob_get_clean(); $menu = $menu . $menu_items; return $menu; } add_filter( 'wp_nav_menu_items', 'my_counter_nav_menu' )CSS
.notifications_icons { color: #ffffff; vertical-align: middle; margin: -7px; } .my_bubble_notify { color: #ffffff; border-radius: 3px; background-color: #f7823f; vertical-align: 20%; position: relative; font-size: small; padding: 0.1em 5px; }Buddypress 6.0.0
Wordpress 5.4.2
site: http://www.gamerstroop.com
If you need, you can use test account (acc:test – pw:test)I dont know if I can paste my site link here. If I can’t please remove it or let me know, thank you so much for reading and helping me! <3
Topic: Emailing BuddyPress Groups
How can one email all members of a BuddyPress group only?
There is the ‘Email WP Users’ plugin:
…but its email ‘Group’ option is greyed-out and not useable. I have posted a query to the plugin’s support page, but no reply.
There is a separate email subscription plugin:
…but that just copies BP Group messages to users who have already opted to receive copies of messages posted to that group.
Is there a simple way in BuddyPress to email all members of a BP Group? (It can’t be that difficult.)
Thank you for your help 🙂
Topic: Display Name
How can I set the user’s register name as display name?
I’ve the latest version of wordpress and buddypress.I have to hide some nav menus of bp users’ profile page from other users. I using the following function to do so. That was working fine.
/* BuddyPress profile nav menu restrictions */
function bpex_hide_profile_menu_tabs()
{if (bp_is_active(‘xprofile’)) :
if (bp_is_user() && !bp_is_my_profile()) {
// BP’s profile main menu items. Comment those to show.
// bp_core_remove_nav_item( ‘activity’ );
// bp_core_remove_nav_item(‘profile’);
bp_core_remove_nav_item(‘friends’);
bp_core_remove_nav_item(‘groups’);
// exist only if you use bbPress
bp_core_remove_nav_item(‘forums’);
// bp_core_remove_nav_item(‘activity’);
bp_core_remove_nav_item(‘following’);
bp_core_remove_nav_item(‘followers’);
bp_core_remove_nav_item(‘bookmarks’);
bp_core_remove_nav_item(‘activity’);// BP’s profile main menu items. Comment those to show.
bp_core_remove_subnav_item(‘activity’, ‘personal’);
bp_core_remove_subnav_item(‘activity’, ‘friends’);
bp_core_remove_subnav_item(‘activity’, ‘groups’);
bp_core_remove_subnav_item(‘activity’, ‘following’);
bp_core_remove_subnav_item(‘activity’, ‘feed’);
}
bp_core_remove_subnav_item(‘activity’, ‘mentions’);
bp_core_remove_subnav_item(‘activity’, ‘favorites’);endif;
}
add_action(‘bp_init’, ‘bpex_hide_profile_menu_tabs’, 15);I have this navigation menu for the bp user on the header by default. When I am viewing other’s profiles the nav menus inside the user’s header menu also get hidden.
Is there any other ways to do this.
I am using the latest version of WordPress 5.4.2, BuddyPress 6.0.0, and BuddyX Theme 1.3.7.
Hello guys,
I have included a few buttons, one for friendrequests, one for messages and one for all notifications, but how I can display the notifications for each button by clicking on the button.
But I dont want that the Notifications were shown in the notifications page, they should be shown in a Popup like Facebook or like the menu of WordPress.
After watching the Popup, the Notifications should become as read.
I would be happy if you could help me.
Hello,
I am working on a subdomain for a client: https://forum.secretsofpakistan.com/
I put a few public Groups on the Homepage, but I can only click on them when I am logged in to the WP site.
When I am logged in, I can visit https://forum.secretsofpakistan.com/groups/uk-nationals-in-pakistan/ e.g. but whoever is not logged in will land on the Homepage of the website.
I already went to Settings – Permalinks and selected “Post Name”.
WordPress Version 5.4.2
BuddyPress Version 6.0.0
Theme AardvarkDoes anyone has an idea how to make the Group pages visible for non-logged in visitors?
Hi,
Is there a way to stop users being able to tick the checkbox and use weak passwords while updating their password through BuddyPress? I have googled and found various answers of how to enforce strong passwords, and also code to remove the option to allow it, but for WordPress, not specifically BuddyPress. However, none of the things I have tried have worked.
I’m even struggling to hide it uses CSS and using !important as it is overridden.
I am using the latest WordPress/BuddyPress and the Woostify theme. My website is https://segauniverse.com, however you need to be registered to access BuddyPress (under Community/SEGA Chat).
I don’t want users to be able to select a weak password, as they can select a 1 letter password or basic word, and i think this is a security risk.
Thanks