Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'theme'

Viewing 25 results - 2,701 through 2,725 (of 32,013 total)
  • Author
    Search Results
  • #276756
    ajuuls
    Participant

    When i paste it into my theme’s functions.php file makes my site and says “Page not working”.. Dont know where to paste it.

    #276746
    Prashant Singh
    Participant

    Hi,

    Please paste the code in your child theme’s functions.php. If you do not have child theme then install this plugin https://wordpress.org/plugins/code-snippets/ and add a new snippet there and paste this code.

    add_action( 'template_redirect', 'ps_redirect_to_login' );
    
    function ps_redirect_to_login() {
    
    if ( is_page('members') && ! is_user_logged_in() ) {
    
      auth_redirect();
        }
    }

    Thanks šŸ™‚

    #276740
    gmbyrom
    Participant

    Hi all, I’ve created a long post under a group and it shows up with a “Read More” button on the group feed (for clarity I am not talking about the “Load More” button at the bottom of the group feed).

    The button appears non-functional even though mousing over it reveals a link to the correct post to open, I can right click this and open in a new browser tab, but the complete post should open in the current tab when clicked? Is this a bug or am I missing something here?

    I’ve tried disabling all plugins and reloading, to no avail. I’m using Nouveau.
    WP 4.9.8, BP 3.2.0, TwentySeventeen theme (child), http://lp.qc.to:15647/

    #276728

    In reply to: Please help….please!

    Prashant Singh
    Participant

    Hi,

    Please paste the following code in your child theme’s functions.php file:

    add_action( 'bp_before_directory_groups_list' ,'ps_add_image_before_groups');
    function ps_add_image_before_groups(){
    	echo "<img src='your_image_url_here'>";
    }

    If you do not have child theme just add this plugin https://wordpress.org/plugins/code-snippets/ and add a new snippet and paste this code there.

    Please remember to change ‘your_image_url_here’ with your image source URL.

    Thanks

    wettowel
    Participant

    Hey guys I need some help with php/buddypress.

    Im trying to create a custom member directory for my website that displays online users…I am very new to php, I have looked at the documentation but i don’t understand what i am doing wrong.

    Things i have done thus far:

    I created a new directory called “buddypress” in my theme (my theme is Divi), I then copied the “members” folder from buddypress and put a duplicate in my new “buddypress” folder within my theme. After that i renamed the “members-loop.php” file to “online-members-loop.php”, and created a new page called “online members”.

    I didn’t make any adjustments to the code at this point and tried to see if it worked… It did not, my online members page is still just blank. I then tried to edit some things within the “online-members-loop.php” file i now have. I changed “<?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) ) ) : ?>”

    to this: “<?php if ( bp_has_members( ‘type=online’ ) ) : ?>”

    I tried to load the page again annnnddd… nothing, nothing at all. It was at this point i knew i was doing something incredibly wrong because even before altering code, the members page didnt load anything.

    If anyone could help a newbie out i would greatly appreciate it šŸ™‚

    #276702
    ajuuls
    Participant

    Hello there! I’ve been searching for a code which actually works for me, and sadly, without any luck..

    I want to redirect the users from Member page to Login-page if they are not logged in. I can’t add it to my bp-custom.php because it does something weird to my theme so that php file is gone. So a function i can place in the functions.php or in the plugin “Custom CSS & JS” is the right solution. (Im using REIGN Theme)

    Thanks guys! Hopefully someone can help me.

    #276694
    Prashant Singh
    Participant

    ohh ok got that.

    /**
    * Buddypress Members masonry
    *
    *
    * @package WordPress
    * @subpackage K Elements
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since K Elements 1.0
    */
    
    $output = '';
    
    extract(
    shortcode_atts( array(
    'type' => 'newest',
    'member_type' => 'all',
    'number' => 12,
    'class' => '',
    'rounded' => "rounded",
    'avatarsize' => '',
    'width_height' => '',
    'online' => 'show'
    ), $atts )
    );
    //var_dump($avatarsize);
    
    $params = array(
    'type' => $type,
    'scope' => $member_type,
    'per_page' => $number
    );
    if ($rounded == 'rounded') {
    $rounded = 'rounded';
    }
    
    $avatarquery = '';
    if( $avatarsize == 'large' ) {
    $avatarsizewh = explode( 'x', $width_height );
    if( isset( $avatarsizewh[0] ) && isset($avatarsizewh[1] ) ) {
    $avatar_width = $avatarsizewh[0];
    $avatar_height = $avatarsizewh[1];
    $avatarquery = 'type=full&width='.$avatar_width.'&height='.$avatar_height.' ';
    }
    }
    
    if ( function_exists('bp_is_active') ) {
    
    if ( bp_has_members( $params ) ){
    
    ob_start();
    echo '<div class="wpb_wrapper">';
    echo '<div id="members-dir-list" class="members dir-list">';
    echo '<ul id="members-list" class="item-list row kleo-isotope masonry '.$class.'">';
    
    while( bp_members() ) : bp_the_member();
    
    echo '<li class="kleo-masonry-item">'
    .'<div class="member-inner-list animated animate-when-almost-visible bottom-to-top">'
    .'<div class="item-avatar '.$rounded.'">'
    .''. bp_get_member_avatar($avatarquery) . kleo_get_img_overlay() . '';
    if ($online == 'show') {
    echo kleo_get_online_status(bp_get_member_user_id());
    }
    echo '</div>'
    
    .'<div class="item">
    <div class="item-title">'
    .''. bp_get_member_name() . '
    </div>';
    
    echo "<div class=item-meta><p>".
    bp_member_profile_data('field=Expertise')."
    </p></div>";
    
    echo '<div class="item-meta">
    
    <span class="activity">'.bp_get_member_last_active().'</span></div>';
    
    if ( bp_get_member_latest_update() ) {
    echo '<span class="update"> '. bp_get_member_latest_update().'</span>';
    }
    
    do_action( 'bp_directory_members_item' );
    
    echo '</div>';
    
    echo '<div class="action">';
    do_action( 'bp_directory_members_actions' );
    echo '</div>';
    
    echo '</div><!--end member-inner-list-->
    ';
    endwhile;
    
    echo '';
    echo '</div>';
    echo '</div>';
    $output = ob_get_clean();
    }
    
    }
    else
    {
    $output = __("This shortcode must have Buddypress installed to work.","k-elements");
    }

    Please try this code.

    Thanks

    #276692
    israel4lincelot
    Participant

    Does not work. I think it’s because de line I’m writing is within an echo already.

    Full code:

    <?php
    /**
    * Buddypress Members masonry
    *
    *
    * @package WordPress
    * @subpackage K Elements
    * @author SeventhQueen <themesupport@seventhqueen.com>
    * @since K Elements 1.0
    */

    $output = '';

    extract(
    shortcode_atts( array(
    'type' => 'newest',
    'member_type' => 'all',
    'number' => 12,
    'class' => '',
    'rounded' => "rounded",
    'avatarsize' => '',
    'width_height' => '',
    'online' => 'show'
    ), $atts )
    );
    //var_dump($avatarsize);

    $params = array(
    'type' => $type,
    'scope' => $member_type,
    'per_page' => $number
    );
    if ($rounded == 'rounded') {
    $rounded = 'rounded';
    }

    $avatarquery = '';
    if( $avatarsize == 'large' ) {
    $avatarsizewh = explode( 'x', $width_height );
    if( isset( $avatarsizewh[0] ) && isset($avatarsizewh[1] ) ) {
    $avatar_width = $avatarsizewh[0];
    $avatar_height = $avatarsizewh[1];
    $avatarquery = 'type=full&width='.$avatar_width.'&height='.$avatar_height.' ';
    }
    }

    if ( function_exists('bp_is_active') ) {

    if ( bp_has_members( $params ) ){

    ob_start();
    echo '<div class="wpb_wrapper">';
    echo '<div id="members-dir-list" class="members dir-list">';
    echo '<ul id="members-list" class="item-list row kleo-isotope masonry '.$class.'">';

    while( bp_members() ) : bp_the_member();

    echo '<li class="kleo-masonry-item">'
    .'<div class="member-inner-list animated animate-when-almost-visible bottom-to-top">'
    .'<div class="item-avatar '.$rounded.'">'
    .''. bp_get_member_avatar($avatarquery) . kleo_get_img_overlay() . '';
    if ($online == 'show') {
    echo kleo_get_online_status(bp_get_member_user_id());
    }
    echo '</div>'

    .'<div class="item">
    <div class="item-title">'
    .''. bp_get_member_name() . '
    </div>

    <div class="item-meta"><p">
    <?php echo bp_member_profile_data('field=Expertise'); ?>
    </p></div>

    <div class="item-meta">

    <span class="activity">'.bp_get_member_last_active().'</span></div>';

    if ( bp_get_member_latest_update() ) {
    echo '<span class="update"> '. bp_get_member_latest_update().'</span>';
    }

    do_action( 'bp_directory_members_item' );

    echo '</div>';

    echo '<div class="action">';
    do_action( 'bp_directory_members_actions' );
    echo '</div>';

    echo '</div><!--end member-inner-list-->
    ';
    endwhile;

    echo '';
    echo '</div>';
    echo '</div>';
    $output = ob_get_clean();
    }

    }
    else
    {
    $output = __("This shortcode must have Buddypress installed to work.","k-elements");
    }

    #276684
    israel4lincelot
    Participant

    Hi!

    I’m having some hard time with the following:

    I want to place my profile avatar (item-header-avatar) from the header to the left from my item-nav and eventually delete the header section.

    I’m editing the member-header.php file through my child-theme ( using Kleo-theme ). I thought it would be as easy as copying the div from item-header-avatar and pasting it after <ul class=”responsive-tabs”> but after loading the webpage it does not work.

    So my code looks like this:


    <?php

    /**
    * Fires after the display of a member's header.
    *
    * @since 1.2.0
    */
    do_action( 'bp_after_member_header' ); ?>

    <?php if ( sq_option( 'bp_nav_overlay', 0 ) == 1 ) : ?>
    <div id="item-nav">
    <div class="item-list-tabs no-ajax" id="object-nav" aria-label="<?php esc_attr_e( 'Member primary navigation', 'buddypress' ); ?>" role="navigation">
    <ul class="responsive-tabs">
    <div id="item-header-avatar" class="rounded">
    ">

    <?php bp_displayed_user_avatar( 'type=full' ); ?>


    <?php do_action('bp_member_online_status', bp_displayed_user_id()); ?>
    </div><!-- #item-header-avatar -->

    <?php bp_get_displayed_user_nav(); ?>

    <?php

    /**
    * Fires after the display of member options navigation.
    *
    * @since 1.2.4
    */
    do_action( 'bp_member_options_nav' ); ?>

    </div>
    </div>
    <!-- #item-nav -->
    <?php endif; ?>

    Thankyou!!

    Prashant Singh
    Participant

    Hi,

    You can put code like this:

    function buddypress_notifications_layout() {
    	global $bp;
    	if ('notifications'== $bp->current_component){
                  wp_enqueue_script('test', 'http://example.com/wp-content/themes/twentyfifteen- 
                  child/js/test.js', array('jquery'), '1.0', true);
            }
    }
    add_action('wp_enqueue_scripts', 'buddypress_notifications_layout');

    Thanks

    mutoha
    Participant

    For example,
    This code will be launched in before loading “Profile Page”.

    function buddypress_profile_layout() {
    	global $bp;
    	if (BP_XPROFILE_SLUG != $bp->current_component) return false;
    	wp_enqueue_script('test', 'http://example.com/wp-content/themes/twentyfifteen-child/js/test.js', array('jquery'), '1.0', true);
    }
    add_filter('wp_enqueue_scripts', 'buddypress_profile_layout');

    But,
    I want a code that launched in after loading ā€œNotifications pageā€.

    Would you mind teaching me how to do that?

    Thanks.

    #276664

    In reply to: Child-theme style.css

    shanebp
    Moderator

    buddypress\bp-themes\ is deprecated any only included for legacy installs.

    Your child theme structure seems okay.
    But try using the register templates from here buddypress\bp-templates\bp-legacy\buddypress\members\ in your child theme.

    #276663
    envis
    Participant

    I have tried to add BuddyPress to my child-theme.
    My object is to change the layout of the register and activate form.

    So I have created the following folder structure:
    \wp-content\themes\child-theme\buddypress\members\

    In this folder I placed two files:
    index-register.php = same content as \wp-content\plugins\buddypress\bp-themes\bp-default\registration\index-register.php
    index-activate.php = same content as \wp-content\plugins\buddypress\bp-themes\bp-default\registration\index-activate.php

    This seems to work, but the layout of the forms is completely wrong, all input boxes are not aligned etc. So then I checked this forum and saw that it might be a good idea to import a stylesheet from buddypress in the child-theme folder.
    So I added the following line to \wp-content\themes\child-theme\style.css

    @import
    url( ../../plugins/buddypress/bp-themes/bp-default/_inc/css/default.css );

    This fixes the aligning problem, but totally destroys the full width layout of the site.
    The sidebard is destroyed and the background color is wrong etc. etc.

    Is there a way to edit the register and activate form with only overrides, and leave the default styling in tact?

    Any help appreciated!

    #276662
    casper99
    Participant

    Same problem here.
    And: I won’t get an ajax recommendation by entering @username in the field with bp-nouveau.

    It seems to be a problem with the “bp-nouveau” theme.
    With the old standard-theme, it works!

    BuddyPress 3.2.0
    WordPress 4.9.8

    #276658
    heikesworld
    Participant

    Hello
    I would like to restrict the visibility of the following tabs to only be visible to the logged in member:
    Activity – Favorites
    Activity – Friends
    Favorites – Groups
    Forums – Favorites

    To me it doesn’t really make sense that I can see the activity of other members friends, their favorites and the activity of groups that I have not yet joined.
    I read here https://codex.buddypress.org/themes/bp-custom-php/ that I can create a bp-custom.php file which I did. Now I only need the code to hide those fields form everyone except the member him/herself.
    Thank you very much!

    aldorr
    Participant

    You can try placing this in the functions.php of your Child Theme. Though for buddypress you might want to use bp_get_profile_field_data instead of xprofile_get_field_data.
    I’m trying to do something similar, but the fields are not showing up in my email. I have a feeling the email is getting sent before the database is updated, but for the life of me, I can’t get them… Good luck!

    #276623
    r-a-y
    Keymaster

    You’re using the Kleo theme. Can you try another theme to see if it is a problem with Kleo?

    Same report here – https://buddypress.org/support/topic/bp-registration-page-preventing-new-signup-from-same-ip-address/

    r-a-y
    Keymaster

    Looks like the same problem as this user:

    register problem in mobile

    That user is also using the Kleo theme.

    What happens when you change your theme to something else like Twenty Seventeen or another WordPress default theme?

    #276605
    Layo_BCN
    Participant

    Hi,

    We have already been changing to the WordPress theme and the same thing happens, when you finish entering the data in the registration and registration update fields, the page is reloaded and loads the same registration page with the fields already completed just missing the password. , and it is put back and repeated in bukle.

    He also tested on another web that we have with another theme and deactivating all the plugins and still presenting the same error.
    Ā 
    in the Main web we use BuddyPress Version 3.2.0 and in the other one that we have tested we have Version 3.1.0

    I hope I can solve the situation for elelvamso two weeks without receiving user registrations since our potential partners are always conceded by the mobile and we usually receive more than 10 weekly registration.

    So it is URGENT that you can register to BuddyPress by mobile device.

    nicocauxseineagglo
    Participant

    WP 4.8.9 / BP 3.2.0

    Hello

    I am developing an Intranet site for my business with WordPress and the theme Woffice (including BuddyPress). I’d like to create a members page by retrieving the information from the active directory as cover options. I absolutely can’t make the connection between the two. With the plugin “LDAP/Active Directory Login for Intranet sites ” (miniorange), I can retrieve fields like name, e-mail, telephone, mobile phone, … How do I bring up this information?

    Thanks in advance!

    #276562
    heikesworld
    Participant

    Hello,
    Currently clicking the “message” button to send a private message to another user takes me to Inbox and I have to click on the “Compose” tab (Note: the text “Inbox” says active!) and remember the username that I want to sent the message to.
    https://prnt.sc/kuccn7
    https://prnt.sc/kucd2g
    SHOULD BE: Click on direct message takes me directly to compose with user name filled in.

    My theme creator said this gets fixed by updating to BuddyPress 3.2, however I did and the problem persists.
    Thank you for your help.

    ngoegan
    Participant

    I’m running WP 4.9.8 with the Twenty Twelve theme on my site http://www.charlottemasoneducation.org
    All plugins are updated.

    Plugins:

    Akismet Anti-Spam
    bbPress Version 4.0.8
    BP Registration Options Version 2.5.14
    BP xProfile Location Version 4.3.5
    BuddyPress Version 1.6
    BuddyPress Activity Plus Version 3.1.0
    BuddyPress Activity ShortCode Version 1.6.4
    BuddyPress Edit Activity Version 1.1.5
    BuddyPress Group Email Subscription Version 1.0.9
    BuddyPress Groups Extras Version 3.8.2
    InfiniteWP – Client Version 0.3.0
    Remove Dashboard Access Version 3.4.1
    The Events Calendar Version 1.0.2
    W3 Total Cache Version 1.4.2
    Widget Logic Version 0.9.7
    Wordfence Security Version 5.9.0
    WP SMTP Version 7.1.11 | By Wordfence | View details

    When I go to APPEARANCE > CUSTOMIZE > HOMEPAGE SETTINGS and choose Sitewide Activity as the home page, it causes a redirect loop on the homepage. While I’m logged in as admin, I can see the Sitewide Activity page by clicking on the home page, but anyone who is logged out, gets a “too many redirects” error.

    When I change the settings to REGISTER as the home page, logged in members are redirected to the MEMBER page after logging in.

    I have tried adding a redirect plugin and that breaks the site. I would really like members to land on the Sitewide Activity feed once they log in.

    Any help would be greatly appreciated. Thank you.

    #276556
    r-a-y
    Keymaster

    Could be caused by the Kleo theme. (Btw, that error log entry has nothing to do with the problem.)

    Does the mobile layout problem happen with another theme like Twenty Seventeen?

    #276544

    Nice, I didn’t know that the object could be passed in that way. Very cool indeed.

    Also, I checked the validatemethod, and I found the bp_email_validate filter that I can use to force it to fail the validation as well:

    https://github.com/buddypress/BuddyPress/blob/fe47890c1ab7e2cb24c005f1c35fb9c6c8c8ab7c/src/bp-core/classes/class-bp-email.php#L961

    From what I understand, I only need to swap the current value with my own WP Error to force it to fail validation and stop sending the BP Email, right? I think this could be a bit smoother for toggling BP Emails on and off via my plugin settings.

    Well, not I just need to track down all of those email tokens and we’re in business!

    Many thanks for all of your help @shanebp! It’s much appreciated.

    My goal with this plugin is to eliminate the need for BP users to have to purchase a theme coded for BuddyPress. And beyond that, it will add a ton of functionality designed to make starting and running a BP community a breeze.

    I should have my new BP plugin onto the WP Repo within the next 30 days or so. What do you think is the best way to spread the word to BP users?

    #276542
    mikelast
    Participant

    Hi guys,

    I used to be able to filter the search form html that appears on the group directory page, but I cannot figure out how to achieve the same result when using the new bp_nouveau theme.

    So far I have tried

    add_filter('bp_directory_groups_search_form', 'modifyGroupSearchForm', 10, 1);
    add_action('bp_directory_groups_search_form', 'modifyGroupSearchForm', 10, 1);

    But neither worked. What I need to do is find a way to pass the group_type parameter to the bp_ajax_querystring filter. Atm I have hard coded a select dropdown with the custom group types I created using bp_groups_register_group_type I am then using

    <select id="groupTypeSelect">
            <option>Select a group category</option>
    		<?php foreach ( $group_types as $group_type_slug => $group_type ) : ?>
                <option value="<?php echo esc_attr( $group_type_slug ); ?>"
                        data-group-type="<?php echo esc_attr( $group_type_slug ); ?>"><?php echo esc_attr( $group_type->labels['name'] ); ?></option>
    		<?php endforeach; ?>
        </select>

    to output the group types to the page, but I need a way to tie them back into the standard bp group search

Viewing 25 results - 2,701 through 2,725 (of 32,013 total)
Skip to toolbar