Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 751 through 775 (of 94,540 total)
  • Author
    Search Results
  • ownersmvha
    Participant

    Hi,

    Ive installed Buddypress and tried to create a post (as a member in Member Activity tab) but when I click on Post Update button, it just shows a red exclamation error icon with no message and the post content is not being submitted/accepted. I’ve set the Activity stream to members only.

    Buddypress version: 12.4.1

    crissy1130
    Participant

    Hello!
    I am new to Buddypress and have been trying to integrate buddypress into an existing site (that’s almost done)
    But I have been having so much trouble getting this to work properly or the way it’s supposed to..have not been able to find any of the issues in the Forum or on the community and at this point I AM GETTING VERY DISCOURAGED!!!
    There needs to be a way to speak one on one with support for when people have as much trouble as I seem to be – AND I have uninstalled, Cleared by browsing data and reinstalled the plugin a few times now… and still can’t get it to work the way it’s supposed to!
    I have gone to YouTube I have looked through the Forum here, I have gone to the Facebook Community – I have exhausted every way I could possibly get support and am still stuck in the same spot I have been for hours… Please help…anyone!

    #333997
    mariaat
    Participant

    Hello,

    I use Buddypress for an intranet. I want to create an useraccount with only the possibility to read.

    I tried some rolemamagement-plugins but that did not work.

    After hours of trying I will ask here if anyone knows if it’s possible. Or maybe have another solution to create a read-only memneraccount.

    Thanks in advance,
    sincerely, Marli

    greetings from Amsterdam, the Netherlands

    #333989
    Koka boka
    Participant

    Hi @imath
    Thanks for the help!
    Maybe you can suggest something with this. I want to add a counter of new posts from the activity feed to the custom menu.
    I put it in functions.php but didn’t get any results. With my meager knowledge, I did not succeed. I can’t figure out how to add a counter to my custom menu.
    P.S I’m not sure that the code itself is workable!

    Here on the forum I was offered the following code:

    <?php
    function bp_update_last_visit() {
    if (is_user_logged_in()) {
    update_user_meta(get_current_user_id(), 'last_visit', current_time('mysql'));
    }
    }
    add_action('wp_login', 'bp_update_last_visit'); 
    add_action('wp', 'bp_update_last_visit'); 
    ?>
    <?php
    function bp_get_new_activity_count() {
    $last_visited = get_user_meta(get_current_user_id(), 'last_visit', true);
    $args = array(
    'action' => 'new_post', // Adjust based on the actions you want to count
    'since' => $last_visited, // Filter activities since the last visit
    );
    
    // Query BuddyPress activity with arguments
    $activities = new BP_Activity_Query($args);
    return $activities->get_total();
    }
    ?>
            <?php
            function add_activity_notification_count() {
    $count = bp_get_new_activity_count();
    if ($count > 0) {
    echo '<span class="activity-notification-count">' . $count . '</span>';
    }
    }
    add_action('bp_menu', 'add_activity_notification_count');
      ?> 
    #333983
    soundmatters
    Participant

    Hey guys,

    I’m wondering if you can help.

    I installed BB-Press & BuddyPress a few weeks ago and quickly found the need to add a CAPTCHA to stop the spam sign ups.

    I installed it, and it slowed them down, but I’m still getting sign ups that are clearly fake.

    Attached is a screenshot of the settings and below is a link to the website forum.

    Are you able to see where they might be getting through?

    Sound Matters Forum

    https://www.dropbox.com/scl/fi/n2chgzvwbwigsx61p30sd/Screenshot-2024-05-08-at-14.56.25.png?rlkey=ak3b4eang7t240qekjaplos3t&dl=0

    Thanks,
    Marc

    #333982
    Anonymous User
    Inactive

    Hi @koka777

    You can add a buddypress.php template to your active theme directory, if this template is available it will be used instead of the page.php one.

    stephunique
    Participant

    Hi, you can disable the function of adding a cover image for the individual user profile. I don’t use groups so I don’t know if you can disable the cover image for groups.

    To disable the cover image for individuals, go to settings -> BuddyPress -> Options -> Then uncheck “Allow registered members to upload cover images”. Then the cover image will disappear completely in the profile front end.

    #333973
    Anonymous User
    Inactive

    Hi Hana (@arjani1)

    I just tested with latest WordPress (Twenty Nineteen theme) & only BuddyPress 12.4.1 as the active plugin and I can’t reproduce your issue, see screenshot below:

    User's account

    – There’s an avatar in the header
    – The menu to change avatar is available & behaves as expected.

    So to me it’s not relative to 12.4.1.

    #333968
    windhillruss
    Participant

    When a user receives an eMail Notification, the full content of the Message is included along with the link to Join the Discussion. More often than not the user replies to the email and therefore doesn’t need to login to the Discussion. Can this be adjusted so that the eMail only says ‘You have a new Message’ and then the link? Thanks. Buddypress 12.4.1 and Better Messages plugin.

    #333966
    stephunique
    Participant

    BuddyX is the free theme that was specifically developed for BuddyPress.

    To install this, log in to your WordPress dashboard, go to Appearance – Themes – Add new – use the search bar to look for “BuddyX”, then install, and activate.

    stephunique
    Participant

    Is there a way to hide the visibility of certain parts of a user’s profile in the front end according to user roles, so that only certain user roles can see those parts? For example, I have a directory of members and they can post things about themselves in the profile, including their contact details. Obviously I would prefer that their contact details are not visible publicly to just anyone in general – to see their contact details, I would like the user to sign up as a a specific user role, log in, and then be able to see them. For example, you have to have User Role A to see the phone number of everyone in the directory, people who have User Role B cannot see them, instead they might see the field with a message saying “register as a User A to see their phone number/email address[or whatever the field might be]”.

    I am using BuddyPress 12.4.1 (but am on the BuddyBoss platform right now if that makes a difference)

    #333956
    chbing5828
    Blocked

    Implementing favorites for custom post types using BuddyPress and REST API involves a few strategic steps. Here, I’ll outline a method to integrate this functionality effectively:

    ### Step 1: Ensure BuddyPress REST API Is Enabled

    Firstly, ensure that the REST API support is active in BuddyPress. BuddyPress provides REST endpoints for various components, but you may need to confirm that it’s set up to interact with your custom post types.

    ### Step 2: Register Custom Post Type for BuddyPress Activity Tracking

    You mentioned you’ve seen documentation related to registering custom post types for tracking activity. This is crucial as BuddyPress needs to be aware of these custom post types to interact with them effectively. You can do this by adding a function to your theme’s functions.php file or a site-specific plugin:

    `php
    function register_custom_post_type_activity_tracking() {
    bp_set_post_types( array(
    ‘drop’ => array(
    ‘track_activity’ => true
    )
    ) );
    }
    add_action( ‘bp_init’, ‘register_custom_post_type_activity_tracking’ );
    `
    This code snippet informs BuddyPress to track activities (like posts and updates) for the “drop” custom post type.

    ### Step 3: Create a REST Endpoint for Favorite Action

    You will need to create a custom REST API endpoint to handle the favorite action. This endpoint will be responsible for adding and removing favorites.

    `php
    add_action( ‘rest_api_init’, function () {
    register_rest_route( ‘buddypress/v1’, ‘/favorite/’, array(
    ‘methods’ => ‘POST’,
    ‘callback’ => ‘handle_favorite’,
    ‘permission_callback’ => function () {
    return is_user_logged_in(); // Ensure the user is logged in
    }
    ));
    });

    function handle_favorite( WP_REST_Request $request ) {
    $user_id = get_current_user_id();
    $post_id = $request[‘post_id’];
    $action = $request[‘action’]; // ‘add’ or ‘remove’

    if ($action === ‘add’) {
    // Logic to add a favorite
    bp_activity_add_user_favorite( $post_id, $user_id );
    } else if($action === ‘remove’) {
    // Logic to remove a favorite
    bp_activity_remove_user_favorite( $post_id, $user_id );
    }

    return new WP_REST_Response( array(‘success’ => true), 200 );
    }
    `

    ### Step 4: Interact with the REST API

    You can now interact with this API using JavaScript or any other client that can make HTTP requests. Here’s an example of how you might call this API using JavaScript Fetch API:

    `javascript
    function toggleFavorite(postId, action) {
    fetch(‘/wp-json/buddypress/v1/favorite/’, {
    method: ‘POST’,
    headers: {
    ‘Content-Type’: ‘application/json’,
    ‘Authorization’: ‘Bearer YOUR_ACCESS_TOKEN’ // You should implement authorization
    },
    body: JSON.stringify({ post_id: postId, action: action })
    })
    .then(response => response.json())
    .then(data => console.log(data))
    .catch(error => console.error(‘Error:’, error));
    }

    // Usage
    toggleFavorite(123, ‘add’); // Add a favorite
    toggleFavorite(123, ‘remove’); // Remove a favorite
    `

    ### Step 5: Test and Refine

    After implementing, conduct thorough testing to ensure that your favorites system works as expected. Check both the functionality and security aspects, especially focusing on permissions and data validation.

    By following these steps, you should be able to add a favorites feature to your custom post types leveraging BuddyPress and the WordPress REST API effectively. beach buggy racing cheats apk

    #333952
    egency
    Participant

    Hello,
    I try to make Buddypress a multi language page and I am using Polylang and Loco translate to do so.

    All Plugins have been translated but the Buddypress user pages are still in English. I don’t know what to do, to offer users the possibility to change the language or that buddyoress uses the chosen languages from the static pages.

    What do I have to do, that Buddypress uses the translated strings?

    You can check on https://jamxper.com

    Thanks for all help.

    Marc

    jgasba
    Participant

    Par curiosité: est-ce que cette réponse a été nourrie par ChatGPT?

    Ça y ressemble vraiment, d’autant qu’après plus d’investigations je viens de trouver que BuddyPress est en effet censé supprimer l’avatar, grâce à deux fonctions : bp_core_delete_avatar_on_user_delete et bp_core_delete_avatar_on_delete_user

    Mon problème vient d’un manque de retour erreurs de la part de BuddyPress : c’était un conflit avec un autre plugin qui avait override les emplacements où les avatars sont stockés. Je suis en train de travailler à une solution. Ce serait vraiment top si BuddyPress retournait une erreur dans le cas où la tentative de suppression de l’avatar était ratée. Ça permettrait de s’en rendre compte rapidement.

    shiylo
    Participant

    Salut ! Effectivement, BuddyPress ne supprime pas automatiquement les avatars des utilisateurs lorsque leurs comptes sont supprimés. Cependant, tu peux gérer ce problème en ajoutant un peu de code personnalisé à ton thème ou dans un plugin spécifique. Voici comment tu pourrais procéder pour supprimer les avatars lors de la suppression des comptes d’utilisateurs :

    1- Crée un hook dans ton fichier functions.php ou dans un plugin spécifique :
    Utilise l’action bp_remove_user ou wpmu_delete_user, delete_user selon la configuration de ton réseau si tu es en multisite ou pas.
    2- Ajoute le code suivant pour supprimer l’avatar lorsqu’un utilisateur est supprimé :

    function remove_user_avatar_on_delete($user_id) {
        // Vérifie si l'utilisateur a un avatar
        $avatar_path = bp_core_fetch_avatar(array(
            'item_id' => $user_id,
            'html'    => false,
            'type'    => 'full',
            'no_grav' => true
        ));
    
        if ($avatar_path) {
            // Supprime le fichier avatar
            @unlink($avatar_path);
        }
    }
    
    // Hook pour la suppression de l'utilisateur
    add_action('delete_user', 'remove_user_avatar_on_delete');
    add_action('wpmu_delete_user', 'remove_user_avatar_on_delete');
    add_action('bp_remove_user', 'remove_user_avatar_on_delete');
    

    Note : Ce code utilise @unlink pour supprimer le fichier, qui supprime silencieusement le fichier sans afficher d’erreur si le fichier n’existe pas ou ne peut être supprimé. Assure-toi que le chemin de l’avatar est correctement récupéré.

    3- Teste le code : Avant de mettre ce code en production, teste-le dans un environnement de développement pour t’assurer qu’il fonctionne comme attendu sans effets secondaires.
    Cela devrait aider à gérer le problème des fichiers d’avatar résiduels. Si tu as besoin de plus d’informations sur la fonction ou sur d’autres façons de gérer les fichiers avec WordPress et BuddyPress, n’hésite pas à demander !

    #333949
    shiylo
    Participant

    Salut ! Tu peux créer un nouveau plugin pour ajouter des champs personnalisés à BuddyPress sans toucher au plugin original. Voici les étapes :

    1- Crée un dossier pour ton plugin : dans wp-content/plugins.
    2- Crée un fichier PHP pour ton plugin : par exemple mon-plugin-buddypress.php. Mets-y l’en-tête standard de WordPress pour les plugins.
    3- Utilise les hooks de BuddyPress : pour ajouter tes champs personnalisés. BuddyPress a des actions et des filtres que tu peux utiliser pour ajouter tes champs sans modifier le cœur du plugin.
    4- Active ton plugin : dans l’admin WordPress.

    Ainsi, ton code est séparé de BuddyPress et ne sera pas écrasé lors d’une mise à jour. Si tu as besoin de détails sur comment coder cela, dis-moi !

    jgasba
    Participant

    I have a website running BuddyPress with 50000 users and we are hit by a lot of spam user creations. We managed to mitigate it but it ends up bloating the uploads folders with thousands of avatar images that end up staying there when deleting user accounts. Is there a hook or function dedicated to handling avatars that is not working on my hand when deleting a user or is this normal?

    I saw that this topic asked the same question a looooong time ago but no answers and can’t find anything in documentation about that.

    How to discard unused uploaded avatar images in wp-content/uploads/avatars

    JSanke
    Participant

    If you switch to BuddyPress Legacy in the settings, this problem resolves. But I cannot post public or group messages, only private messages. Can’t add anything to the group feed.

    #333939
    goodguy1970
    Participant

    I like to hire to add some Buddypress plugins features to my website is anyone.
    I have a website almost ready so it’s not online it’s under construction and if you like we can do a zoom call and I can share my screen on the features I need for my website

    michaeldenmark
    Participant

    I have inserted this code in bp-custom.php:

    <?php
    function my_redirect() {
    wp_redirect( home_url() );
    error_log(‘Hello log’);
    exit;
    }
    add_action( ‘bp_groups_posted_update’, ‘my_redirect’ );
    ?>

    Writing is done to the log file, but there is no redirect after a user has posted an update in “Group Activities”. Why not?

    As a test, if I use “wp_redirect( ‘https://buddypress.org/&#8217; );” instead of “wp_redirect( home_url() );” and use the action hook “init” instead of “bp_groups_posted_update”, and press F5, I am redirected to https://buddypress.org/.

    I use the latest version of WordPress and BuddyPress.

    BuddyPress is the only plugin activated.

    WordPress is installed in a subdomain.

    My issue still happens with themes Twenty Twenty-One, Twenty Twenty-Two, Twenty Twenty-Three and Twenty Twenty-Four.

    smelendez
    Participant

    Hello! Is there a way to make segmented communications based on filters related to BuddyPress profile fields? For example, I would like to first filter users who have a certain country in their profile field. Once those users are filtered, I would like to communicate exclusively with them via email without needing to export them to a CSV file or similar.

    Thank you very much, regards.

    #333934
    epgb101
    Participant

    OK UPDATE: the issue was ‘Grimlock for Buddypress’ plugin which Theomosarus have just updated. It’s fixed the profile /members/ display page – but not the /groups/ page. Perhaps they are aware of that and working on it. Here was their note on their update;

    1.5.3 – 2024-05-02
    Fix members list display with BuddyPress 12.4.1+

    If anyone can contact them regarding the same issue exists with /groups/ that would be great as I can’t reach them.

    stephunique
    Participant

    –SOLVED–

    Update: I have discovered a work-around and would like to post it here in case it is useful to anyone else.

    I installed both BuddyPress for its membership functions (eg profiles, directory) and also “User Registration” plugin (https://wordpress.org/plugins/user-registration/) for the registration form. User Registration plugin allows you to have more than one user registration forms and you can set what role you want each registration form to automatically assign to the user that signs up with that form. For example, you can create a form for teachers, and a separate form for students, and have the forms assign the respective roles to registrants of the form. Of course you need to create the roles first: t do this, use some sort of plugin that lets you manage user roles. I used “Members” (https://wordpress.org/plugins/members/). You can then create restrictions using this plugin and control the pages that each user role can and cannot have access to.

    stephunique
    Participant

    Update clarification:
    Apparently member types is front end and visitors to the site sees something like “User1 is an student” and “User2 is a teacher” where student and teachers are the member types, but user roles is back end and can be used to create conditions in wordpress.

    What I’d like is something that allows people to register as different roles/types that can then allow them to be automatically (as opposed to the site admin having to manually assign each user after they sign up) restricted or redirected to different pages. For example, people who want to register as students use Form1 which automatically registers them as role/type “student”, and people who want to register as teachers use Form2 which automatically registers them as role/type “teachers”. Then all teachers get access to quizzes and quiz answers page, but students only get access to quizzes page.

    I am only testing so I would like a free alternative, I don’t mind using several plugins to work together. I saw an old post on Stackexchange recommending a plugin called “Buddypress User Account Type” but this plugin is not available anymore.

    Is there anyone who knows of an alternative?

    stephunique
    Participant

    I would like to create multiple registration forms for different membership types, just like the people I saw in this post:

    Multiple Registration Forms?

    I saw that Webizone and Minijuji1 had a solution. But, I am not a technical person and was already stumped in step 1 when Webizone said to “Copy the the contents of the bp-templates/bp-legacy/buddypress/members/register.php into the new registration page template”

    I am not sure what the “registration page template” is. Surely it is not a new page within the wordpress dashboard? Where do I find or how do I create this new “registration page template”?

    I also do not understand hooks at all. Is there an easier explanation or solution for non-web developers?

Viewing 25 results - 751 through 775 (of 94,540 total)
Skip to toolbar