Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 726 through 750 (of 3,865 total)
  • Author
    Search Results
  • naomibuch
    Participant

    Hello,

    I am new to Buddypress and this is my first post, I am new to web development also, and my PhP coding is not all that great, my years as a software developer was strictly in a windows environment (vb.net and sql)

    I developed my own website and I am using Buddypress as part of my social media for users to connect with each other.

    I have spent endless hours researching a fix, and I have not been able to find anything php file that I can edit in File Manager to edit or remove the line of code.

    When a user updates an Activity, it updates in three places:

    1. The Activity Stream (which is what I want)
    2. The Member’s Profile where the Activity tab was (now removed, which is what I want)
    3. Under the Member’s profile cover, with that pesky “view link” (which I DO NOT want to show)

    And the “view link” is a bit buggy also, sometimes when a user clicks on it, it throws a 404 error, sometimes it opens up a blank page, and sometimes it opens up the recent activity that they posted in the Activity Stream.

    Also in the members directory I have a button to send the user a private message whether or not they are friends.

    When I click on a user name from the member’s directory, it take me to the compose a message like it is suppose to do, and the user name appears , but it does not save the user name in the send to box, do you have a fix for this also?

    Thank you very much, a fix to these problems are greatly appreciated.

    Naomi

    #268997
    friendlygooners
    Participant

    WordPress 4.9 “Tipton”
    BuddyPress Version 2.9.2
    Theme: Buddy Version: 2.15.1 By GhostPool

    When sending private message to my users, the message shows sidewide notification to everyone visiting my site. I added this this in custom css

    #sitewide-notice {
    display: none !important;
    }

    The message box appearing under the header was closed But the sidewide notification still exist.
    You can check out here https://www.friendlygooners.com/

    #268980
    jackaspden13
    Participant

    Hi,

    I’d like to be able to include either shortcode or a link to a URL using HTML in a private message – can anyone help?

    #268891
    Boone Gorges
    Keymaster

    @louisarthur – Thanks for sending me credentials. I’ve logged into your site to have a look.

    As you note in your email, there’s no href attribute on these links. It’s not clear to me how this would be the case, but I can give you a starting point for looking into it yourself. Briefly, the buttons will be built without an href if the button constructing function passes an empty link_href parameter to the BP_Button class. The functions used in the two cases are different:

    Message public: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-activity/bp-activity-template.php?marks=3090#L3079

    Message privé: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-messages/bp-messages-template.php?marks=1362#L1360

    The logic in each case is different, but since neither is showing up, I’m guessing that one of two things is happening:

    1. One of the conditional checks shared between them is failing for some reason: bp_is_my_profile(), is_user_logged_in().

    2. Something on your installation – perhaps your theme but probably a plugin (since you said Twenty Seventeen was exhibiting the problem as well) – is filtering both ‘bp_get_send_private_message_link’ and ‘bp_get_send_public_message_link’, and then incorrect returning empty strings.

    To test idea #2, you might try – if you can – searching through your codebase for those filter names.

    #268778

    Topic: Karma System

    in forum Ideas
    ewdoc
    Participant

    Hi,
    I’ve an idea about the karma
    For exemple:
    Everyone start with the maximum karma (10)
    If “John” spam, a moderator or me, the admin, delete his message and remove one point from his karma.
    If he has got 9 points, he can’t send private message (for exemple)
    And etc…
    I want it can be customisable. If I only want send a message for advert him etc…
    Thanks and sorry for my English 🙂

    #268680
    harveyando
    Participant

    Can anyone recommend how to achieve a site such as http://www.tutora.co.uk and http://www.tutorhunt.com using wordpress/buddypress?

    We want to have a home page, about etc but then a search page where users can search for tutors based on subject level and location.

    Tutors can sign up and create a profile with these custom fields.

    They can then private message each other and agree to work together.

    Upon acceptance, the user can then purchase the tutors details – payment made to our site.

    I was looking at buddypress for the profile and private messaging – is this possible?

    What about the payment and search functionality – does anyone have any recommendations on how to achieve this?

    #268674
    sarkku
    Participant

    Hi

    Private messages in BuddyPress should be in my opinion, private.
    As a site admin I can see everyone’s private messages.

    How can I turn this off?
    I do not want to see other people’s private messages.

    Is this really something that should be visible to site admins in the first place?

    Checked and no registered users nor users with no admin rights cannot see private messages. Only visible with admin rights.

    WP-version: 4.8.2–fi
    BuddyPress Version: 2.9.1
    Theme used: Kleo
    site: https://eurosinkut.net

    Thank you in advance for your support.

    Br,
    Sarkku

    vaibhavyuvasoft187
    Participant

    <?php get_header( ‘buddypress’ ); ?>
    <!– MAIN SECTION
    ================================================ –>
    <section>
    <div id=”main”>
    <div class=”row”>
    <div class=”twelve columns”>
    <?php do_action( ‘bp_before_register_page’ ); ?>
    <div id=”register-page”>
    <form action=”” name=”signup_form” id=”signup_form” class=”standard-form custom” 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 setp ?>
    <?php if ( ‘request-details’ == bp_get_current_signup_step() ) : ?>
    <div class=”row”>
    <div class=”twelve columns”>
    <h2 class=”article-title text-center”><?php _e( ‘Create an Account’, ‘buddypress’ ); ?></h2>
    </div>
    <!–end twelve–>
    </div>
    <?php do_action( ‘template_notices’ ); ?>
    <p class=”lead”><?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>
    <br><br>
    <?php do_action( ‘bp_before_account_details_fields’ ); ?>
    <div class=”row”>
    <div class=”register-section six columns” id=”basic-details-section”>
    <?php /***** Basic Account Details ******/ ?>
    <h4><i class=”icon icon-user”></i> <?php _e( ‘Account Details’, ‘buddypress’ ); ?></h4>
    <br>
    <label for=”signup_username”><?php _e( ‘Username’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_username_errors’ ); ?>
    <input type=”text” name=”signup_username” id=”signup_username” value=”<?php bp_signup_username_value(); ?>” />
    <label for=”signup_email”><?php _e( ‘Email Address’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_email_errors’ ); ?>
    <input type=”text” name=”signup_email” id=”signup_email” value=”<?php bp_signup_email_value(); ?>” />
    <label for=”signup_password”><?php _e( ‘Choose a Password’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_password_errors’ ); ?>
    <input type=”password” name=”signup_password” id=”signup_password” value=”<?php bp_signup_password_value(); ?>” class=”password-entry” />
    <div id=”pass-strength-result”></div>
    <label for=”signup_password_confirm”><?php _e( ‘Confirm Password’, ‘buddypress’ ); ?> <?php _e( ‘(required)’, ‘buddypress’ ); ?></label>
    <?php do_action( ‘bp_signup_password_confirm_errors’ ); ?>
    <input type=”password” name=”signup_password_confirm” id=”signup_password_confirm” value=”<?php bp_signup_password_confirm_value(); ?>” class=”password-entry-confirm” />
    <br><br>
    </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 six columns” id=”profile-details-section”>
    <h4><i class=”icon icon-comments”></i> <?php _e( ‘Profile Details’, ‘buddypress’ ); ?></h4>
    <div class=”check-group”>
    <div class=”col-md-4 col-sm-4″>
    <label for=”g1″ class=”g1″>
    <input type=”radio” name=”colorRadio” value=”first-section” id=”g1″ checked=”checked”> Algemeen
    </label>
    </div>
    <div class=”col-md-4 col-sm-4″>
    <label for=”g2″ class=”g2″>
    <input type=”radio” name=”colorRadio” value=”second-section” id=”g2″> Man
    </label>
    </div>
    <div class=”col-md-4 col-sm-4″>
    <label for=”g3″ class=”g3″>
    <input type=”radio” name=”colorRadio” value=”third-section” id=”g3″> Vrouw
    </label>
    </div>
    </div>
    <br>

    <section class=”first-section radio-section”>
    <!– <h1>Algemeen</h1> –>
    <?php /* Use the profile field loop to render input fields for the ‘base’ profile field group */ ?>
    <?php if ( bp_is_active( ‘xprofile’ ) ) : if ( bp_has_profile( array( ‘profile_group_id’ => 1, ‘fetch_field_data’ => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <div class=”<?php if(‘selectbox’ == bp_get_the_profile_field_type() || ‘multiselectbox’ == bp_get_the_profile_field_type() ) echo ‘six’; else echo ‘twelve’;?> columns”>
    <div<?php bp_field_css_class( ‘editfield’ ); ?>>
    <?php
    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    $field_type->edit_field_html();

    do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );

    if ( bp_current_user_can( ‘bp_xprofile_change_field_visibility’ ) ) : ?>
    <p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
    <?php
    printf(
    __( ‘This field can be seen by: %s’, ‘buddypress’ ),
    ‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
    );
    ?>
    </p>
    <div class=”field-visibility-settings” id=”field-visibility-settings-<?php bp_the_profile_field_id() ?>”>
    <fieldset>
    <legend><?php _e( ‘Who can see this field?’, ‘buddypress’ ) ?></legend>
    <?php bp_profile_visibility_radio_buttons() ?>
    </fieldset>
    <?php _e( ‘Close’, ‘buddypress’ ) ?>
    </div>
    <?php else : ?>
    <p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
    <?php
    printf(
    __( ‘This field can be seen by: %s’, ‘buddypress’ ),
    ‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
    );
    ?>
    </p>
    <?php endif ?>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ); ?>
    <p class=”description”><?php bp_the_profile_field_description(); ?></p>
    </div>
    </div>
    <?php endwhile; ?>
    <?php $fields_ids[]= bp_get_the_profile_field_id();?>
    <?php endwhile; endif; endif; ?>
    </section>

    <section class=”second-section radio-section”>
    <!– <h1>Man</h1> –>
    <?php if ( bp_is_active( ‘xprofile’ ) ) : if ( bp_has_profile( array( ‘profile_group_id’ => 2, ‘fetch_field_data’ => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <div class=”<?php if(‘selectbox’ == bp_get_the_profile_field_type() || ‘multiselectbox’ == bp_get_the_profile_field_type() ) echo ‘six’; else echo ‘twelve’;?> columns”>
    <div<?php bp_field_css_class( ‘editfield’ ); ?>>
    <?php
    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    $field_type->edit_field_html();

    do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );

    if ( bp_current_user_can( ‘bp_xprofile_change_field_visibility’ ) ) : ?>
    <p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
    <?php
    printf(
    __( ‘This field can be seen by: %s’, ‘buddypress’ ),
    ‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
    );
    ?>
    </p>
    <div class=”field-visibility-settings” id=”field-visibility-settings-<?php bp_the_profile_field_id() ?>”>
    <fieldset>
    <legend><?php _e( ‘Who can see this field?’, ‘buddypress’ ) ?></legend>
    <?php bp_profile_visibility_radio_buttons() ?>
    </fieldset>
    <?php _e( ‘Close’, ‘buddypress’ ) ?>
    </div>
    <?php else : ?>
    <p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
    <?php
    printf(
    __( ‘This field can be seen by: %s’, ‘buddypress’ ),
    ‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
    );
    ?>
    </p>
    <?php endif ?>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ); ?>
    <p class=”description”><?php bp_the_profile_field_description(); ?></p>
    </div>
    </div>
    <?php endwhile; ?>
    <?php $fields_ids[]= bp_get_the_profile_field_id();?>
    <?php endwhile; endif; endif; ?>
    </section>

    <section class=”third-section radio-section”>
    <!– <h1>Vrouw</h1> –>
    <?php if ( bp_is_active( ‘xprofile’ ) ) : if ( bp_has_profile( array( ‘profile_group_id’ => 3, ‘fetch_field_data’ => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?>
    <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?>
    <div class=”<?php if(‘selectbox’ == bp_get_the_profile_field_type() || ‘multiselectbox’ == bp_get_the_profile_field_type() ) echo ‘six’; else echo ‘twelve’;?> columns”>
    <div<?php bp_field_css_class( ‘editfield’ ); ?>>
    <?php
    $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() );
    $field_type->edit_field_html();

    do_action( ‘bp_custom_profile_edit_fields_pre_visibility’ );

    if ( bp_current_user_can( ‘bp_xprofile_change_field_visibility’ ) ) : ?>
    <p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
    <?php
    printf(
    __( ‘This field can be seen by: %s’, ‘buddypress’ ),
    ‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
    );
    ?>
    </p>
    <div class=”field-visibility-settings” id=”field-visibility-settings-<?php bp_the_profile_field_id() ?>”>
    <fieldset>
    <legend><?php _e( ‘Who can see this field?’, ‘buddypress’ ) ?></legend>
    <?php bp_profile_visibility_radio_buttons() ?>
    </fieldset>
    <?php _e( ‘Close’, ‘buddypress’ ) ?>
    </div>
    <?php else : ?>
    <p class=”field-visibility-settings-notoggle” id=”field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>”>
    <?php
    printf(
    __( ‘This field can be seen by: %s’, ‘buddypress’ ),
    ‘<span class=”current-visibility-level”>’ . bp_get_the_profile_field_visibility_level_label() . ‘</span>’
    );
    ?>
    </p>
    <?php endif ?>
    <?php do_action( ‘bp_custom_profile_edit_fields’ ); ?>
    <p class=”description”><?php bp_the_profile_field_description(); ?></p>
    </div>
    </div>
    <?php endwhile; ?>
    <?php $fields_ids[]= bp_get_the_profile_field_id();?>
    <?php endwhile; endif; endif; ?>
    </section>

    <input type=”hidden” name=”signup_profile_field_ids” id=”signup_profile_field_ids” value=”<?php echo implode(“,”,$fields_ids);?>” />
    </div>
    <!– #profile-details-section –>
    </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><label for=”signup_with_blog”><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’ ); ?></label></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_blogs_subdomain_base(); ?>
    <?php else : ?>
    <?php echo site_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(); ?>” />
    <label><?php _e( ‘I would like my site to appear in search engines, and in public listings around this network.’, ‘buddypress’ ); ?>:</label>
    <?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>
    </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” class=”button radius pull-right” name=”signup_submit” id=”signup_submit” value=”<?php _e( ‘Complete Sign Up’, ‘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() ) : ?>
    <h2 class=”article-title”><?php _e( ‘Sign Up Complete!’, ‘kleo_framework’ ); ?></h2>
    <?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>
    </div>
    <?php do_action( ‘bp_after_register_page’ ); ?>
    <div class=”clearfix”></div>
    <br><br>
    </div>
    <!–end twelve–>
    </div>
    <!–end row–>
    </div>
    <!–end main–>
    </section>
    <!–END MAIN SECTION–>
    <style type=”text/css”>
    .check-group{
    width: 100%;
    margin-bottom: 70px;
    }
    .check-group .col-md-4{
    width: 20%;
    float: left;
    }
    .check-group label{
    background: none;
    padding: 8px 12px;
    border-radius: 5px;
    width: 60%;
    border:2px solid #d7b46a;
    color: #fff;
    }
    </style>
    <script type=”text/javascript”>
    jQuery(document).ready( function() {
    if ( jQuery(‘div#blog-details’).length && !jQuery(‘div#blog-details’).hasClass(‘show’) )
    jQuery(‘div#blog-details’).toggle();

    jQuery( ‘input#signup_with_blog’ ).change( function() {
    if(jQuery(this).is(‘:checked’)) {
    jQuery(‘div#blog-details’).fadeIn();
    }
    else {
    jQuery(‘div#blog-details’).fadeOut();
    }
    });
    });
    </script>
    <script type=”text/javascript”>
    // jQuery(document).ready(function(){
    // jQuery(‘input[type=”radio”]’).click(function(){
    // var inputValue = jQuery(this).attr(“value”);
    // var targetBox = jQuery(“.” + inputValue);
    // jQuery(“.radio-section”).not(targetBox).hide();
    // jQuery(targetBox).show();
    // });
    // });
    jQuery(document).ready(function(){
    jQuery(‘.second-section’).hide(‘fast’);
    jQuery(‘.third-section’).hide(‘fast’);
    jQuery(‘.first-section’).show(‘fast’);
    jQuery(‘.g1’).css({‘background’: ‘#d7b46a’, ‘color’: ‘#333’});

    jQuery(‘.g1’).click(function(){
    jQuery(‘.second-section’).hide(‘fast’);
    jQuery(‘.third-section’).hide(‘fast’);
    jQuery(‘.first-section’).show(‘fast’);
    jQuery(‘.g1’).css({‘background’: ‘#d7b46a’, ‘color’:’#333′});
    jQuery(‘.g2’).css({‘background’: ‘none’, ‘color’:’#fff’});
    jQuery(‘.g3’).css({‘background’: ‘none’, ‘color’:’#fff’});
    })
    jQuery(‘.g2’).click(function(){
    jQuery(‘.first-section’).hide(‘fast’);
    jQuery(‘.third-section’).hide(‘fast’);
    jQuery(‘.second-section’).show(‘fast’);
    jQuery(‘.g1’).css({‘background’: ‘none’, ‘color’:’#fff’});
    jQuery(‘.g2’).css({‘background’: ‘#d7b46a’, ‘color’:’#333′});
    jQuery(‘.g3’).css({‘background’: ‘none’, ‘color’:’#fff’});
    })
    jQuery(‘.g3’).click(function(){
    jQuery(‘.first-section’).hide(‘fast’);
    jQuery(‘.second-section’).hide(‘fast’);
    jQuery(‘.third-section’).show(‘fast’);
    jQuery(‘.g1’).css({‘background’: ‘none’, ‘color’:’#fff’});
    jQuery(‘.g3’).css({‘background’: ‘#d7b46a’, ‘color’:’#333′});
    jQuery(‘.g2’).css({‘background’: ‘none’, ‘color’:’#fff’});
    })
    })
    </script>
    <?php get_footer( ‘buddypress’ ); ?>

    #268630
    David Cavins
    Keymaster

    Hi @paksunny-

    #1 can be accomplished by adding this code to you bp-custom.php file (or wherever you keep your customizations): https://gist.github.com/dcavins/c65f3856dd6ed5be37eef115ab09405a

    #2 Try this plugin: https://wordpress.org/plugins/buddypress-private-message-for-friends-only/

    -David

    julietalayne
    Participant

    I have a fresh install of WordPress running WordPress 4.8.2.

    Running Thrive theme with the following plugins active:

    Akismet Anti-spam
    BuddyDrive
    BuddyPress
    BuddyPress Docs
    BuddyPress Global Search
    Gears
    Menu Icons
    One Click Demo Import
    rtMedia for WordPress, BuddyPress and bbPress
    Slider Revolution
    Subway
    TaskBreaker
    The Events Calendar
    Transcoder (for rtMedia)
    Visual Form Builder
    Wp-Polls
    WPBakery Visual Composer

    I am on shared hosting with the following:
    Apache Version 2.2.31
    PHP Version 5.5.36
    MySQL Version 5.5.50-38.0-log
    Architecture x86_64
    Operating System linux

    I’m using Chrome to work on the site and test it.

    I’m familiar enough with PHP and css and such to find solutions to most issues, but this has me positively confounded.

    First, when I try to upload a profile picture if I have my monitor set at full screen (it’s a large monitor)–it will come up with the pink box and say “There was a problem cropping your profile photo”

    If I minimize my browser, just click the button and make it smaller the image will crop and upload with no issues.

    What?! I’m perplexed. I can’t make it do any different, no settings I can find will change the behavior.

    Then when I tried to upload a cover image, it loads the image to the placement page, but across the top there’s a huge error:

    Warning: transliterator_transliterate(): Could not create transliterator with ID “Any-Latin; Latin-ASCII; [\u0080-\u7fff] remove” (transliterator_create: unable to open ICU transliterator with id “Any-Latin; Latin-ASCII; [\u0080-\u7fff] remove”: U_INVALID_ID) in /home/******/public_html/wp-content/plugins/buddypress/bp-core/classes/class-bp-attachment.php on line 292

    The code is this:

    public function sanitize_utf8_filename( $retval ) {
    		// PHP 5.4+ or with PECL intl 2.0+
    		if ( function_exists( 'transliterator_transliterate' ) && seems_utf8( $retval ) ) {
    			$retval = transliterator_transliterate( 'Any-Latin; Latin-ASCII; [\u0080-\u7fff] remove', $retval );
    
    		// Older.
    		} else {
    			// Use WP's built-in function to convert accents to their ASCII equivalent.
    			$retval = remove_accents( $retval );
    
    			// Still here? use iconv().
    			if ( function_exists( 'iconv' ) && seems_utf8( $retval ) ) {
    				$retval = iconv( 'UTF-8', 'ASCII//TRANSLIT//IGNORE', $retval );
    			}

    And the specific line in the error is this one:

    $retval = transliterator_transliterate( 'Any-Latin; Latin-ASCII; [\u0080-\u7fff] remove', $retval );

    The name of the file I am uploading is “header.png”. I tested it with a .jpg file as well. Same error. It will allow me to set the area on the image and it will upload it to the cover, but I wondered if the issues I’m having with images could be related so I didn’t want to leave them out.

    Also, this is the SECOND installation with the same issue. I thought that maybe the first install had become corrupted or something so to eliminate the possibility that I was dealing with a database error or something I deleted the entire install and did a complete reinstall into a different database (however, if it is important I was using the Softaculous Apps Installer inside of my Cpanel, not manually installing, but if that makes a difference, I am happy to try a manual install, as I am capable and willing to do anything to resolve this issue because it’s driving me insane.

    The error with the cover photo happens no matter what theme I am using, and the profile picture issue happens only with the Thrive theme. I am in contact with the theme author about it, but wanted to share that info here just in case it was somehow relevant.

    Any insight into what this issue could be? Sorry for so much info haha but if you need anything I haven’t supplied to give me some clue I’ll be sure to provide it!

    Thank you kindly,
    Juliet

    The site deals with teenagers and is a closed community so I would prefer to not publicly post the url, but I would be happy to provide it privately if it would help someone to trouble shoot. Thanks!

    Arize Nnonyelu
    Participant

    Next time try hiring an expert or consult a more experienced developer in private to sort out some issues.

    Without being told the people that started this Buddypress has tried a lot. I don’t think they need this sort of discouragement.

    please nobody should regard this topic.

    paksunny
    Participant

    Hi,

    I am trying to make the below two changes but tried all different solutions available on this form non worked.

    1) Make the friend tab only visible to the account owner / logged-in user.
    2) only friends can use and see the send private message button.

    Can someone guide me to getting this accomplished. Most of the privacy settings I was able to integrate through plugins.

    #268581
    David Cavins
    Keymaster

    I’m confused about what you’re trying to do, but if you want to restrict access to forums, then, yes, private groups are an excellent option. First, create a forum in wp-admin, then create a private group. Then, in the group management tab, check the box “Yes, I want this group to have a forum” and select the forum you just created.

    Then, only users who belong to private group will be able to use that forum.

    black6f7574
    Participant

    By default, the search box in the private messages section is used to search amongst messages, so if in your inbox you have a message sent by the user – for example – called “Sam” and you also have another message in which the user “Matthew” write about the user “Sam”, searching for “Sam” in the search box ends up displaying both the messages.

    What if I wanted to use this same searchbox to search messages only by the sender’s username (so if I write “Sam” it will display only the message that Sam sent to me)? Do you think it would be possible? @shanebp

    Thanks.

    #268524
    dhsllc
    Participant

    Did you find a solution to recover the activity stream? My private group activity stream is no longer showing past activity even though the activity is still in the database.

    #268428
    alcwho
    Participant

    Hi all,

    I am very new to bbpress. I got a quick question regarding to the user setup.

    Basically, when a new user registers, i’d like to assign him/her to a specific forum(s) he/she can create a post (or edit his own post).

    How can i do that?

    That’s a plugin called “Private groups”, but it seems that i need to assign ‘role’ in the bbpress, then the ‘role’ attaches to a specific group. That’s not a perfect way.

    For example, if User X assigned to a ‘participant’ which attaches to ‘group 1’, then User X can access a forum Q with ‘group 1’ only access. However, i don’t want User Y with role ‘participant’ is able to access forum Q. In this case, what should I do? or any good plugin I can use?

    Idea case is:
    I can assign each new register user (or existing) to a specific group, then he can access a forum with specific group access. For example:
    User A –> assign Group 1 –> can access Forum X
    User B –> assign Group 1 and 2 –> can access Forum X and Y
    “Role” will not affect “group” decision.

    Please kindly help. I search around but with no luck so far.

    Many thanks in advance.

    #268350

    In reply to: Help with this code

    livingflame
    Participant

    Okey, here is the correct code, thanks to @brajesh

    // Adding message button in members directory 
    
    function filter_message_button_link( $link ) {
    
        $link =  wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r='. bp_core_get_username( bp_get_member_user_id() ) );
    
    return $link;
    
    }
    
    function display_private_message_button() {
    
        if( is_user_logged_in() && bp_get_member_user_id() != bp_loggedin_user_id() ) {
    
            //bp_send_message_button();
            ?>
            <div id="send-private-message" class="generic-button">
    
                <div class="private-message-button generic-button" ><a href="<?php echo filter_message_button_link(); ?>" class="button small secondary radius" rel="add"><i class="icon-envelope"></i></a></div>
            </div>
    
            <?php
            add_filter('bp_get_send_private_message_link', 'filter_message_button_link', 1, 1 );
            }
    }
    add_action( 'bp_directory_members_item_last', 'display_private_message_button',9999 );
    
    
    sarahjones123
    Participant

    I’m trying to set up a membership site and may go with WooCommerce Membership. But I have a hard time finding a way to solve a problem.

    When a member’s membership (via WooCommerce Membership) is cancelled, his Buddypress WordPress user account is still active, which means he can still log in and freely contact other members. i need to find a way to restrict these cancelled members from accessing BP entirely, or at least from Private Message so they can’t contact other members.

    So far the closest one i found is this thread
    https://buddypress.org/support/topic/hiderestrict-access-to-private-messaging/#post-170393

    According to the note, USER_TO_DISALLOW would be my cancelled WooCommerce users. But I wouldn’t know which member would cancel (or their membership level) upfront so this codes don’t seem to work for my site. Besides, it’s 4+ years old and I’m not sure if it’s still relevant.

    The other one is
    https://buddypress.org/support/topic/restrict-private-messages/

    The moderator said there’s a hook available in BuddyPress called messages_message_before_save which can be used to do things before a message is sent. But I don’t know how to write a function to customize it for my need.

    Can anyone help? If you happen to know any other membership plugins that can achieve this, I’d really appreciate if you can let me know.

    Thank you.

    #268223
    lofiz
    Participant

    I am using messages_new_message to send private messages from a custom form.

    I would like the sent messages to NOT be in the senders Sent box.

    I have tried editing messages_new_message but have been unsuccessful.

    Any thoughts?

    #268222
    maelga
    Participant

    Hi, when members receive a PM, an email is sent with the subject “New message from *username*”.
    How can I filter *username* to show the user *display name* instead?
    For example change “New message from zizam123” to “New message from James Z.” assuming ‘James Z.’ is the user’s display name in WP.

    #268216
    lofiz
    Participant

    I am trying to build a contact form that I can load on any page that would send a private message to a user. I already have the selected user/s in an array and now I would like to take that plus form data to (I’m guessing) message_new_message

    Sample HTML Form

    <form>
    <label>Subject</label>
    <input id="subjec_input" name="subject_input" type="text">
    <label>Message Body</label>
    <textarea id="body_input" name="body_input"></textarea>
    <button id="submit_btn" name="submit_btn">Submit</button>
    </form>

    How I think arguments are given to the function

    `messages_new_message( $args = array( ‘recipients’ => $user_id, ‘subject’ => $title, ‘content’ => $message );

    Any help would be appreciated. Thanks

    #268179
    arjunsinghal
    Participant

    Hi
    I am a newbie. I am planning to add buddypress to a multi-author WordPress site for better front-end handling and networking features. I am planning to go with Boss theme from BuddyBoss. I am also planning on wpmu dev plugins to enhance the site. And keep my site supported by expert developers since I am not very experienced with back-end code.

    However, I am wondering, if there is a way to implement encryption for the messaging sections – private messages and inbox, by using a plugin / SSL certificates? What would be the easiest way.

    Any comments / help will be appreciated.

    #268157

    In reply to: Help with this code

    livingflame
    Participant

    Help me with the code.
    I need the Message button visible only to logged in users (Just like the Add Friend button works).

    Check the code, please.

    // Adding message button in members loop
    
    function filter_message_button_link( $link ) {
    
        $link =  wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r='. bp_core_get_username( bp_get_member_user_id() ) );
    
    return $link;
    
    }
    
    function display_private_message_button() {
    
        if( bp_get_member_user_id() != bp_loggedin_user_id() ) {
    
            //bp_send_message_button();
            ?>
            <div id="send-private-message" class="generic-button">
    
                <div class="private-message-button generic-button" ><a href="<?php echo filter_message_button_link(); ?>" class="button small secondary radius" rel="add"><i class="icon-envelope"></i></a></div>
            </div>
    
            <?php
            add_filter('bp_get_send_private_message_link', 'filter_message_button_link', 1, 1 );
            }
    }
    add_action( 'bp_directory_members_item_last', 'display_private_message_button',9999 );
    
    


    @modemlooper


    @sbrajesh


    @mercime

    lofiz
    Participant

    I have used https://en-gb.wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ and https://en-gb.wordpress.org/plugins/pods/ to create a new taxonomy that users can be part of.

    Example usage: Users can be part of ‘team red’, ‘team green’ or ‘team blue’.

    I would like to enable any user to send private messages to all members of a selected team.

    I have looked at mass mailing plugins and am new to BP. My thoughts are that either there is a way to code a private message procedure to search through users and send a message to the matching profiles. OR, look into Groups.

    If it is the latter, I would like Groups to be completely hidden from non-group members.

    Any thoughts welcome. Thank you.

    #267867
    metalhead
    Participant

    I’ve seen this topic discussed in an old thread, however, the solution was never made public.

    I’m looking for a way to thwart the the input box display for additional recipients while composing a message.

    The best way to do this, I assume, is to check to see if the first recipient string is empty. If it’s not empty, then we need to use inline css to hide the element:

    input#send-to-input.send-to-input.ac_input (I think that’s the one)

    I tried to take a hack at compose.php in my child theme, in an attempt to locate the spot where the additional recipient text box gets displayed. However, I can’t identify which variable needs to be checked (to see if it’s a blank string or not.)

    Any advice on this subject will be very helpful. Once I get it working, I’ll be glad to share the instructions in this thread so others can accomplish the same task with ease.

    Thank you.

Viewing 25 results - 726 through 750 (of 3,865 total)
Skip to toolbar