Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 251 through 275 (of 22,713 total)
  • Author
    Search Results
  • #333984
    Venutius
    Moderator

    I can recommend this plugin. I get no spam signups and I’ve removed captcha. https://en-gb.wordpress.org/plugins/cleantalk-spam-protect/

    I’ve had it installed now for over a year, it’s blocked them all.

    #333973
    Mathieu Viet
    Moderator

    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.

    #333967

    In reply to: Users cannot register

    stephunique
    Participant

    Did you allow registration in your wordpress dashboard? In the Settings – General, have you checked the option that says “Anyone can register”?

    #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.

    #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

    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 !

    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.

    thinlizzie
    Participant

    Stephunique,

    You can usually access functions.php via the WordPress admin area.

    WP Admin -> Appearance -> Theme File Editor

    If you can not see it there, then contact your Theme provider for support.

    Again, I recommend you use the Code Snippets plugin. It will add almost no overhead to your sites speed.

    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

    Hi ThinLizzie,

    Oh I see, not a developer so didn’t know it is PHP code.

    Could you tell me which PHP file to add it to? I assume it has to be in the plugin folder (ie Buddypress) in the wordpress “wp-content” -> “plugins”-> “buddypress” folder in the back end files? But i don’t know which php file it should go in.

    I’ve tried adding it to the end of a “bp-loader.php” and a “class-buddypress.php” but neither seemed to work.

    Thank you

    #333903
    Venutius
    Moderator

    Presumably via your wordpress.com account. Presumably there’s a help section, with access to further support?

    #333902
    angelinajaade
    Participant

    WordPress on own servers?

    Ok so could you please point me to where I should take the issue, thanks.

    #333901
    Venutius
    Moderator

    Ah, I see. We don’t support the wordpress.com install, we have no way of knowing how they have configured things, as we all run our own servers, and are not directly part of the team that supports BP on WP.com

    #333900
    angelinajaade
    Participant

    I have the WordPress Creator Plan.

    In left side menu under ‘Users‘ there is ‘Member Types‘.

    Clicking on ‘Member Types’ opens this (screenshot) page and this is my setup with created Member Types: Screenshot .

    The plugins I have active are:
    – (BuddyDev) BP Auto Login on Activation
    – Activity Pub
    – Akismet
    – BP Auto Group Join
    – BP MPO Activity Filter
    – BP Profile as Homepage
    – BuddyPress
    – BuddyPress Username Changer
    – BuddyPress Xprofile Custom Field Types
    – Crowdsignal Forms
    – Crownsignal Polls & Ratings
    – Gutenberg
    – Imsanity
    – Jetpack
    – Jetpack Boost
    – Kirki Customizer Framework
    – Leira Letter Avatar
    – Link Page to Groups
    – Page Optimize
    – rtMedia for WordPress
    – WordPress.com Editing Toolkit
    – WP Headers And Footers WP User Login Notifier
    – Yoast SEO
    – Youzify

    I have disabled Youzify and BuddyPress Xprofile Custom Field Types to see if they made the Member Types possible to create but no.

    Thank you for your patience.

    #333890
    angelinajaade
    Participant

    Added through WordPress Users > Profile Fields…….

    I have more menu links created the same way which include all Member Types we have and are visible to all these Member Types (all members of community), as should, with no issues.

    This specific menu link that I have issues with uses specific User Roles, where not all User Roles available are included, just three User Roles selected – and it has this issue.

    Thank you for replying.

    stephunique
    Participant

    Hello,

    I am using WordPress 6.5.2 and BuddyPress 12.4

    I would like to know how I can remove the “username” field in the registration form.
    I see there has been A a lot of requests for this in the past but no solution. It makes so much more sense to just use the email address to log in rather than force-having a username of which your preferred one may be taken. An email address is unique already.

    Is there a way to PLEASE remove the Username field?

    Also I really do not like that the BuddyPress registration page has an “account” section with the username, email address and password and a separate “profile” section with the name in it. Unfortunately, after testing every single plugin on the market (I am only testing so not investing money on paid plugins right now), buddypress is the only one that has the features I need, even though it has major downfalls too. One of these downfalls is the annoying compulsory use of a “username” section in the registration form. In the back end, the default registration field cannot even be deleted.

    Is it possible to have a 100% custom registration form with BuddyPress? All I want is something like:

    Fist Name
    Last Name
    Email address
    Password
    Repeat Password

    And have a separate profile section once the user logs in using their registered email address.

    Thank you

    angelinajaade
    Participant

    A Profile Field Group goes back and forth being invisible to visible to members, moderators, admin, etc – regardless of User Role.

    WordPress version: Latest
    BuddyPress version: 12.4.0
    Link to site: http://www.bygrace.faith
    Link to screenshot of Member Types granted access: https://bygrace.faith/wp-content/uploads/2024/04/Skarmavbild-2024-04-28-kl.-13.57.41.png

    admins, moderators, christian-creators — are the only three Member Types set to have access.

    #333864
    Pooja Sahgal
    Participant

    You can check below, it will help:

    Wbcom Designs – BuddyPress Activity Filter

    #333842
    fatu.cn
    Participant

    first of all, the language of my WordPress + BuddyPress site is Zh_CN, I try to translate some error meaasge to English, but it maybe still different to the EN version.
    wordpress:6.5.2 Zh_CN
    Buddypress:12.4.0
    I enable the invitation function in buddypress options, but when I click the link “send invitation”, it direct to a missing page, the URL is https://<www.mysite.com>/%e6%88%90%e5%91%98/<my_username>/%E9%82%80%E8%AF%B7/send-invites/
    error message is “the page was not found”.
    how to solve it? Thank you!

    Steph
    Participant

    Ok, I am trying to set up a local community for goldfish enthusiasts. Yeah, sorry this is far out, but aren’t we all that, in some way or an other?

    Anyway, I have been looking at forums, where I had planned to create categories for people to share projects, updates, ask questions, promote their social media posts etc. O couædnt find any that quite intergrated as well into wordpress as buddypress, but I am struggling to see if it has the functionality that I need.

    As far as I can see, users can post updates (like a tweet update correct?) and they can (maybe?) write blog posts on the site? This will allow others to comment and run a discussion this way. This may be ok for most uses actually, especially if set up with categories.

    But how could I fun administrator and moderator discussions, or get suggestions started from the users?

    I really like how BuddyPress looks on the site, but I am aftraid that I may indeed need a forum (especially after finding one here!)

    #333809
    planetearthlings
    Participant

    Hi All, I’m using the Vikinger theme to create a social network experience for the Educational Virtual World we are creating. I have WordPress 6.5.2, BuddyPress 12.4.0 and the website is: https://www.zarbul.com.

    I have disabled the “Allow registered members to upload avatars” but “Change Avatar” is still available on the Profile Info page.

    What I really want is a way to make it so members can choose from a number of avatars we have created. One search suggests that is possible, but the “Allow registered members to upload avatars” has to be off.

    #333805

    In reply to: Buddypress invitations

    willhouse
    Participant

    Hi @inexcomputers

    Out of curiosity, did you ensure the sending domain was verified through SendGrid? I have found better success with email delivery once DKIM and/or MX records are put in place.

    My favorite plugin for setting up transaction emails through WordPress is WP Mail SMTP. They make it fairly straightforward and have good documentation.

    I hope this helps.
    -Richard @ Willhouse

    #333803

    In reply to: Member Blog issue

    angelinajaade
    Participant

    Some helpful details:

    Wordpress Version: 6.5.2
    BuddyPress Version: 12.4.0
    BuddyX Version: 4.6.7

Viewing 25 results - 251 through 275 (of 22,713 total)
Skip to toolbar