Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 926 through 950 (of 3,865 total)
  • Author
    Search Results
  • #260564
    Md Sadiqur Rahman
    Participant

    I tried the trick but comes with some critical problems. https://buddypress.org/support/topic/subject-field-in-private-messages/

    This problem’s been discussed for more than 4 years. (https://buddypress.org/support/topic/cant-send-a-message-without-a-subject/)

    I thought it might have been solved. Anyway, thank you so much for your kind reply. Have a nice day 🙂

    #260544

    In reply to: menu link member list

    reivilob
    Participant

    I absolutely agree with you but it make sense to allow access to the member list only for login users and to be able to easily place it in a menu, at the position you want and this is not possible now …

    If you select it from the page list, you can not specify if user must be login to have it in a menu (genera menu or personal)

    It is not available in the buddypress login section. Here are only user related informations, but no resources reserved for buddypress login users, like private pages or others private features …

    I think the only way to process is to create (php) a menu menu for the login user, and create a menu that concatenate the basic menu with this one and display the result…

    OB

    jenfilgate
    Participant

    1. Which version of WordPress are you running? 4.6.1

    2. Did you install WordPress as a directory or subdomain install? directory

    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? yes 4.6.0

    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? 2.7.0

    7. Did you upgraded from a previous version of BP? If so, from which version? 2.6.2

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?

    – AsynCRONous bbPress Subscriptions
    – BackWPup
    – BAW Login/Logout menu
    – bbP private groups
    – bbPress
    – bbPress auto subscribe for new topics and replies
    – BP Direct Menus
    – BuddyPress
    – BuddyPress for LearnDash
    – BuddyPress NoCaptcha Register Box
    – Cloudflare
    – CodeStyling Localization
    – Contact Form 7
    – Content Aware Sidebars
    – Custom Post Type Page Template
    – Draw Attention
    – Gallery Carousel Without JetPack
    – Google XML Sitemaps
    – LearnDash & BBPress Integration
    – LearnDash – Gradebook
    – LearnDash Content Cloner
    – LearnDash LMS
    – LearnDash Pro Panel
    – LearnDash WooCommerce Integration
    – Livemesh SiteOrigin Widgets
    – MailChimp for WordPress
    – Members page only for logged in users
    – Page Builder by SiteOrigin
    – Post Types Order
    – Postman SMTP
    – Prevent Content Theft Lite
    – Revolution Slider
    – Simple User Profile
    – SiteOrigin Widgets Bundle
    – Slideshow
    – Slim Stat Analytics
    – The Events Calendar
    – Theme My Login
    – Ultimate Posts Widget
    – User Login Log
    – W3 Total Cache
    – Widget Importer & Exporter
    – WooCommerce
    – WooCommerce MailChimp
    – WordPress Importer
    – WP Better Emails
    – WP Smush

    9. Are you using the standard WordPress theme or customized theme? customized

    10. Which theme do you use ? Invent

    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? 2.5.10

    14. Please provide a list of any errors in your server’s log files. none

    15. Which company provides your hosting? InMotion Hosting

    16. Is your server running Windows, or if Linux; Apache, nginx or something else? Apache

    I did the tests you recommended and it was my W3 Total Cache plugin that was causing the issue. I will have to look into that to figure out what setting was messing it up. @Scaffies doesn’t have that plugin, so guess our issues were caused by different things.

    Jason
    Participant

    One major flaw I saw recently is, the lack of ability to view Members Directory for ALL members regardless of who has logged in or not. Default only shows ACTIVE members (who have already signed in). Ideally, Admins would be able to change this setting.

    Our scenario. Home Owners Association (HOA). Every one of our 140+ members in our condo complex are required, not voluntary. Everyone pays a fee every month. Some of our information is, understandably, kept private; however, we ALL need to know who our neighbors and HOA members are. County tax rolls show public data about who the owner is. Likewise, our HOA wants neighbors to know who all residents are on our private website. We have a database showing that. Buddypress will allow me to import CSV database of all users. Check. Bbpress Forums will allow users to participate in discussions with each other. Check. Members canNOT view entire resident directory because Buddypress does not allow it. We want this private information available to ALL of our imported members, but it is not. I have tried some hacks, but they do not suit my needs. For instance, I can show all members alphabetically by default, but the Search function does NOT work for non-active members. And, the member count (at the top) still shows a number for Active members only. Not at all intuitive.

    Is there another plugin that would serve our needs better if we wanted to:
    1) show all members by default
    2) allow searching all members by default
    3) show total number of all members by default (not just those who logged in)

    Thanks for your response!

    ico33
    Participant

    Nothing to do!

    Error:

    Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/mondolap/public_html/wp-content/plugins/bp-custom.php on line 3

    This is the bp-custom code:

    <? php

    function buddydev_hide_members_directory_from_all_except_admin() {

    if ( bp_is_members_directory() && ! is_super_admin() ) {
    //should we add a message too?
    //bp_core_add_message( ‘Private page.’, ‘error’ );
    bp_core_redirect( site_url(‘/’) );
    }
    }
    add_action( ‘bp_template_redirect’, ‘buddydev_hide_members_directory_from_all_except_admin’ );

    danbp
    Participant

    The function is working correctly on my install.

    Perhaps you have an issue with quotes, ie after copy/pasting the snippet from a topic where the code whas inserted without using the code button.
    Which software do you use to publish bp-custom ?

    Copy/paste following and give a try:

    function buddydev_hide_members_directory_from_all_except_admin() {
    
    if ( bp_is_members_directory() && ! is_super_admin() ) {
    //should we add a message too?
    //bp_core_add_message( 'Private page.', 'error' );
    bp_core_redirect( site_url('/') );
    }
    }
    add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_from_all_except_admin' );
    ico33
    Participant

    Thanks! I did it with your suggest, so the file is

    
    <? php
    function buddydev_hide_members_directory_from_all_except_admin() {
    
        if ( bp_is_members_directory() && ! is_super_admin() ) {
            //should we add a message too?
            //bp_core_add_message( 'Private page.', 'error' );
            bp_core_redirect( site_url('/') );
        }
    }
    add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_from_all_except_admin' );


    But every page of the website is now again a blank page with this error:

    Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/mondolap/public_html/wp-content/plugins/bp-custom.php on line 2

    ico33
    Participant

    @sbrajesh

    Hello and thanks for the support, I tried the solution suggested, but after I created and then uploaded the file bp-custom in the plugins folder I got an error in every page of the website:

    Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in /home/mondolap/public_html/wp-content/plugins/bp-custom.php on line 2

    This is my file bp-custom:

    <? php
    function buddydev_hide_members_directory_from_all_except_admin() {
    
        if ( bp_is_members_directory() && ! is_super_admin() ) {
            //should we add a message too?
            //bp_core_add_message( 'Private page.', 'error' );
            bp_core_redirect( site_url('/') );
        }
    }
    add_action( 'bp_template_redirect', 'buddydev_hide_members_directory_from_all_except_admin' );
    ?>
    #260350
    inzerat
    Participant

    Chats in the bottom right corner, allowing quick chat between two friends. On page private messages should always indicating such a conversation with the subject “Chat”.

    #260335
    livingflame
    Participant

    https://la.wordpress.org/plugins/buddypress-private-message-for-friends-only/

    Okey, very very partial solution.

    Really solution: BuddyDev Message Privacy BUT native!

    #260316
    rcx
    Participant

    My company is trying BuddyPress for the first time, and I am charged with getting the site up and running, working with our developer. He designed it on a local MAMP stack with this configuration:
    MYSQL v5.6.28
    PHP v7.0.10
    (don’t know the BuddyPress version)
    The problem is where I need to put this up (Hostgator) only has MySQL 5.5, unless we get a virtual private server (which I’m negotiating now).
    My question is: is MySQL 5.6 required for BuddyPress? Or could I switch this version in the MAMP stack to overcome this obstacle?
    –Rick

    #260067
    livingflame
    Participant

    Links Public. Please do not delete!

    Bp links Menu with notify.
    https://goo.gl/photos/X8wMQzUUAfVLD34o8

    Search Activities by Date –> https://goo.gl/photos/pG9KHUMdybAetBNF9

    Message or Notifications Template. https://goo.gl/photos/ngAmNCHyRCWyd9fLA

    Buddypress.org has some template like this for Notifications.

    Feature #17. Private Messages for Friends Only but, Optional from User Menu.
    With rtMedia plugin you can put your Posts or Photos: Only Me, Only Logged Users, Only Friends, Public. But, rtMedia does not work for Messages.

    #260016
    ggagnerivard
    Participant

    Hello.
    I created two customs register-form.php that show different field groups. I want to change to user role to s2member_level1 after the activation if they used the second register-form. I have tried some other example on this site with no luck.

    here is the php of the register-form :<form action=”<?php echo bp_get_signup_page();?>” name=”signup_form” id=”signup_form” class=”standard-form” method=”post” enctype=”multipart/form-data”>

    <?php if ( ‘registration-disabled’ == bp_get_current_signup_step() ) : ?>
    <?php do_action( ‘template_notices’ ); ?>
    <?php do_action( ‘bp_before_registration_disabled’ ); ?>

    <p><?php _e( ‘User registration is currently not allowed.’, ‘buddypress’ ); ?></p>

    <?php do_action( ‘bp_after_registration_disabled’ ); ?>
    <?php endif; // registration-disabled signup step ?>

    <?php if ( ‘request-details’ == bp_get_current_signup_step() ) : ?>

    <?php do_action( ‘template_notices’ ); ?>

    <p><?php _e( ‘Registering for this site is easy. Just fill in the fields below, and we\’ll get a new account set up for you in no time.’, ‘buddypress’ ); ?></p>

    <?php do_action( ‘bp_before_account_details_fields’ ); ?>

    <div class=”register-section” id=”basic-details-section”>

    <?php /***** Basic Account Details ******/ ?>

    <h4><?php _e( ‘Account Details’, ‘buddypress’ ); ?></h4>

    <div class=”newline”><label for=”signup_username”><?php _e( ‘Username’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_username_errors’ ); ?>
    <input type=”text” name=”signup_username” id=”signup_username” value=”<?php bp_signup_username_value(); ?>” <?php bp_form_field_attributes( ‘username’ ); ?>/>
    </div>

    <div class=”newline”><label for=”signup_email”><?php _e( “Adresse courriel (votre nom d’usager) :”, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_email_errors’ ); ?>
    <input type=”email” name=”signup_email” id=”signup_email” value=”<?php bp_signup_email_value(); ?>” <?php bp_form_field_attributes( ’email’ ); ?>/>
    </div>

    <div class=”newline”><label for=”signup_password”><?php _e( ‘Créez un mot de passe (6 à 8 caractères) :’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_password_errors’ ); ?>
    <input type=”password” name=”signup_password” id=”signup_password” value=”” class=”password-entry” <?php bp_form_field_attributes( ‘password’ ); ?>/>
    <div id=”pass-strength-result”></div>
    </div>

    <div class=”newline”><label for=”signup_password_confirm”><?php _e( ‘Confirmation du mot de passe :’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_password_confirm_errors’ ); ?>
    <input type=”password” name=”signup_password_confirm” id=”signup_password_confirm” value=”” class=”password-entry-confirm” <?php bp_form_field_attributes( ‘password’ ); ?>/>
    </div>

    <input type=”hidden” name=”user_type” id=”user_type” value=”your_role” />

    <?php do_action( ‘bp_account_details_fields’ ); ?>

    </div><!– #basic-details-section –>

    <?php do_action( ‘bp_after_account_details_fields’ ); ?>

    <?php /***** Extra Profile Details ******/ ?>

    <?php if ( bp_is_active( ‘xprofile’ ) ) : ?>

    <?php do_action( ‘bp_before_signup_profile_fields’ ); ?>

    <div class=”register-section” id=”permanent-details-section”>

    <?php /* Use the profile field loop to render input fields for the ‘base’ profile field group */ ?>
    <?php if ( function_exists( ‘bp_has_profile’ ) ) : if ( bp_has_profile( ‘profile_group_id=1’ ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <?php if ( ‘textbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”></span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <input type=”text” name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>” value=”<?php bp_the_profile_field_edit_value() ?>” />
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘textarea’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <textarea rows=”5″ cols=”40″ name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_edit_value() ?></textarea>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘selectbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”>
    <?php bp_the_profile_field_options() ?>
    </select>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘multiselectbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>” multiple=”multiple”>
    <?php bp_the_profile_field_options() ?>
    </select>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘radio’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-line”><div class=”editfield”>
    <div class=”radio”>
    <span id=”styled<?php bp_the_profile_field_input_name() ?>”><span class=”label”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></span></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <?php bp_the_profile_field_options() ?>
    <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    <span class=”clear-link”>‘ );”><?php _e( ‘Clear’, ‘buddypress’ ) ?></span>
    <?php endif; ?>
    </div>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘checkbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-line”><div class=”editfield”>
    <div class=”checkbox”>
    <span id=”styled<?php bp_the_profile_field_input_name() ?>”><span class=”label”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></span></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <?php bp_the_profile_field_options() ?>
    </div>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘datebox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <!–<div class=”datebox”>–>
    <label for=”<?php bp_the_profile_field_input_name() ?>_day”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>_day” id=”<?php bp_the_profile_field_input_name() ?>_day”>
    <?php bp_the_profile_field_options( ‘type=day’ ) ?>
    </select>
    <select name=”<?php bp_the_profile_field_input_name() ?>_month” id=”<?php bp_the_profile_field_input_name() ?>_month”>
    <?php bp_the_profile_field_options( ‘type=month’ ) ?>
    </select>
    <select name=”<?php bp_the_profile_field_input_name() ?>_year” id=”<?php bp_the_profile_field_input_name() ?>_year”>
    <?php bp_the_profile_field_options( ‘type=year’ ) ?>
    </select>
    <!–</div>–>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php endwhile; ?>

    <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
    <?php endwhile; endif; endif; ?>
    <input type=”hidden” name=”signup_profile_field_ids” id=”signup_profile_field_ids” value=”<?php echo implode(“,”,$fields_ids);?>” />
    <input type=”hidden” name=”user_type” id=”user_type” value=”your_role” />
    </div>

    <div class=”register-section” id=”candidats-details-section”>

    <?php /* Use the profile field loop to render input fields for the ‘base’ profile field group */ ?>
    <?php if ( function_exists( ‘bp_has_profile’ ) ) : if ( bp_has_profile( ‘profile_group_id=2’ ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>

    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <?php if ( ‘textbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”></span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <input type=”text” name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>” value=”<?php bp_the_profile_field_edit_value() ?>” />
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘textarea’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <textarea rows=”5″ cols=”40″ name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_edit_value() ?></textarea>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘selectbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>”>
    <?php bp_the_profile_field_options() ?>
    </select>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘multiselectbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”>
    <label for=”<?php bp_the_profile_field_input_name() ?>”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>” id=”<?php bp_the_profile_field_input_name() ?>” multiple=”multiple”>
    <?php bp_the_profile_field_options() ?>
    </select>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘radio’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-line”><div class=”editfield”>
    <div class=”radio”>
    <span id=”styled<?php bp_the_profile_field_input_name() ?>”><span class=”label”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></span></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <?php bp_the_profile_field_options() ?>
    <?php if ( !bp_get_the_profile_field_is_required() ) : ?>
    <span class=”clear-link”>‘ );”><?php _e( ‘Clear’, ‘buddypress’ ) ?></span>
    <?php endif; ?>
    </div>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘checkbox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-line”><div class=”editfield”>
    <div class=”checkbox”>
    <span id=”styled<?php bp_the_profile_field_input_name() ?>”><span class=”label”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></span></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <?php bp_the_profile_field_options() ?>
    </div>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php if ( ‘datebox’ == bp_get_the_profile_field_type() ) : ?>
    <div class=”profile-table”><div class=”editfield”><span id=”styled<?php bp_the_profile_field_input_name() ?>”>
    <!–<div class=”datebox”>–>
    <label for=”<?php bp_the_profile_field_input_name() ?>_day”><?php bp_the_profile_field_name() ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘<span title=”Required” class=”required”>*</span>’, ‘buddypress’ ) ?><?php endif; ?></label></span>
    <?php do_action( ‘bp_’ . bp_get_the_profile_field_input_name() . ‘_errors’ ) ?>
    <select name=”<?php bp_the_profile_field_input_name() ?>_day” id=”<?php bp_the_profile_field_input_name() ?>_day”>
    <?php bp_the_profile_field_options( ‘type=day’ ) ?>
    </select>
    <select name=”<?php bp_the_profile_field_input_name() ?>_month” id=”<?php bp_the_profile_field_input_name() ?>_month”>
    <?php bp_the_profile_field_options( ‘type=month’ ) ?>
    </select>
    <select name=”<?php bp_the_profile_field_input_name() ?>_year” id=”<?php bp_the_profile_field_input_name() ?>_year”>
    <?php bp_the_profile_field_options( ‘type=year’ ) ?>
    </select>
    <!–</div>–>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ) ?>
    <div class=”editfield-description”><?php bp_the_profile_field_description() ?></div>
    </div></div>
    <?php endif; ?>
    <?php endwhile; ?>

    <?php $fields_ids[]= bp_get_the_profile_group_field_ids();?>
    <?php endwhile; endif; endif; ?>
    <input type=”hidden” name=”signup_profile_field_ids” id=”signup_profile_field_ids” value=”<?php echo implode(“,”,$fields_ids);?>” />
    </div>

    <?php do_action( ‘bp_after_signup_profile_fields’ ); ?>

    <?php endif; ?>

    <?php if ( bp_get_blog_signup_allowed() ) : ?>

    <?php do_action( ‘bp_before_blog_details_fields’ ); ?>

    <?php /***** Blog Creation Details ******/ ?>

    <div class=”register-section” id=”blog-details-section”>

    <h4><?php _e( ‘Blog Details’, ‘buddypress’ ); ?></h4>

    <p><input type=”checkbox” name=”signup_with_blog” id=”signup_with_blog” value=”1″<?php if ( (int) bp_get_signup_with_blog_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘Yes, I\’d like to create a new site’, ‘buddypress’ ); ?></p>

    <div id=”blog-details”<?php if ( (int) bp_get_signup_with_blog_value() ) : ?>class=”show”<?php endif; ?>>

    <label for=”signup_blog_url”><?php _e( ‘Blog URL’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_blog_url_errors’ ); ?>

    <?php if ( is_subdomain_install() ) : ?>
    http:// <input type=”text” name=”signup_blog_url” id=”signup_blog_url” value=”<?php bp_signup_blog_url_value(); ?>” /> .<?php bp_signup_subdomain_base(); ?>
    <?php else : ?>
    <?php echo home_url( ‘/’ ); ?> <input type=”text” name=”signup_blog_url” id=”signup_blog_url” value=”<?php bp_signup_blog_url_value(); ?>” />
    <?php endif; ?>

    <label for=”signup_blog_title”><?php _e( ‘Site Title’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_blog_title_errors’ ); ?>
    <input type=”text” name=”signup_blog_title” id=”signup_blog_title” value=”<?php bp_signup_blog_title_value(); ?>” />

    <span class=”label”><?php _e( ‘I would like my site to appear in search engines, and in public listings around this network.’, ‘buddypress’ ); ?></span>
    <?php do_action( ‘bp_signup_blog_privacy_errors’ ); ?>

    <label><input type=”radio” name=”signup_blog_privacy” id=”signup_blog_privacy_public” value=”public”<?php if ( ‘public’ == bp_get_signup_blog_privacy_value() || !bp_get_signup_blog_privacy_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘Yes’, ‘buddypress’ ); ?></label>
    <label><input type=”radio” name=”signup_blog_privacy” id=”signup_blog_privacy_private” value=”private”<?php if ( ‘private’ == bp_get_signup_blog_privacy_value() ) : ?> checked=”checked”<?php endif; ?> /> <?php _e( ‘No’, ‘buddypress’ ); ?></label>

    <?php do_action( ‘bp_blog_details_fields’ ); ?>

    </div>

    </div><!– #blog-details-section –>

    <?php do_action( ‘bp_after_blog_details_fields’ ); ?>

    <?php endif; ?>

    <?php do_action( ‘bp_before_registration_submit_buttons’ ); ?>

    <div class=”submit”>
    <input type=”submit” name=”signup_submit” id=”signup_submit” value=”<?php esc_attr_e( ‘Sauvegarder mes infos’, ‘buddypress’ ); ?>” />
    </div>

    <?php do_action( ‘bp_after_registration_submit_buttons’ ); ?>

    <?php wp_nonce_field( ‘bp_new_signup’ ); ?>

    <?php endif; // request-details signup step ?>

    <?php if ( ‘completed-confirmation’ == bp_get_current_signup_step() ) : ?>

    <?php do_action( ‘template_notices’ ); ?>
    <?php do_action( ‘bp_before_registration_confirmed’ ); ?>

    <?php if ( bp_registration_needs_activation() ) : ?>
    <p><?php _e( ‘You have successfully created your account! To begin using this site you will need to activate your account via the email we have just sent to your address.’, ‘buddypress’ ); ?></p>
    <?php else : ?>
    <p><?php _e( ‘You have successfully created your account! Please log in using the username and password you have just created.’, ‘buddypress’ ); ?></p>
    <?php endif; ?>

    <?php do_action( ‘bp_after_registration_confirmed’ ); ?>

    <?php endif; // completed-confirmation signup step ?>

    <?php do_action( ‘bp_custom_signup_steps’ ); ?>

    </form>

    Any ideas? Also I don’t want to use another pluggins and I don’t want to give the user the option of choosing his user role. Thank you in advance.

    #259994

    In reply to: Login page

    Venutius
    Moderator

    https://wordpress.org/plugins/bp-simple-private/

    This makes it so the only page you can view is the homepage, then make sure all you can see on the homepage is the login button? Either that or modify the above plugin so that it redirects to the login page.

    #259937
    Antipole
    Participant

    On my site I have a members directory tab. Users can enter a search term in the Search Members… field to find those members with the search term.

    However, I am seeing occasional false positives, i.e. a member is being returned who does not have the search term. For example, if you search on south, the last user listed Paul does not have south anywhere in his profile.

    I have tried switching to a standard theme Twenty Sixteen – no different. I have removed all plugins except BuddyPress and still the same. I have combed the errant profile using the backend and cannot find the string anywhere.

    NB1 Some of the extended profile fields on this site are not publicly visible. I know that the search finds profiles regardless of permissions but it then displays the profile without the private information. But, in the instances I am seeing, the found term does not exist at all – at least I cannot find it as admin looking in the user’s profile in the backend.

    Any suggestions, anyone?

    NB2. My test site has several plugins that might cause this issue, but I have demonstrated it to be present with only BuddyPress active.

    WordPress 4.6.1; BuddyPress 2.6.2; bbPress 2.5.10

    #259824
    bcanr2d2
    Participant

    My install has stopped sending any emails out for new user activation.
    I can receive emails sent by WordPress after a user is manually activated, and can receive any email from Postman SMTP, as these test emails work.

    I don’t use any other activity markers, but emails were not received when messages were sent either.

    I have tried all of the listed troubleshooting steps that others have gone through before.

    I have a custom function that creates a post for the user during the registration process. I have removed all custom functions and tried registering a user, and it still will not send any emails.

    As BuddyPress uses it’s own PHP Mailer, I am not able to log them via any WP Mail logging tools, and want to see what might be going on here.
    The problem reared its head around the time I upgraded to 2.6 (although the custom function during registration was also added at this time) as well

    I have reset the emails multiple times, and I have not made any changes to them.

    Could someone please provide assistance, or given me a suggestion on how to run the BP Email Debug code to get an email of any issues

    Host is Bluehost

    Here is my install, and plugin list

    WordPress 4.5.4
    BuddyPress 2.6.2
    Advanced Custom Fields 4.4.10
    Akismet 3.1.11 (inactive)
    BackWPuP 3.3.4
    BP Force Profile Photo 1.0.5
    BP Member Type Manager 1.0.1 (inactive)
    BP xProfile Location 1.2
    BP XProfile WordPress User Sync 0.6.4
    Broken Link Checker 1.11.2
    Buddy Progress Bar 1.0.2
    BuddyPress Conditional Field Groups 0.1.0
    Buddypress Conditional Profile Field 2.0
    Buddypress Geodirectory Integration 1.0.0 (inactive)
    BuddyPress Member Type Generator 1.0.2
    BuddyPress Profile Tabs 1.6.1
    BuddyPress Security Check 2.1.2
    BuddyPress Simple Terms And Conditions 1.3
    BuddyPress Xprofile Custom Fields Type 2.5
    BuddyPress Xprofile Member Type Field 1.0.4
    Cherry Parallax Plugin 1.0.0 (for my theme)
    Cherry Plugin 1.2.8.1 (for my theme)
    Conditional Profile Fields for BuddyPress 1.1.9
    Contact Form 7 4.5
    Contact Form 7 – Dynamic Text Extension 2.0.1
    Custom Hooks 1.0 (All my custom functions are in this plugin)
    Custom Login 3.2.5
    Custom Post Template By Templatic 1.0
    Custom Post Type UI 1.4.1
    Disable Comments 1.5.2
    Display Posts Shortcode 2.7.0
    Easy Parallax Slider 2.1.1
    FacetWP 2.6.4
    GEO my WP 2.6.6.1
    GeoDirectory 1.6.5 (inactive)
    Hello Dolly .1.6 (inactive)
    MOJO Marketplace 1.0.1 (inactive)
    MotoPress Content Editor Lite 1.6.5 (inactive)
    Quick and Easy FAQs 1.0.3
    SuitePlugins – Advanced XProfile Fields for BuddyPress 1.0.3
    Super Socializer 7.8.1
    WP Private Content Plus 1.11
    WPFront User Role Editor 2.12.4
    Yoast SEO 3.5

    danbp
    Participant

    This topic is titled “Function to hide private message depending of user role”.

    and the snippet does that ! Subscribers have no access to the button. So far i remember it is also the default role in WordPress. You change that to your need.

    The first condition in the snippet allows some users (by ID) to access the button, whatever their role.

    If you want to add other WP roles, you simply copy the 2nd conditionnal if(role=='') and add another role if(role=='mamamouchi") { //do something }.

    Or you use only the user ID if you have only a few members allowed to access. I litle understanding of php is of course a + to do that.
    You have the basics in the snippet. Now, it’s to you now to make it work for your need.

    Raphael.v
    Participant

    Thank you @danbp, this work ! I’m pretty sure this will help a lot (and not only me).

    I’am asking something more : can this be adapt to allow only some user role to use private message ? (and not only some users ?) As the second part of the code you wrote, it remove the button to susbscriber.

    (I’m learning PHP, I’ve tried to change the code but did not succeed to have it work…)

    danbp
    Participant

    Hi,

    try this (goes to bp-custom.php)

    function bpex_remove_private_message_button( $button ) {
    $user = bp_loggedin_user_id();
    
        if ( $user == '4' || $user == '7' || $user == '25'  ) { // the allowed user ID's
    	 return $button;
    	}
    
    	if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
    
    		if ( $role == 'subscriber') {
    			$button = '';
    		}
    	}
    }
    add_filter( 'bp_get_send_message_button', 'bpex_remove_private_message_button', 1 , 1 );

    No idea how to get specifically a pmpro defined user ID – you have to check their doc to adjust the above snippet. Note that it works on a standart install – without pmpro.

    #259414
    danbp
    Participant

    Hi @koded1999,

    please, use the <code> button to insert snippets. Also avoid double posting.
    Closing this topic as duplicate.
    Conversation goes ahead here:

    Disable or Hide Private Message Button

    #259413
    koded1999
    Participant

    @henrywright i managed to fix that and is working perfectly.

    but i have another problem.

    i will like to populate the subject automatically when user click the private message button from post

    pls how can i achieve this.

    thank you

    #259410
    koded1999
    Participant

    @henrywright Please i will like to add private message button in post side bar. i used the code below it works but doesnt populate the author automatically. how can i fix this thanks in advance.

    function bpfr_message_shortcode() {	
    $author = get_the_author();
    $message = 'Login to contact advertiser!';
    
    if( is_user_logged_in() ) {
    	return '<a>MESSAGE ADVERTISER</a>';
     } else {
        return $message;
     }
    } 
    add_shortcode( 'ksam', 'bpfr_message_shortcode' );
    nabiloulou
    Participant

    I use buddypress private message through an e-learning platform, I want users with the role “student” only send messages to the teacher and the teacher with the role “admin” or “professor” can send messages to all users
    Note that I would not that students communicates with others student with this module

    Mudito
    Participant

    Hello, I’m new to Buddypress but everything is looking great so far. I have one suggestion: the ‘friendship connections’ is turned off in my install because everybody in my site is already assumed friends, there is no need for that feature, we want everybody to see everyone’s activity.

    That is just fine but one problem now is that the sending of invitations for groups only works among friends. As it stands right now, is not possible to send invitations for a group in my site. It would be nice to have that even though it can be easily solved by announcing publicly the existence of your group and asking people to join in, but it becomes more difficult when the group is hidden and people cannot request to join and invitations cannot be sent. In that case they need to be added manually through the WordPress panel. So my request is that the invitation feature also work when the ‘friendship’ model is turned off.

    On the same vein: because there is no friendship relationship, when sending a private message, the auto-complete for the name is not working because it also requires the friendship to show. A message can only be sent if you write the exactly correct “username” that nobody really remembers. So that also could be changed for a global search when the friendship module is absent.

    Other than that, everything is fine. Thanks for the great job.

    #259313

    In reply to: Disable BP reg

    Ron Ashman
    Participant

    Hi Henry,

    Wow I didn’t expect an answer so quickly. Thanks!

    I wouldn’t feel comfortable opening a ticket because my understanding of developing is quite basic, and this is a free plugin so I’d feel greedy asking for things or “complaining”.

    Would you please tell me if it might cause any trouble if I leave those pages set as blank? I don’t mind the warning or might find a way to hide it.

    I tried setting private pages or assign a password, but they don’t show in the list or even if they’re password protected they still show the content (registration form).

    Disabling registration through BP would be the best option for me, I think.

    Thanks again, have a great day!

Viewing 25 results - 926 through 950 (of 3,865 total)
Skip to toolbar