Search Results for 'display users posts'
-
Search Results
-
Hi everyone, I’ve been building a community website using BuddyPress where people can share restaurant experiences, and I set up a section specifically for Texas Roadhouse fans. The idea is to let users join the group, share menu reviews, upload food photos, and talk about their visits. However, I’ve been running into a technical issue: the Texas Roadhouse group page isn’t displaying properly compared to other groups.
When users join the Texas Roadhouse group, the activity feed either doesn’t update or loads very slowly. Sometimes the posts don’t appear at all until I refresh the page multiple times. What’s strange is that other groups on my site (like “Olive Garden” or “Chili’s”) work fine and update instantly.
I checked my BuddyPress settings, and everything looks identical across groups. The group permissions and activity stream settings are the same, so I don’t understand why this one page is behaving differently. I even tried disabling a couple of plugins (like caching and image optimization) to rule out conflicts, but the issue remained.
Another problem is with the group media uploads. When someone tries to upload a photo of their Texas Roadhouse meal, the upload hangs or fails completely, even though image uploads work in other groups. This makes me wonder if there’s some kind of database issue or corruption specific to this group ID.
Has anyone else faced a situation where a single BuddyPress group acts differently from the rest? I’d love to know if there’s a fix—whether it’s resetting the group, clearing caches, or maybe adjusting BuddyPress database tables. Any advice would be greatly appreciated, since this Texas Roadhouse group is one of the most popular on my site.
Hello,
I try for hours to create a function, which will display a small red dot on the nav-bars acitivity stream link, when someone posted something new. Since all users are logged in, it should be possible to work with metadata “last_activity_visit”.
Example screenshot: https://i.imgur.com/eeCvvkj.jpeg
What I tried:
Added below code to themes functions.php. Actually managed to display a red dot, when trying around with the code. But either the dot won’t be displayed at all, or it’s displayed always, even when the user visited the acitivity stream.function track_activity_page_visit() { if (bp_is_activity_component()) { update_user_meta(get_current_user_id(), 'last_activity_visit', current_time('mysql')); } } add_action('wp', 'track_activity_page_visit'); function has_new_activity_posts() { $last_visit = get_user_meta(get_current_user_id(), 'last_activity_visit', true); if (empty($last_visit)) { return false; } $args = array( 'date_query' => array( array( 'after' => $last_visit, ), ), 'max' => 1 ); $activities = bp_activity_get($args); if (!empty($activities['activities'])) { return true; } return false; } function add_red_dot_to_menu_buddypress_activity($items, $args) { if (is_user_logged_in() && has_new_activity_posts()) { foreach ($items as &$item) { if (strpos($item->url, '/activity/') !== false) { $item->title .= ' <span class="red-dot"></span>'; } } } return $items; } add_filter('wp_nav_menu_objects', 'add_red_dot_to_menu_buddypress_activity', 10, 2);Any clue? 🙂
Adds a retweet functionality to BuddyPress activity streams.
Main functions:
Adding a retweet button:
The “Retweet” button is added to each record of activity in the feed. Shows the number of retweets of each entry.
Creating a new activity:
When you click on the “Retweet” button, a new record is created in the activity feed of the user who retweeted the original post. The original publication is not changed, but a new record appears indicating the author of the original.
Retweet banner:
The new activity record contains a banner with the original author’s avatar and name, as well as a link to original publication.
User notifications:
The user receives a notification when their post has been retweeted. The notification contains the name of the user who made the retweet and a link to the new activity record. The author of the post does not receive a notification if he retweeted his own post.
Retweet counter:
The plugin tracks the number of retweets of each post and displays this information next to the “Retweet” button.
Styles and scripts:
The plugin includes custom styles for buttons and banners, as well as JavaScript for dynamic interaction with the retweet button.
Translation support:
The plugin supports translation into other languages, which allows you to localize it for different language audiences.
Advantages of using the plugin:
Increased engagement: Users can easily share interesting posts, which increases engagement on the platform. Convenience: A simple interface allows users to quickly retweet posts without having to copy and paste content. Notifications: Users stay informed when their posts are retweeted, adding motivation to create content. Localization: Translation support allows you to use the plugin in different languages, making it accessible to a global audience. The Revitek post for BuddyPress plugin is a powerful tool for improving user engagement on your BuddyPress platform. With it, users can easily share posts, receive notifications about interactions and enjoy a user-friendly interface.
This is a release version, so I will be grateful for feedback and suggestions.
I created a small plugin where users can subscribe to authors, but for some reason users are not notified when the author publishes a new post. Please help to solve this problem. I checked the logs, it shows that the notification was sent, but the notification itself is not there!
<?php /* Plugin Name: Author Subscription and Notification Description: Allows users to subscribe to authors and receive notifications when authors publish new posts. Version: 1.3 Author: test */ // Hook to create the database table upon plugin activation register_activation_hook(__FILE__, 'create_subscriptions_table'); function create_subscriptions_table() { global $wpdb; $table_name = $wpdb->prefix . 'author_subscriptions'; $charset_collate = $wpdb->get_charset_collate(); $sql = "CREATE TABLE $table_name ( id bigint(20) NOT NULL AUTO_INCREMENT, user_id bigint(20) NOT NULL, author_id bigint(20) NOT NULL, PRIMARY KEY (id), UNIQUE KEY user_author (user_id, author_id) ) $charset_collate;"; require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); dbDelta($sql); } // Hook to add subscription button in the post content add_filter('the_content', 'add_author_subscription_button_to_post'); function add_author_subscription_button_to_post($content) { if (is_single() && is_user_logged_in()) { $author_id = get_the_author_meta('ID'); $current_user_id = get_current_user_id(); global $wpdb; $table_name = $wpdb->prefix . 'author_subscriptions'; // Check if user is already subscribed $is_subscribed = $wpdb->get_var($wpdb->prepare( "SELECT COUNT(*) FROM $table_name WHERE user_id = %d AND author_id = %d", $current_user_id, $author_id )); $button_text = $is_subscribed ? 'Unsubscribe' : 'Subscribe'; $button_html = '<button id="subscribe-author" class="subscribe-button" data-author-id="' . esc_attr($author_id) . '">' . esc_html($button_text) . '</button>'; $button_html .= '<div id="subscription-message"></div>'; $content .= $button_html; } return $content; } // Enqueue the JavaScript file and localize script add_action('wp_enqueue_scripts', 'enqueue_subscription_script'); function enqueue_subscription_script() { if (is_single() && is_user_logged_in()) { wp_enqueue_script('subscription-script', plugin_dir_url(__FILE__) . 'subscription.js', array('jquery'), '1.0', true); wp_localize_script('subscription-script', 'subscriptionData', array( 'ajax_url' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('subscription_nonce') )); } } // Handle the AJAX request for subscription add_action('wp_ajax_handle_author_subscription', 'handle_author_subscription'); function handle_author_subscription() { check_ajax_referer('subscription_nonce', 'nonce'); if (is_user_logged_in()) { global $wpdb; $table_name = $wpdb->prefix . 'author_subscriptions'; $current_user_id = get_current_user_id(); $author_id = intval($_POST['author_id']); $operation = sanitize_text_field($_POST['operation']); if ($operation === 'subscribe') { $wpdb->insert($table_name, array( 'user_id' => $current_user_id, 'author_id' => $author_id )); wp_send_json_success('Subscribed successfully.'); error_log("User ID $current_user_id subscribed to author ID $author_id"); } else if ($operation === 'unsubscribe') { $wpdb->delete($table_name, array( 'user_id' => $current_user_id, 'author_id' => $author_id )); wp_send_json_success('Unsubscribed successfully.'); error_log("User ID $current_user_id unsubscribed from author ID $author_id"); } } wp_send_json_error('Failed to update subscription.'); } // Hook to send notifications when an author publishes a new post add_action('publish_post', 'notify_subscribers_on_new_post'); function notify_subscribers_on_new_post($post_id) { global $wpdb; $table_name = $wpdb->prefix . 'author_subscriptions'; $post = get_post($post_id); $author_id = $post->post_author; error_log("New post published by author ID: " . $author_id); // Get subscribers $subscribers = $wpdb->get_results($wpdb->prepare( "SELECT user_id FROM $table_name WHERE author_id = %d", $author_id )); error_log("Subscribers found: " . count($subscribers)); foreach ($subscribers as $subscriber) { // Send BuddyPress notification bp_notifications_add_notification(array( 'user_id' => $subscriber->user_id, 'item_id' => $post_id, 'secondary_item_id' => $author_id, 'component_name' => 'buddypress', 'component_action' => 'new_post_by_subscribed_author', 'date_notified' => bp_core_current_time(), 'is_new' => true, )); error_log("Notification sent to user ID: " . $subscriber->user_id); } } // Custom notification format add_filter('bp_notifications_get_notifications_for_user', 'custom_bp_notification_format', 10, 5); function custom_bp_notification_format($content, $item_id, $secondary_item_id, $action, $component_name) { if ($component_name === 'buddypress' && $action === 'new_post_by_subscribed_author') { $author_name = get_the_author_meta('display_name', $secondary_item_id); $post_title = get_the_title($item_id); $post_url = get_permalink($item_id); $content = sprintf(__('New post by %s: <a href="%s">%s</a>', 'text-domain'), $author_name, $post_url, $post_title); } return $content; } ?>[23-May-2024 09:42:15 UTC] a:0:{} [23-May-2024 09:42:40 UTC] New post published by author ID: 1 [23-May-2024 09:42:40 UTC] Subscribers found: 2 [23-May-2024 09:42:40 UTC] Notification sent to user ID: 1 [23-May-2024 09:42:40 UTC] Notification sent to user ID: 27 [23-May-2024 09:42:43 UTC] a:0:{}I expect this is likely a configuration issue with either our BuddyPress installation, a conflict from another plugin (though it works on staging version), or perhaps a lingering cacheing issue. But looking to find assistance resolving it and willing to consider hired help on this.
No url to share, as it is a member’s only site (Intranet).
### wp-core ### version: 6.1.1 site_language: en_CA user_language: en_CA timezone: America/Vancouver permalink: /%year%/%monthnum%/%day%/%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 0 default_comment_status: open environment_type: production user_count: 431 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/susyah/public_html wordpress_size: 58.81 MB (61669230 bytes) uploads_path: /home/susyah/public_html/wp-content/uploads uploads_size: 62.25 MB (65272481 bytes) themes_path: /home/susyah/public_html/wp-content/themes themes_size: 23.15 MB (24279208 bytes) plugins_path: /home/susyah/public_html/wp-content/plugins plugins_size: 400.27 MB (419712905 bytes) database_size: 96.29 MB (100972517 bytes) total_size: 640.78 MB (671906341 bytes) ### wp-dropins (2) ### advanced-cache.php: true maintenance.php: true ### wp-active-theme ### name: Kleo Child (kleo-child) version: undefined author: SeventhQueen author_website: http://seventhqueen.com parent_theme: Kleo (kleo) theme_features: core-block-patterns, widgets-block-editor, editor-style, automatic-feed-links, post-formats, menus, post-thumbnails, html5, featured-content, title-tag, customize-selective-refresh-widgets, responsive-embeds, kleo-facebook-login, kleo-mega-menu, kleo-menu-items, bbpress, woocommerce, buddypress-use-nouveau, widgets theme_path: /home/susyah/public_html/wp-content/themes/kleo-child auto_update: Disabled ### wp-parent-theme ### name: Kleo (kleo) version: 5.1.2 author: SeventhQueen author_website: https://themeforest.net/user/SeventhQueen theme_path: /home/susyah/public_html/wp-content/themes/kleo auto_update: Disabled ### wp-themes-inactive (1) ### Twenty Twenty-Three: version: 1.0, author: the WordPress team, Auto-updates disabled ### wp-plugins-active (71) ### Admin Menu Editor Pro: version: 2.18.1, author: Janis Elsts, Auto-updates disabled AS Admin Customizer: version: 1.0, author: Andolasoft, Auto-updates disabled bbPress: version: 2.6.9, author: The bbPress Contributors, Auto-updates disabled bbp style pack: version: 5.4.1, author: Robin Wilson, Auto-updates disabled Better Notifications for WP: version: 1.9.2, author: Made with Fuel, Auto-updates disabled Big File Uploads: version: 2.1.1, author: Infinite Uploads, Auto-updates disabled BP Profile Search: version: 5.4.8, author: Andrea Tarantini, Auto-updates disabled Brozzme Multiple Admin Emails: version: 1.4, author: Benoti, Auto-updates disabled BuddyPress: version: 11.1.0, author: The BuddyPress Community, Auto-updates disabled BuddyPress Notifications Widget: version: 1.3.2, author: BuddyDev, Auto-updates disabled Classic Editor: version: 1.6.2, author: WordPress Contributors, Auto-updates disabled Display Posts: version: 3.0.2, author: Bill Erickson, Auto-updates disabled Document Library Pro: version: 1.9.4, author: Barn2 Plugins, Auto-updates disabled Duplicate Page: version: 4.5.1, author: mndpsingh287, Auto-updates disabled Envato Market: version: 2.0.8, author: Envato, Auto-updates disabled Essential Grid: version: 3.0.16, author: ThemePunch, Auto-updates disabled FileBird: version: 5.1.4, author: Ninja Team, Auto-updates disabled Force Login: version: 5.6.3, author: Kevin Vess, Auto-updates disabled GeoDirectory: version: 2.2.25, author: AyeCode - WordPress Business Directory Plugins, Auto-updates disabled Image Upload for BBPress: version: 1.1.18, author: Aspen Grove Studios, Auto-updates disabled Jetpack: version: 11.9.1, author: Automattic, Auto-updates disabled Jetpack Boost: version: 1.7.0, author: Automattic - Jetpack Site Speed team, Auto-updates disabled K Elements: version: 5.1.2, author: SeventhQueen, Auto-updates disabled K Fonts: version: 1.1.0, author: SeventhQueen, Auto-updates disabled Like Button Rating ♥ LikeBtn: version: 2.6.47, author: LikeBtn, Auto-updates disabled List Categories: version: 0.4, author: Fernando Briano, Auto-updates disabled MainWP Child: version: 4.4.0.1, author: MainWP, Auto-updates disabled Manage Notification E-mails: version: 1.8.4, author: Virgial Berveling, Auto-updates disabled Media Sync: version: 1.2.9, author: Erol Živina, Auto-updates disabled Meta Box: version: 5.6.17, author: MetaBox.io, Auto-updates disabled MonsterInsights - Dimensions Addon: version: 2.0.6, author: MonsterInsights Team, Auto-updates disabled MonsterInsights - Forms Tracking Addon: version: 2.2.6, author: MonsterInsights Team, Auto-updates disabled MonsterInsights - Media Addon: version: 1.0.7, author: MonsterInsights Team, Auto-updates disabled MonsterInsights - Page Insights Addon: version: 1.5.2, author: MonsterInsights Team, Auto-updates disabled MonsterInsights Pro: version: 8.13.1, author: MonsterInsights, Auto-updates disabled Ninja Forms: version: 3.6.20, author: Saturday Drive, Auto-updates disabled Page-list: version: 5.3, author: webvitaly, Auto-updates disabled Page scroll to id: version: 1.7.7, author: malihu, Auto-updates disabled Pages with category and tag: version: 0.9.0, author: YAHMAN, Auto-updates disabled Popup Maker: version: 1.18.1, author: Popup Maker, Auto-updates disabled Post Slider For Visual Composer: version: 1.1, author: Nasir, Auto-updates disabled PublishPress Permissions: version: 3.8.5, author: PublishPress, Auto-updates disabled Redirection: version: 5.3.9, author: John Godley, Auto-updates disabled rtMedia for WordPress, BuddyPress and bbPress: version: 4.6.13, author: rtCamp, Auto-updates disabled SearchWP: version: 4.2.9, author: SearchWP, Auto-updates disabled SearchWP bbPress Integration: version: 1.3.1, author: SearchWP, Auto-updates disabled SearchWP Custom Results Order: version: 1.3.6, author: SearchWP, Auto-updates disabled SearchWP Live Ajax Search: version: 1.7.4, author: SearchWP, LLC, Auto-updates disabled SearchWP Shortcodes: version: 1.8.3, author: SearchWP, Auto-updates disabled Shortcode in Menus: version: 3.5.1, author: Gagan Deep Singh, Auto-updates disabled Site Plugin for susyah.csfs.org: author: (undefined), version: (undefined), Auto-updates disabled Social Articles: version: 2.9.5, author: Broobe, Auto-updates disabled SQ Sidebar Generator: version: 1.2.2, author: SeventhQueen, Auto-updates disabled TablePress: version: 2.0.4, author: Tobias Bäthge, Auto-updates disabled The Events Calendar: version: 6.0.10, author: The Events Calendar, Auto-updates disabled The Events Calendar: Community Events: version: 4.10.5, author: The Events Calendar, Auto-updates disabled The Events Calendar: Filter Bar: version: 5.4.3, author: The Events Calendar, Auto-updates disabled The Events Calendar PRO: version: 6.0.9.2, author: The Events Calendar, Auto-updates disabled User Role Editor: version: 4.63.3, author: Vladimir Garagulya, Auto-updates disabled User Switching: version: 1.7.0, author: John Blackbourn & contributors, Auto-updates disabled UsersWP: version: 1.2.3.11, author: AyeCode Ltd, Auto-updates disabled Wbcom Designs - BuddyPress Member Export Import: version: 1.5.0, author: Wbcom Designs, Auto-updates disabled When Last Login: version: 1.2.2, author: Yoohoo Plugins, Auto-updates disabled WordPress Toolbar Editor: version: 1.4.2, author: Janis Elsts, Auto-updates disabled WP Add Mime Types: version: 3.0.3, author: Kimiya Kitani, Auto-updates disabled WPBakery Page Builder: version: 6.10.0, author: Michael M - WPBakery.com, Auto-updates disabled wpDataTables - Tables & Table Charts: version: 2.1.53, author: TMS-Plugins, Auto-updates disabled WP Easy Updates: version: 1.1.20, author: AyeCode Ltd, Auto-updates disabled WPForms Lite: version: 1.8.0.2, author: WPForms, Auto-updates disabled WP Rocket: version: 3.12.5.3, author: WP Media, Auto-updates disabled WP SMS: version: 6.1.1, author: VeronaLabs, Auto-updates disabled ### wp-plugins-inactive (1) ### Password Protected Categories: version: 2.1.8, author: Barn2 Plugins, Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available imagick_version: Not available file_uploads: File uploads is turned off post_max_size: 128M upload_max_filesize: 128M max_effective_size: 128 MB max_file_uploads: 20 gd_version: 2.3.3 gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: 9.25 ### wp-server ### server_architecture: Linux 3.10.0-962.3.2.lve1.5.42.el7.x86_64 x86_64 httpd_software: Apache php_version: 7.4.33 64bit php_sapi: litespeed max_input_variables: 10000 time_limit: 360 memory_limit: 2048M max_input_time: 360 upload_max_filesize: 128M php_post_max_size: 128M curl_version: 7.84.0 OpenSSL/1.1.1p suhosin: false imagick_availability: false pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 5.7.41 client_version: mysqlnd 7.4.33 max_allowed_packet: 268435456 max_connections: 250 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/susyah/public_html/wp-content WP_PLUGIN_DIR: /home/susyah/public_html/wp-content/plugins WP_MEMORY_LIMIT: 1024M WP_MAX_MEMORY_LIMIT: 2048M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: true SCRIPT_DEBUG: true WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable 0: Writable ### jetpack ### site_id: 212215713 ssl_cert: No time_diff: 2 version_option: 11.9.1:1678828073 old_version: 11.9:1678301680 public: Public master_user: #1 ConceptDesign current_user: #1 ConceptDesign tokens_set: Blog User blog_token: P8&fk$QOWUjx^E0IRR3qiHSD*VPExwHg user_token: bvJ0#WWGEoaVgl@fq*KX$BqCk5YW7Si1 version: 11.9.1 jp_plugin_dir: /home/susyah/public_html/wp-content/plugins/jetpack/ plan: free protect_header: {"trusted_header":"REMOTE_ADDR","segments":1,"reverse":false} full_sync: {"started":"Tue, 08 Nov 2022 19:26:26 +0000","finished":"Tue, 08 Nov 2022 19:31:21 +0000","progress":{"comments":{"total":"5","sent":5,"finished":true,"last_sent":"3"},"constants":{"finished":true},"functions":{"finished":true},"options":{"finished":true},"posts":{"total":"3647","sent":3647,"finished":true,"last_sent":"2"},"term_relationships":{"total":"3115","sent":3115,"finished":true,"last_sent":{"object_id":"1","term_taxonomy_id":"270"}},"terms":{"total":"398","sent":398,"finished":true,"last_sent":"1"},"themes":{"finished":true},"updates":{"finished":true},"users":{"total":"83","sent":83,"finished":true,"last_sent":"1"}},"config":{"comments":1,"constants":1,"functions":1,"options":1,"posts":1,"term_relationships":1,"terms":1,"themes":1,"updates":1,"users":1}} sync_size: undefined sync_lag: 0 seconds full_sync_size: undefined full_sync_lag: 0 seconds idc_urls: {"home":"https:\/\/susyah.csfs.org","siteurl":"https:\/\/susyah.csfs.org","WP_HOME":"","WP_SITEURL":""} idc_error_option: false idc_optin: true cxn_tests: All Pass. ### buddypress ### version: 11.1.0 active_components: Community Members, Extended Profiles, Account Settings, Friend Connections, Private Messaging, Activity Streams, Notifications, User Groups template_pack: BuddyPress Nouveau 11.1.0 ! hide-loggedout-adminbar: No ! bp-disable-account-deletion: No ! bp-disable-avatar-uploads: Yes ! bp-disable-cover-image-uploads: Yes bp-enable-members-invitations: No bp-enable-membership-requests: No ! bp-disable-profile-sync: Yes ! bp_restrict_group_creation: No ! bp-disable-group-avatar-uploads: Yes ! bp-disable-group-cover-image-uploads: Yes ! bp-disable-blogforum-comments: Yes _bp_enable_heartbeat_refresh: Yes ### redux-framework ### version: 4.3.12 installation: in_plugin data directory: /home/susyah/public_html/wp-content/plugins/k-elements/lib/options/ browser: Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0 Browser: Firefox Version: 112.0 Platform: Apple ### redux-instance-kleo_kleo_child ### opt_name: kleo_kleo_child global_variable: false dev_mode: false ajax_save: false page_slug: kleo_options page_permissions: manage_options menu_type: menu page_parent: themes.php compiler: false output: false output_tag: true templates_path: undefined extensions: Customizer: 4.0.0 Import Export: 4.0.0 Metaboxes: 4.0.0 Options Object: 4.0.0 Repeater: 4.3.7 Search: 3.4.5 Shortcodes: 4.3.5 ### wpforms ### version: 1.8.0.2 lite: Nov 14, 2022 @ 5:41pm upload_dir: Writable total_forms: undefined total_submissions: undefined ### bp-profile-search ### version: 5.4.8 platform: BuddyPress 11.1.0 theme: Kleo Child index: /plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/index.php loop: /plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/members-loop.php template0: /themes/kleo/buddypress-nouveau/members/bps-form-legacy.php template1: /themes/kleo/buddypress-nouveau/members/bps-form-inline.php template2: /themes/kleo/buddypress-nouveau/members/bps-form-with-labels.phpHere’s my problem:
I have a list of 100 clubs (tennis club, chess club…). They each have data like title, description, phone…
1) I would like to initialize the buddypress members list with these clubs, adding some data fields and giving them a login/pass
2) I would like people interested in a club to join the network but not be displayed in the top level list of members (which only shows the “club” members)
3) These other members who join should be able to subscribe to a club, manage “members”, respond to posts the club makes…
4) These users would not be visible in the top level list of members (since the members are only the clubs)
Is this kind of thing possible with buddypress? (I’m guessing not) If not, what sort of solution should I be looking at?
Thanks for any helpHello
I have decided to add a bbpress forum to my buddypress site because it allows to sort, archive and retrieve easily threads. In fact, when a user posts a question in the “what’s new” text box in buddypress and when other users comment this post, the thread quickly diseappears under the newsfeed activity. So, it becomes impractical to retrieve this interesting thread later. That’s why I prefer to prevent the users from posting anything on the newsfeed page and to force them to create a forum topic to launch a discussion.
With a bbpress forum, the topics and the different forums allow to have a look easily on every topics created and it is very simple to search any type of topic with the search feature.
So, to get a perfect combination of Buddypress and Bbpress, I am trying to get the next features :
1. Disable the “Comment” button when a forum topic is displayed on the newsfeed = we can configure it in the buddypress general settings = OK.
2. I would like to allow the user to directly reply to the topic by clicking on the comment reply button. Actually, if he clicks on this button he just will be able to commment the activity. It would be great if by clicking he could reply to the topic.
The new link for the comment reply button would be the direct link to reply the topic.
I also would like to change “Comment” tab by “Reply” tab.
3. Hide the “what’s new” text box at the top of the newsfeed page = I did it with css/display=none. I have created instead a “new topic” button in a widget.
4. When a user creates a buddypress group, a forum should be automatically created with the same name as the group (the user can’t choose if he wants to create a forum or not). Is it possible to force that ?
5. When a user creates a new topic from a buddypress group forum, the “Create new topic” button should create a new topic directly in the group linked to the forum. Is it possible to force that ?
6. Once a new topic is created, when you push the “Submit” button, you should be linked to the newsfeed page to see how the topic you have just created is displayed on the newsfeed and not to the forum index page.
I hope you understand all what I mean with my poor english. I have contacted the theme’s author (BuddyX/Webcom design) but they answered they can not help me. Bbpress support advised me to post here.
Do you think it is possible to configure such features ?
Thanks a lot.
Fabien
Hello dear forum community,
do you have an idea how to solve this: in the list of displayed activity comments within a certain group, which I can identify by the group ID, I want to show only the contributions of the currently logged in user.
So in the end a kind of filter that acts as if the database entries of other users wouldnt be there at all (maybe by manipulating the returned result set). I want to set up a support forum where each user sees only his own support requests.
Is there a “bp user can” hook which could help?
Thanks!Hello. I am using BuddyPress and there is a section where users can post YouTube videos.
It just doesn’t look the same or appealing without thumbnails displayed by the title.
Is there any way at all to make this work?
I am using the BuddyPress Boss Theme and support said the only way I may be able to do this is to perhaps hire one of their developers.
Geeze, I had paid enough.
I just had to shell out to customize a registration form because there wasn’t a way provided to even change the background color of the page.I’d really appreciate it so much!
Thank you!
I’ve got a client that is wanting to know more about when users were last active, or logged-in on the site.
I’m aware of bp_member_last_active() but I don’t know what it is tracking and displays. Does it update when a user logs in, or only when a user posts something. So, for example, does it never update when a user logs in, but never posts anything and just lurks, or does the login itself trigger and update and show that as their last activity?
Similar to instagram or twitter or many others, in a multi-user site, I would like to have a page that displays posts from users that I follow. I don’t want to see all the posts from all users..
Buddypress follow plugin solves half of the problem by providing follower mechanism. However, the other half, providing each user a page/newsfeed that only shows posts from specific users that he/she follows is something desirable.
How can I achieve this functionality ?
Thanks
Hi there,
I found this article on how to add a new tab in the Buddypress profile menu > https://blog.maximusbusiness.com/2013/06/buddypress-profile-custom-bp-menu/.
I haven’t tried it yet because I’d like to know, before I mess up anything, if it’s possible to display posts from specified categories and how to achieve it.So, my users can send 2 types of posts : Galleries and Services. The first one is a basic Gallery system, users post pictures and that’s it. The second one is a classic text post with informations.
I need to split them in the Buddypress profile nav menu.How can I tell Buddypress “in this tab you get the posts from these categories”?
Thank you for your time and help!
Topic: Adding Comments To Profile
I see that new comments from the standard post type are added to the Activity tab in a users profile. Two questions.
1. How do we display all of the users comments in the Activity Tab?
2. How do we display comments left on custom post types, not just standard posts?
Thanks.
Hi guys
I have the Aardvark theme which comes bundled with Paid Memberships Pro and BuddyPress/bbPress.
WP version 5.3.2, BP version 5.1.2
I’ve set the site so any non logged-in user goes to a set page, the site is essentially private.For some reason, the activity feed on the homepage wall only shows activities when logged in as admin. Any other user gets the message “Sorry, there was no activity found. Please try a different filter.” If they post a status, it’s visible when posted and goes into the database, but refreshing the homepage leads to an empty wall again.
I’ve only made one recommended tweak to the child theme – redirecting non-logged in users to a “public page”. I can provide the admin login if that helps.
function my_template_redirect_require_membership_access() { if(!is_admin()){ if ( function_exists( 'pmpro_has_membership_access' ) && ! pmpro_has_membership_access() ) { wp_redirect( pmpro_url( 'levels' ) ); exit; } } } add_action( 'template_redirect', 'my_template_redirect_require_membership_access' );As I don’t know where the problem lies I’m not sure what settings to show you. I’ve tried disabling all of the additional plugins I’ve installed to no avail. Here are the plugins I have installed:
Aardvark Plugin
bbP private groups
This plugin adds private groups to the forums, allocating users to groups, and combinations of forums to those groups, creating multiple closed forums.bbPress
bbPress is forum software with a twist from the creators of WordPress.bbPress Notify (No-Spam)
Sends email notifications upon topic/reply creation, as long as it’s not flagged as spam. If you like this plugin, help share the trust and rate it!BP Profile Search
BuddyPress
BuddyPress Xprofile Custom Field Types
Classic Editor
Coming Soon Page, Under Construction & Maintenance Mode by SeedProd
Contact Form 7
Elementor
Envato Market
Events Manager
GD bbPress Attachments
LayerSlider WP
Paid Memberships Pro
Paid Memberships Pro – bbPress Add On
Paid Memberships Pro – BuddyPress Add On
Paid Memberships Pro – Mailchimp Add On
Passster
Plugin to password-protect portions of a Page or Post.Responsive for WPBakery Page Builder
rtMedia for WordPress, BuddyPress and bbPress
Sensei Certificates
Sensei LMS
Smash Balloon Instagram Feed
Display beautifully clean, customizable, and responsive Instagram feeds.Smush
Reduce image file sizes, improve performance and boost your SEO using the free WPMU DEV WordPress Smush API.Theia Sticky Sidebar
Transcoder
Ultimate Reviewer
UpdraftPlus – Backup/Restore
Backup and restore: take backups locally, or backup to Amazon S3, Dropbox, Google Drive, Rackspace, (S)FTP, WebDAV & email, on automatic schedules.WooCommerce
Wordfence Security
Wordfence Security – Anti-virus, Firewall and Malware Scan
WordPress Popular Posts
WP Google Review Slider
Allows you to easily display your Google Places business reviews in your Posts, Pages, and Widget areas!WP-Live Chat by 3CX
The easiest to use website live chat plugin. Let your visitors chat with you and increase sales conversion rates with WP-Live Chat by 3CX.WPBakery Page Builder
Youzer
I can send a link to a zip file of the settings of the various membership and theme plugins if that helps.
I understand the issue could be complex but I’m a PHP developer, so if you know of some places I can look in the code or starting points for investigation that would be really helpful 🙂
Cheers
Ive tried multiple times with different usernames and emails but the registration page is not working;
1. Which version of WordPress are you running?
WordPress 5.2.2
2. Did you install WordPress as a directory or subdomain install?
no, on the root
3. If a directory install, is it in root or in a subdirectory?
root
4. Did you upgrade from a previous version of WordPress? If so, from which version?
no
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
yes
6. Which version of BP are you running?
Version 4.4.0
7. Did you upgraded from a previous version of BP? If so, from which version?
no
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
Akismet Anti-Spam
Activate | Delete
Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.Version 4.1.2 | By Automattic | View details
Select bbPress
bbPress
Deactivate | Settings | About
bbPress is forum software with a twist from the creators of WordPress.Version 2.5.14 | By The bbPress Community | View details
Select BuddyPress
BuddyPress
Deactivate | Settings | Hello, BuddyPress!
BuddyPress adds community features to WordPress. Member Profiles, Activity Streams, Direct Messaging, Notifications, and more!Version 4.4.0 | By The BuddyPress Community | View details
Select Contact Form 7
Contact Form 7
Settings | Deactivate
Just another contact form plugin. Simple but flexible.Version 5.1.4 | By Takayuki Miyoshi | View details
Select Envato Market
Envato Market
Deactivate
WordPress Theme & Plugin management for the Envato Market.Version 2.0.1 | By Envato | Visit plugin site
Select Featured Image from URL
Featured Image from URL
Activate | Delete
Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.Version 2.6.0 | By Marcel Jacques Machado | View details
Select Google Captcha (reCAPTCHA) by BestWebSoft
Google Captcha (reCAPTCHA) by BestWebSoft
Settings | Deactivate
Protect WordPress website forms from spam entries with Google Captcha (reCaptcha).Version 1.51 | By BestWebSoft | View details | Settings | FAQ | Support
Select Hello Dolly
Hello Dolly
Activate | Delete
This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from Hello, Dolly in the upper right of your admin screen on every page.Version 1.7.2 | By Matt Mullenweg | View details
Select Leadpages Connector
Leadpages Connector
Deactivate
Connect your Leadpages account to your WordPress site to import Leadpages and LeadboxesVersion 2.1.6.21 | By Leadpages | Visit plugin site
Select OptimizePress
OptimizePress
Deactivate
OptimizePress is the essential plugin for marketers. Create squeeze pages, sales letters and much more with ease.Version 2.5.21 | By OptimizePress | Visit plugin site
Select Post Views Counter
Post Views Counter
Settings | Deactivate
Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.Version 1.3.1 | By Digital Factory | View details | Support
Select Socialize Plugin
Socialize Plugin
Deactivate
A required plugin for Socialize theme you purchased from ThemeForest. It includes a number of features that you can still use if you switch to another theme.Version 3.10 | By GhostPool
Select The Events Calendar
The Events Calendar
Deactivate | Settings | Calendar
The Events Calendar is a carefully crafted, extensible plugin that lets you easily share your events. Beautiful. Solid. Awesome.Version 4.9.7 | By Modern Tribe, Inc. | View details | Support | View All Add-Ons
Select Theia Sticky Sidebar
Theia Sticky Sidebar
Deactivate
Glues your website’s sidebars, making them permanently visible while scrolling.Version 1.8.0 | By WeCodePixels | Visit plugin site
Select Visual Sidebar Editor
Visual Sidebar Editor
Deactivate
An addon that allow you to use WPBakery Visual Composer or wordress editor to override sidebarsVersion 1.2.5 | By ERROPiX | Visit plugin site
Select WishList Member™ 3.0
WishList Member™ 3.0
Deactivate
WishList Member™ 3.0 is the most comprehensive membership plugin for WordPress users. It allows you to create multiple membership levels, protect desired content and much more. For more WordPress tools please visit the WishList Products Blog. Requires at least WordPress 4.0 and PHP 5.4Version 3.0.6282 | By WishList Products | Visit plugin site
Select WordPress Automatic Plugin
Wordpress Automatic Plugin
Deactivate
WordPress Automatic posts quality articles, Amazon products, Clickbank products, Youtube videos, eBay items, Flicker images, RSS feeds posts on auto-pilot and much more.Version 2.3.3 | By Miled | View details
Select WPBakery Page Builder
WPBakery Page Builder
Settings | Deactivate
Drag and drop page builder for WordPress. Take full control over your WordPress site, build any layout you can imagine – no programming knowledge required.Version 6.0.5 | By Michael M – WPBakery.com | Visit plugin site
Select Yoast SEO
Yoast SEO
FAQ | Premium Support | Settings | Deactivate
The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.9. Are you using a standard WordPress theme or customized theme?
Socialize Child Theme
10. Which theme do you use ?
Socialize Child Theme
11. Have you modified the core files in any way?
no
12. Do you have any custom functions in bp-custom.php?
no
13. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
built in i think
14. Please provide a list of any errors in your server’s log files. https://codex.wordpress.org/Debugging_in_WordPress
dont think i have these – just cant get registered as a pretend user on the registration page
15. Which company provides your hosting?
D9
16. Is your server running Windows, or if Linux; Apache, nginx or something else?
Apache i think
17. Which BP Theme are you using?
dont know
18. Have you overloaded any BuddyPress template files.
no
19. Any other site customisations that might have a bearing on the issue?
no
Hi,
So for our sins we’ve customised our profile page to be a lot different to the core (not by choice), this works great bar a few anomalies. I’m trying to filter the activity loop to just show the displayed users posts. I’ve written up the code as follows:if ( bp_has_activities( $activity_id . '&user_id='.$userToFilter.'&scope=just-me&action="activity_update"&max=3&page_arg="true"' ) )This gives me a loop of just 3 items (so some of it is being listened to!) but no pagination and no filtering on the displayed user (which is the value $userToFilter). I’ve echoed out the filter and it’s reading as: &user_id=1&scope=just-me&action=”activity_update”&max=3&page_arg=”true” which I think is right. Any guidance greatly appreciated, I tried the plugin for activity shortcode and got the same results weirdly.
I’m struggling with putting together Custom Notifications.
I’ve been trying to use this: https://gist.github.com/modemlooper/9693b591d8c36288496d
Without success.I’ve been able to add the text for my new notification to \bp-activity\bp-activity-notifications.php
Which is fine as a temporary solution but obviously isn’t update proof.I’m putting together a system where a user can give a category to their activity update and then users who are in that category (as set on their profile) will get a notification about that update.
The notification is generated like this in bp-custom.php:
function seo_activity_update_reply_add_notification( $activity, $activity_id, $user_id ) { global $wpdb; $post_cat = $_POST['bpcat']; $users = $wpdb->get_results ( "SELECT user_id FROM wp_bp_xprofile_data WHERE value='$post_cat'" ); $metasjson = json_decode( json_encode($users), true); $newList = array(); foreach($metasjson as $key=>$listItem) { $newList[$key] = $listItem['user_id']; $posts = ''; } foreach ($newList as $user) { bp_notifications_add_notification( array( 'user_id' => $user, 'item_id' => $user_id, 'secondary_item_id' => $activity_id, 'component_name' => buddypress()->activity->id, 'component_action' => 'industry_post', 'date_notified' => bp_core_current_time(), 'is_new' => 1, 'meta_key' => 'category', 'meta_value' => $post_cat ) ); } } add_action( 'bp_activity_posted_update', 'seo_activity_update_reply_add_notification', 10, 3 );Then in \bp-activity\bp-activity-notifications.php I’ve added this to the bp_activity_format_notifications function:
case 'industry_post': $action_filter = $action; $activity_id = $user_id; $title = sprintf( __( '@%s Industry Post', 'buddypress' ), bp_get_loggedin_user_username() ); $amount = 'single'; $seouser = bp_core_get_user_displayname($activity_id ); $seouserurl = bp_core_get_username($item_id ); // $link = home_url().'/members/'.$seouserurl.'/'. bp_get_activity_slug() . '/'.$user_id; $link = bp_activity_get_permalink( $item_id ) ; $text = sprintf( __( '%1$s is looking for someone in your industry', 'buddypress' ), $seouser ); break;But I can’t seem to figure out how to get this to work as a stand alone function in bp-custom.php
