Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 3,326 through 3,350 (of 69,016 total)
  • Author
    Search Results
  • #312837
    Prolet
    Participant

    Hi again,

    I have to apologise to all.

    The captcha ‘problem’was caused by Jetpack plugin, not by BuddyPress.

    As far as the second problem goes, I removed the tab from the menu and now all is good.

    Stay safe!

    …..how to show the problem is resolved? …. 🙂

    #312827
    jadedartist
    Participant

    How can I change the years to include dates earlier than 1958? Some of my users are not covered in the span included in the BuddyPress installation.

    clickallco
    Participant

    Your iframe needs a parent to be shown, twitch doesn’t allow live streams to be shown in embeds without it. Here’s an example:

    <iframe src="https://player.twitch.tv/?channel=NAMEOFCHANNEL&parent=www.yourwebsite.com" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620"></iframe>

    Otherwise you could always do something like this and alter the buddypress member templates to fit it whereever you want.

    <?php 
    global $bp;
    $user_id = get_the_author_id();
    //Fill out the PROFILE FIELD NAME with your own field name
    $Twitch_Data = xprofile_get_field_data( 'PROFILE FIELD NAME', $user_id );
    
    if ( ! empty( $Twitch_Data) ) {
    ?>
    
    <div id="twitch-embed"></div>
    
    <script src="https://player.twitch.tv/js/embed/v1.js"></script>
    <script type="text/javascript">
      new Twitch.Player("twitch-embed", {
         channel: "<?php echo $Twitch_Data ?>"
      });
    </script>
    
    <?php } ?>

    The user would then go ahead and fill in their own channel name in the Buddypress profile field you’ve provided for them.

    Prolet
    Participant

    Hello,

    I am new to BuddyPress, which probably will explain my question.

    On my new website https://worldartistmanagement.com I have installed BuddyPress 6.1.0

    It is pretty good and I am thankful for its simplicity and yet grand functionality.

    My main membership plugin is Ultimate Membership Pro, which an awesome tool for any membership website. Its authors have an extension to integrate it with BuddyPress – yay. On the BP menu appears another link to UMPs account page. That’s all.

    And here are my questions.

    How can I change the link name of this additional tab, please? It is the name of the plugin, instead My Account or else.

    And the second question, which is more important to me.

    After installing the BP all users are given captcha test by solving some math questions.
    I don’t use captcha, I didn’t enable it and I am trying to find out where this came from. The only sure thing is that it came after BP activation.

    Please advice.

    PS I will address the same question to UMP and to Anti-Spam by CleanTalk, my security plugin.

    Thank you. Stay safe

    cmsplay
    Participant

    At Appearance>Widgets>BuddyPress Group’s Home

    …I have set ‘(BuddyPress) Groups: Groups’ as follows:

    Who can see this widget?: Logged In Users

    …then below under ‘User Login State’ I have set: Show only for Logged-in Users

    Why is it then that if I log out of the site, refresh my browser and re-visit the site homepage, I still see the Groups page with its separate group headings displayed?

    Can anyone tell me how to make BP Groups invisible unless users are logged in?

    Many thanks.

    #312808

    In reply to: Deleting Unused Media

    welsh10
    Participant

    Hi @Vapvarun,

    Unfortunately, that plugin did not work – it showed nearly every media as unattached that was associated with BuddyPress 🙁

    Surely someone here, does something to purge media and posts to save space after so long?

    #312803

    I had Buddypress installed recently, and all appeared fine. Today I was in the Widgets section making some changes, and dragged the ‘Events’ widget into the Buddypress Member’s Home box on the right, which previously was empty. When I checked my main Buddypress account page, the menus that were previously showing had disappeared, and the sign up form boxes were out of alignment. I undid this change, and menus have not re-appeared, nor has the sign up form corrected to be completely even.

    I have changed the theme to the Old version, instead of new, and that did make the menu come back, but I do not like this style. How can I fix my page?

    Thank you.

    #312802
    stockssocial
    Participant

    I have buddypress installed on my site stocks.social. But when I use the BP Login Widget to let users log in it tries to cram the login and password fields on the same line. I like the BP Login Widget and don’t really want to install another plug in to modify the login and password fields of the page. The site is http://www.stocks.social if someone could please check this out and let me know what I am doing wrong I would really appreciate it.

    highvibes95
    Participant

    Hi All,
    I googled a lot and read many posts but found no code snippet to show member names along the profile avatars of the BP Recently Active Members widget. So i created my own widget and that is super easy to do. I took the core class of the above widget did a single line modification to display names also and registered it as a widget through functions.php
    Just paste the below code in functions.php of your child theme and it will work.

    class wpb_widget extends WP_Widget {

    function __construct() {
    parent::__construct(

    // Base ID of your widget
    ‘wpb_widget’,

    // Widget name will appear in UI
    __(‘Recently Active Member Custom’, ‘wpb_widget_domain’),

    // Widget description
    array( ‘description’ => __( ‘Sample widget based on WPBeginner Tutorial’, ‘wpb_widget_domain’ ), )
    );
    }

    // Creating widget front-end

    public function widget( $args, $instance ) {
    global $members_template;

    // Get widget settings.
    $settings = $this->parse_settings( $instance );

    /**
    * Filters the title of the Recently Active widget.
    *
    * @since 1.8.0
    * @since 2.3.0 Added ‘instance’ and ‘id_base’ to arguments passed to filter.
    *
    * @param string $title The widget title.
    * @param array $settings The settings for the particular instance of the widget.
    * @param string $id_base Root ID for all widgets of this type.
    */
    $title = apply_filters( ‘widget_title’, $settings[‘title’], $settings, $this->id_base );

    echo $args[‘before_widget’];
    echo $args[‘before_title’] . $title . $args[‘after_title’];

    $max_limit = bp_get_widget_max_count_limit( __CLASS__ );
    $max_members = $settings[‘max_members’] > $max_limit ? $max_limit : (int) $settings[‘max_members’];

    // Setup args for querying members.
    $members_args = array(
    ‘user_id’ => 0,
    ‘type’ => ‘active’,
    ‘per_page’ => $max_members,
    ‘max’ => $max_members,
    ‘populate_extras’ => true,
    ‘search_terms’ => false,
    );

    // Back up global.
    $old_members_template = $members_template;

    ?>

    <?php if ( bp_has_members( $members_args ) ) : ?>

    <div class=”avatar-block”>

    <?php while ( bp_members() ) : bp_the_member(); ?>

    <span class=”item-avatar”>
    ” class=”bp-tooltip” data-bp-tooltip=”<?php bp_member_name(); ?>”><?php bp_member_avatar(); ?>
    ” class=”bp-tooltip” data-bp-tooltip=”<?php bp_member_name(); ?>”><?php bp_member_name(); ?>
    </span>

    <?php endwhile; ?>

    </div>

    <?php else: ?>

    <div class=”widget-error”>
    <?php esc_html_e( ‘There are no recently active members’, ‘buddypress’ ); ?>
    </div>

    <?php endif; ?>

    <?php echo $args[‘after_widget’];

    // Restore the global.
    $members_template = $old_members_template;
    }

    /**
    * Update the Recently Active widget options.
    *
    * @since 1.0.3
    *
    * @param array $new_instance The new instance options.
    * @param array $old_instance The old instance options.
    * @return array $instance The parsed options to be saved.
    */
    public function update( $new_instance, $old_instance ) {
    $instance = $old_instance;

    $max_limit = bp_get_widget_max_count_limit( __CLASS__ );

    $instance[‘title’] = strip_tags( $new_instance[‘title’] );
    $instance[‘max_members’] = $new_instance[‘max_members’] > $max_limit ? $max_limit : intval( $new_instance[‘max_members’] );

    return $instance;
    }

    /**
    * Output the Recently Active widget options form.
    *
    * @since 1.0.3
    *
    * @param array $instance Widget instance settings.
    * @return void
    */
    public function form( $instance ) {
    $max_limit = bp_get_widget_max_count_limit( __CLASS__ );

    // Get widget settings.
    $settings = $this->parse_settings( $instance );
    $title = strip_tags( $settings[‘title’] );
    $max_members = $settings[‘max_members’] > $max_limit ? $max_limit : intval( $settings[‘max_members’] );
    ?>

    <p>
    <label for=”<?php echo $this->get_field_id( ‘title’ ); ?>”>
    <?php esc_html_e( ‘Title:’, ‘buddypress’ ); ?>
    <input class=”widefat” id=”<?php echo $this->get_field_id( ‘title’ ); ?>” name=”<?php echo $this->get_field_name( ‘title’ ); ?>” type=”text” value=”<?php echo esc_attr( $title ); ?>” style=”width: 100%” />
    </label>
    </p>

    <p>
    <label for=”<?php echo $this->get_field_id( ‘max_members’ ); ?>”>
    <?php esc_html_e( ‘Max members to show:’, ‘buddypress’ ); ?>
    <input class=”widefat” id=”<?php echo $this->get_field_id( ‘max_members’ ); ?>” name=”<?php echo $this->get_field_name( ‘max_members’ ); ?>” type=”number” min=”1″ max=”<?php echo esc_attr( $max_limit ); ?>” value=”<?php echo esc_attr( $max_members ); ?>” style=”width: 30%” />
    </label>
    </p>

    <?php
    }

    /**
    * Merge the widget settings into defaults array.
    *
    * @since 2.3.0
    *
    *
    * @param array $instance Widget instance settings.
    * @return array
    */
    public function parse_settings( $instance = array() ) {
    return bp_parse_args( $instance, array(
    ‘title’ => __( ‘Recently Active Members’, ‘buddypress’ ),
    ‘max_members’ => 15,
    ), ‘recently_active_members_widget_settings’ );
    }
    }

    // Register and load the widget
    function wpb_load_widget() {
    register_widget( ‘wpb_widget’ );
    }
    add_action( ‘widgets_init’, ‘wpb_load_widget’ );

    #312797
    tatiana_k
    Participant

    Here’s the solution how to use Nouveau theme hooks.
    It’s a bit complicated, but I’ve not found a way easier. And no other instructions.

    1. Find the hook you need.
    2. Search through the buddypress files and find the function with the same name (hook is a function, so find the source).
    In my example it’s function bp_nouveau_xprofile_hook($when = ”, $suffix = ”) {} (code reference page)
    3. Write down the array with all $hook components.
    Here they are bp/after/profile/loop_content
    I’d like to say that the pattern is
    bp/first-argument-in-hook/hook-name-from-function/second-argument-in-hook
    but here I had to change xprofile to profile, so the source code is still essential.
    4. Merge the array with _ (bp_after_profile_loop_content)
    5. Congratulations! We’ve got a custom action name and can continue with add_action().

    Honestly, I don’t understand why it has to be so complicated now, but here we are.

    #312788
    Scarecrow
    Participant

    I’ve been attempting to get the below to work, but little trouble with getting it to load the stream itself due to changes that Twitch has done

    // Add's Twitch Channel To BuddyPress Profiles
    if(!class_exists('BP_Twitch_Tab')):
    class BP_Twitch_Tab {
        public $tab_name = 'Twitch TV';
        public $content_title = 'Twitch TV Channel';
        public $url_slug = 'twitchtv';
        public $subnav_slug = 'twtchtv';
        public $tab_position = 40;
        public $show_chat = true;
    
        // channel name will be grabbed from buddypress field $field_name
        public $channelName = null;
        public $field_name = 'Twitch Channel';
        public function __construct () {
            add_action('bp_setup_nav', array($this, 'profile_tab'));
        }
    
        // add profile tab
        public function profile_tab() {
            global $bp;
            // get channel name
            $this->channelName = bp_get_profile_field_data('field=' . $this->field_name . '&user_id=' . bp_loggedin_user_id());
            if($this->channelName) {
                bp_core_new_nav_item( array(
                    'parent_url'           => bp_loggedin_user_domain() . '/' . $this->url_slug . '/',
                    'slug'                 => $this->url_slug,
                    'default_subnav_slug'  => $this->subnav_slug,
                    'parent_slug'          => $bp->profile->slug,
                    'name'                 => $this->tab_name,
                    'position'             => $this->tab_position,
                    'screen_function'      => array($this, 'screen_function')
                ) );
            }
        }
    
        // call actions on profile screen
        public function screen_function() {
            add_action( 'bp_template_title', array($this, 'template_title') );
            add_action( 'bp_template_content', array($this, 'template_content') );
            bp_core_load_template( 'buddypress/members/single/plugins' );
        }
    
        // add content title
        public function template_title() {
            echo $this->content_title;
        }
    
        // show iframe
        public function template_content() {
            ?> <iframe src="//www.twitch.tv/<?php echo $this->channelName; ?>/embed" frameborder="0" scrolling="no" height="500" width="100%"></iframe> <?php
            // show chat
            if ($this->show_chat) {
                ?> <iframe frameborder="0" scrolling="no" class="chat_embed" src="//twitch.tv/chat/embed?channel=<?php echo $this->channelName; ?>&popout_chat=true" height="400" width="100%"></iframe> <?php
            }
        }
    }
    endif;
    new BP_Twitch_Tab;
    #312785
    Varun Dubey
    Participant

    You can compare the template files for both
    https://github.com/buddypress/BuddyPress/tree/master/src/bp-templates

    demon_ru
    Participant

    Buddypress 6.1.0 and “BuddyPress Nouveau” template.
    Theme suffusion child.

    JS error on page: /members/me/messages/

    Uncaught SyntaxError: Unexpected token ‘;’
    at new Function (<anonymous>)
    at Function.v.template (underscore.min.js?ver=1.8.3:formatted:954)
    at i.template (wp-util.min.js?ver=5.4.2:2)
    at i.render (wp-backbone.min.js?ver=5.4.2:2)
    at i.render (buddypress-messages.min.js?ver=6.1.0:formatted:576)
    at i.setPreview (buddypress-messages.min.js?ver=6.1.0:formatted:584)
    at p (backbone.min.js?ver=1.4.0:2)
    at f (backbone.min.js?ver=1.4.0:2)
    at l (backbone.min.js?ver=1.4.0:2)
    at i.n.trigger (backbone.min.js?ver=1.4.0:2)

    and no massages displayed.

    Help, please.

    webcomon
    Participant

    When a post is added under “Activity” tab, it would be very helpful to send an auto email notification to pre-selected members.

    How to send an auto email notification to pre-selected group members when a post is added under “Activity” tab?

    Below is the required info/link
    WordPress version version 5.4.2
    BuddyPress version Version 6.1.0
    Link to my site esCanada.org

    tatiana_k
    Participant

    The previous buddypress theme used actions, for example do_action( ‘bp_after_profile_content’ ).
    Now there’re hooks instead, for example bp_nouveau_xprofile_hook( ‘after’, ‘loop_content’ );

    And I cannot find any information how these hooks can be used.
    What function do I have to use instead of add_action now?

    share24
    Participant

    I installed BuddyPress today and registered a new account.

    When I tried to log in I get two errors in red boxes:

    ERROR: Authentication failed.
    ERROR: You have entered an incorrect reCAPTCHA value.

    I have tried resetting the password and it still didn’t work.

    On the reCAPTCHA, it’s the math version and I know the answers have been correct.

    Link: https://ohiovarsity.com/register/

    #312775

    In reply to: Changing Permalinks

    ayhanizmir
    Participant

    Thank you @vapvarun
    I will contact them asap

    But I guess “settings” are adjusting in BuddyPress; then how can I change that permalinks?

    and also when I change the permalinks which I mentioned in post in ChildTheme it works, but in normal theme it seems no effect. Why?

    Best regards,

    #312772
    mightykyr0
    Participant

    How do I add bbpress information to BuddyPress profile

    #312769
    facknrite
    Participant

    Hello i have this odd issue with buddypress. When i setup my site on my home server i was able to change my avatar and my cover image.

    After i move my site using duplicator plugin into my web server images can be uploaded you can see them but as soon as you refresh or go to a diferent page the avatar/cover image is back to the default one.

    I’m running nginx web server and i’m also using cloudflare.

    Any ideas?

    #312767

    In reply to: auto read notification

    Varun Dubey
    Participant

    there is a buddydev plugin BuddyPress Clear Notifications, you can use it

    #312756
    welsh10
    Participant

    Hi,

    I’m using BuddyPress – I have found a plugin that will delete posts before ‘x’ date. Although cant find a way of bulk deleting the media that was associated with that post.

    Is there any way of deleting images from the media library that are not attached to posts?

    Thanks

    #312747
    Varun Dubey
    Participant

    @jadedartist check with Youzer support, media is not part of BuddyPress.

    #312741
    Varun Dubey
    Participant

    @tarryntyler try to toggle ( enable/disable )group component if it’s still not working disable other plugins except BuddyPress to isolate possible plugin conflict.

    #312737
    tarryntyler
    Participant

    I just installed the child theme customizer for karuna the second time, and changed the colors only. this time when installing, the buddypress groups stopped working and giving error 404. I deactivated and reactivated both bb press and buddypress plugins, removed and added back group feature, but still cannot add or use them them even from within the admin session. using up to date buddypress noveau and plugins, and never had issues with groups before. website is dailyyogi.world

    danielafer
    Participant

    Hi, thanks for replying. I’m not as interested as having content or a private community. I am interested in not indexing all links generated by buddypress, such as mypage / members / juan
    I consider that these links do not generate any value for my site.
    With that code can I achieve this?

Viewing 25 results - 3,326 through 3,350 (of 69,016 total)
Skip to toolbar