Forum Replies Created

Viewing 40 posts - 841 through 880 (of 1,218 total)
  • Author
  • in reply to: Simple Modal markup is broken #51644
     sharmstr
    Moderator

    Works for me. Just needed to adjust the css

    COPY CODE
    
    #myModal {
      top: 0 !important;
    }
    
    #myModal:focus {
      outline: none;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    in reply to: Moving Profile Titles #51630
     sharmstr
    Moderator

    try this

    COPY CODE
    
    .profile dd {
      margin: 0 !important;
      padding-top: 0 !important;
    }
    
    .profile dt {
      float: none;
      text-align: left;
      margin: 0;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Image in Post Crop Issue #51589
     sharmstr
    Moderator

    Its already been fixed in the next update. Until then, use this

    COPY CODE
    
    #main-container .article-content {
      overflow: auto;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Disable default order menu in Shop #50938
     sharmstr
    Moderator
    COPY CODE
    
    
    form.woocommerce-ordering {
      display: none;
    }
    
    

    Select Right Sidebar Template in the page editor for your shop page. It will use the Shop Sidebar found in Appearance > Widgets.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: How to not gray-out closed topics #50818
     sharmstr
    Moderator

    Try this (change the color though)

    COPY CODE
    
    
    .status-closed p {
      color: red;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Group pages layout #50785
     sharmstr
    Moderator

    Here’s the function kleo uses to figure out how to display buddypress components. You can put it in your functions.php file and edit

    COPY CODE
    
    function kleo_bp_change_layout($layout)
        {
            global $bp;
    
            if (!bp_is_blog_page()) {
    
                $layout = sq_option('bp_layout', 'right');
    
                //profile page
                if (sq_option('bp_layout_profile', 'default') != 'default' && bp_is_user()) {
                    $layout = sq_option('bp_layout_profile', 'right');
                } elseif (sq_option('bp_layout_members_dir', 'default') != 'default'
                    && bp_is_current_component($bp->members->slug)
                    && bp_is_directory()
                ) {
                    $layout = sq_option('bp_layout_members_dir', 'right');
                } elseif (sq_option('bp_layout_groups', 'default') != 'default'
                    && bp_is_current_component($bp->groups->slug)
                ) {
                    $layout = sq_option('bp_layout_groups', 'right');
                } elseif (sq_option('bp_layout_activity', 'default') != 'default'
                    && bp_is_current_component($bp->activity->slug) && !bp_is_user()
                ) {
                    $layout = sq_option('bp_layout_activity', 'right');
                } elseif (sq_option('bp_layout_register', 'default') != 'default'
                    && bp_is_register_page()
                ) {
                    $layout = sq_option('bp_layout_register', 'right');
                }
    
            }
    
            return $layout;
        }
    
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: How to not gray-out closed topics #50765
     sharmstr
    Moderator

    Try this css

    COPY CODE
    
    #bbpress-forums .status-closed, #bbpress-forums .status-closed a {
      color: #367bb7;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: KLEO – Features Requests #50704
     sharmstr
    Moderator

    @hdavidsen: You can sort the profile tabs by dragging and dropping them. WP Admin > Users > Profile Fields > Click and hold a tab and drag it to the position you want.

    You can sort the profile nav menu using this function

    COPY CODE
    
    function my_change_profile_tab_order() {
    global $bp;
    
    $bp->bp_nav['settings']['position'] = 10;
    $bp->bp_nav['activity']['position'] = 20;
    $bp->bp_nav['friends']['position'] = 30;
    $bp->bp_nav['groups']['position'] = 40;
    $bp->bp_nav['blogs']['position'] = 50;
    $bp->bp_nav['messages']['position'] = 60;
    $bp->bp_nav['profile']['position'] = 70;
    }
    add_action( 'bp_setup_nav', 'my_change_profile_tab_order', 999 );
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Image not responsive. #50612
     sharmstr
    Moderator
    COPY CODE
    
    .container img {
    
      height: auto !important;
    
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Change Background Color of Add Cover Button #50606
     sharmstr
    Moderator

    I did before I answered. Did you try putting !important behind it?

    COPY CODE
    
    .buddypress div#item-header a.button {
    background-color: blue !important;
    color: pink !important;
    }
    
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Change Background Color of Add Cover Button #50458
     sharmstr
    Moderator

    Put this in your quick css

    COPY CODE
    
    .buddypress div#item-header a.button {
      background-color: red;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Cover photo width #50192
     sharmstr
    Moderator
    COPY CODE
    
    .bp-full-width-profile {
      max-width: 1280px;
      margin-left: auto;
      margin-right: auto;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Using Display Name instead of @username? #50074
     sharmstr
    Moderator

    He copied member-header.php to his child theme (its located in /kleo/buddypress/members/single). If you look at that file, the @ is on line 26. Delete it. Then change bp_displayed_user_mentionname to echo bp_core_get_user_displayname( bp_displayed_user_id() ).

    So the entire line should be

    COPY CODE
    
    <h4 class="user-nicename"><?php echo bp_core_get_user_displayname( bp_displayed_user_id() ); ?></h4>
    

    (sorry, hit submit before pasting all of the solution)

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: change pop out menu item #50073
     sharmstr
    Moderator

    You can change the icon by putting this in your child css and changing to whatever code you want.

    COPY CODE
    
    
    .icon-menu:before {
      content: '\e87a';
    }
    

    Adding the user avatar isn’t as easy and would take custom coding on your part that is beyond the scope of support here. But I can tell you you’ll have to copy the kleo_side_menu_button function to your child theme to display the avatar if the user is logged in. You can look at the kleo_menu_user_avatar for reference on one way to do that.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Blog page slider #50009
     sharmstr
    Moderator

    The blog page is just a placeholder for WordPress to do its magic. You’ll need to add it to the template.

    Copy /kleo/index.php to your child theme and add this line right below get_header()

    COPY CODE
    
    putRevSlider( "HomeFullwidth" );
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Chrome css background issue #49821
     sharmstr
    Moderator

    On my chrome the text isn’t white, but it might as well be 🙂

    COPY CODE
    
    #groups-sort-by option {
    color: red;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: page title and nav bar padding #49787
     sharmstr
    Moderator

    Turn of transparent menu.

    Try this css for the menu

    COPY CODE
    
    .navbar-nav li a {
    font-weight: bold;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Cover Profile Copy #49592
     sharmstr
    Moderator

    Okay, try this. Let me know if it works

    COPY CODE
    
    
    .sidebar div#message {
    position: relative !important;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Create group button not working #49494
     sharmstr
    Moderator

    Okay try this. Go to /kleo/buddypress/js/buddypress.js. Search for the “tabs and filters” section. Just under that you’ll see

    COPY CODE
    
    if ( jq(this).hasClass('no-ajax') )  {
    

    Change it to

    COPY CODE
    
    if ( jq(this).hasClass('no-ajax')  || jq( event.target ).hasClass('no-ajax') )  {
    

    Reminify your files and test.

    Let me know.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Hide submenu item buddypress and more… #49477
     sharmstr
    Moderator

    1 – You should ask the PMPro developers. kleo gives you some basic restriction options, but for restrictions that granular, you’ll have to custom code it.

    2 – You’ll need to translate it. https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    3 – You can filter them. Try this in your child theme and edit however you want.

    COPY CODE
    
    add_filter('kleo_pmpro_level_restrictions', 'my_custom_levels');
    
    function my_custom_levels() {
    $my_pay_settings = array (
        array(
            'title' => __('Members directory restriction','kleo_framework'),
            'front' => __('View members directory','kleo_framework'),
            'name' => 'members_dir'
        ),
        array(
            'title' => __('Restrict viewing other profiles','kleo_framework'),
            'front' => __('View members profile','kleo_framework'),
            'name' => 'view_profiles'
        ),
        array(
            'title' => __('Groups directory restriction','kleo_framework'),
            'front' => __('Access group directory','kleo_framework'),
            'name' => 'groups_dir'
        ),
        array(
            'title' => __('Group page restriction','kleo_framework'),
            'front' => __('Access to groups','kleo_framework'),
            'name' => 'view_groups'
        ),
        array(
            'title' => __('Site activity restriction','kleo_framework'),
            'front' => __('View site activity','kleo_framework'),
            'name' => 'show_activity'
        ),
        array(
            'title' => __('Sending private messages restriction','kleo_framework'),
            'front' => __('Send Private messages','kleo_framework'),
            'name' => 'pm'
        ),
        array(
            'title' => __('Restrict users from adding media to their profile using rtMedia','kleo_framework'),
            'front' => __('Add media to your profile','kleo_framework'),
            'name' => 'add_media'
        )
    );
    return $my_pay_settings;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Registration page customization #49475
     sharmstr
    Moderator

    You can put this in your child functions.php file.

    COPY CODE
    
    add_action('bp_before_register_page','my_registration_instructions');
    
    function my_registration_instructions() {
     echo 'put your instructions here';
    }
    

    However, if you dont like where it is placed on the page, then you’ll have to copy /kleo/buddypress/members/single/register.php to your child theme and add your text where you want it.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Kleo Activity Element Shortcode #49385
     sharmstr
    Moderator

    hmmm. then try

    COPY CODE
    
    #activity-stream ul {
    display: none;
    }
    
    

    or maybe even better would be

    COPY CODE
    
    div.activity {
    display: none;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    Try this

    COPY CODE
    
    .kleo-rounded-noborder {
    border-radius: 100%;
    border: none;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

     sharmstr
    Moderator

    No, you didnt. https://archived.seventhqueen.com/forums/topic/issue-displaying-image

    Copy the contents of the attached file and paste into your childs functions.php file. Also put this css in your child css file.

    COPY CODE
    
    kleo-rounded-noborder {
    border: none !important;
    }
    

    The css is off the top of my head. I cant remember the exact css I used. Let me know if it doesnt work.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    Attachments:
    You must be logged in to view attached files.
    in reply to: Getting White Page of Death after Installing Plugins #49200
     sharmstr
    Moderator

    Okay. Try turning on debugging in wp-config.php

    http://codex.wordpress.org/WP_DEBUG

    COPY CODE
    
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_DISPLAY', true);
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Mega Menu is not showing correctly #49197
     sharmstr
    Moderator

    Try deleting px

    COPY CODE
    
    .kleo-main-header .nav li.kleo-megamenu.mega-3-cols>.dropdown-menu {
    margin-left: 0 !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Randomize Portfolio Order #49190
     sharmstr
    Moderator

    You’ll have to edit the portfolio loop query to specify the rand parameter. Put this in your child theme

    COPY CODE
    
    function kleo_portfolio_items( $display_type = 'default', $title_style = 'normal', $columns = 4, $item_count = NULL, $pagination = "no", $filter = 'yes', $excerpt = 'yes', $img_width = '', $img_height = '', $category = '', $exclude_categories = array() ) {
    
            /* OUTPUT VARIABLE
            ================================================== */
            $portfolio_items_output = "";
            $count = 0;
    
            /* CATEGORY SLUG
            ================================================== */
            if ($category == "All" || $category == "all") {
                $category = '';
            }
            $category_slug = str_replace('_', '-', $category);
    
    
            /* PORTFOLIO QUERY
            ================================================== */
            global $post, $wp_query;
    
            if ( get_query_var('paged') ) {
                $paged = get_query_var('paged');
            } elseif ( get_query_var('page') ) {
                $paged = get_query_var('page');
            } else {
                $paged = 1;
            }
    
            if ( $exclude_categories == '' ) {
                $exclude_categories = array();;
            }
            $portfolio_args = array(
                'post_type' => 'portfolio',
                'post_status' => 'publish',
                'paged' => $paged,
                apply_filters( 'kleo_portfolio_cat_slug', 'portfolio-category' ) => $category_slug,
                'posts_per_page' => $item_count,
                'tax_query' => array(
                        array(
                            'taxonomy' => apply_filters( 'kleo_portfolio_cat_slug', 'portfolio-category' ),
                            'field' => 'id',
                            'terms' => $exclude_categories,
                            'operator' => 'NOT IN'
                        )
                    ),
               'orderby' => 'rand'    
            );
    
            $portfolio_items = new WP_Query( $portfolio_args );
    
    
            /* Class config
            ================================================== */
            $classes = '';
    
            $classes .= ' ' . $display_type . '-style';
    
            if ( $display_type == 'overlay' ) {
                if ( $title_style == 'hover' ) {
                    $classes .= ' anim-title';
                }
            }
    
            if ( $excerpt == 'no' ) {
                $classes .= ' hide-excerpt';
            }
    
            $classes .= ' per-row-' . $columns;
    
            /* IMAGE SIZE
             * Set global variables to be availabe in the portfolio template part
            ================================================== */
            if ( $img_width != "" && $img_height != '' ) {
                global $portfolio_img_width, $portfolio_img_height;
                $portfolio_img_width = $img_width;
                $portfolio_img_height = $img_height;
            }
    
            /* ITEMS OUTPUT
            ================================================== */
    
            if ( $filter == 'yes' ) {
                $portfolio_items_output = kleo_portfolio_filter( $category, $exclude_categories );
            }
    
            $portfolio_items_output .= '<ul class="portfolio-items responsive-cols kleo-masonry ' . $classes . '">'. "\n";
    
            while ( $portfolio_items->have_posts() ) : $portfolio_items->the_post();
    
                ob_start();
                get_template_part( 'page-parts/portfolio-masonry');
                $portfolio_items_output .= ob_get_clean();
    
                $count++;
    
            endwhile;
    
            wp_reset_postdata();
    
            $portfolio_items_output .= '</ul>'. "\n";
    
    
            /* PAGINATION OUTPUT
            ================================================== */
            if ($pagination == "yes") {
                $portfolio_items_output .= '<div class="pagination-wrap">';
                $portfolio_items_output .= kleo_pagination( $portfolio_items->max_num_pages, false);
                $portfolio_items_output .= '</div>';
            }
    
    
            /* FUNCTION OUTPUT
            ================================================== */
            return $portfolio_items_output;
        }
    
    
    

    Now, keep in mind that the function you’re copying is the heart and soul of portfolios and will probably be updated in future releases of Kleo. So make sure you always compare the newest function with the one in your child theme so that you get the latest changes. The only thing I added was ‘orderby’ => ‘rand’.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: wishlist error #49186
     sharmstr
    Moderator

    Turn off debugging in your wp-config.php file. Look for

    COPY CODE
    
    define('WP_DEBUG', true);
    

    and change it to

    COPY CODE
    
    define('WP_DEBUG', false);
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Forum breadcrumbs not visible #49134
     sharmstr
    Moderator

    I’m not positive, but none of the bbp_breadcrumbs return anything, so perhaps kleo is overriding it.

    The breadcrumb in the title uses kleo_breadcrumb();

    COPY CODE
    
    
    function kleo_breadcrumb($args = array())
        {
            if ( function_exists('bp_is_active') && !bp_is_blog_page() ) {
                $breadcrumb = new buddypress_Breadcrumb_Trail($args);
            }
            elseif (function_exists('is_bbpress') && is_bbpress()) {
                $breadcrumb = new bbPress_Breadcrumb_Trail($args);
            }
            else {
                $breadcrumb = new Breadcrumb_Trail($args);
            }
    
            return $breadcrumb->trail();
        }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Mega Menu is not showing correctly #49119
     sharmstr
    Moderator

    looks like whatever you are using to minify css files isn’t doing it in the correct order. You can try putting this in your child css

    COPY CODE
    
    .kleo-main-header .nav li.kleo-megamenu.mega-3-cols>.dropdown-menu {
    margin-left: 0px !important;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Kleo Activity Element Shortcode #49115
     sharmstr
    Moderator

    I almost posted that solution first, but then thought you might want users to be able to see that their update actually posted. If you hide that area and only show the form, there is not visual indication that their update was successful and they may do it multiple times. Maybe set it to only show 1 activity so they can at least see something. If you really want to hide it, try this.

    COPY CODE
    
    ul#activity-stream {
    display: none;
    }
    

    But make sure you put it in the css section for the page using VC (the gear icon, upper right of VC section). Dont put it in your child css or it will hide it for the entire site.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: few issues #48579
     sharmstr
    Moderator

    try this

    COPY CODE
    
    ul#menu-top-menu {
    background-color: rgba(256,256,256,0.7);
    }
    

    Get rid of that empty space and see if it fixes the issue. Put a gap below each column instead.

    Turn off title and info section at the page level. Go into page editor and scroll down to the Theme General Settings > Title Section

    I dont know what’s going on with your site and the animations. Could be any one of the customizations you’ve done. It doesnt happen by default: http://seventhqueen.com/themes/kleo/groups/

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: How to change color of caret #48552
     sharmstr
    Moderator

    regular menu

    COPY CODE
    
    
    .nav .caret:after {
    color: red !important;
    }
    
    .top-menu .caret:after {
    color: red !important;
    }
    
    

    transparent

    COPY CODE
    
    .navbar-transparent.on-dark-bg .navbar .navbar-nav .caret:after {
    color: red;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Primary menu hover #48364
     sharmstr
    Moderator
    COPY CODE
    
    
    .kleo-main-header .nav > li.active > a, .kleo-main-header .nav > li > a:hover {
    box-shadow: none !important;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: display of the archive article with ACF fields #48353
     sharmstr
    Moderator

    Look at the lines above that. Specifically if ( !empty( $bg_video_args ) ) {. That’s going to return false if you didnt adjust the lines above that.

    COPY CODE
    
    if (get_cfield( 'video_mp4' ) ) {
    $bg_video_args['mp4'] = get_cfield( 'video_mp4' );
    }
    if (get_cfield( 'video_ogv' ) ) {
    $bg_video_args['ogv'] = get_cfield( 'video_ogv' );
    }
    if (get_cfield( 'video_webm' ) ) {
    $bg_video_args['webm'] = get_cfield( 'video_webm' );
    }
    
    

    None of those lines are looking for your ‘video’ field, right? So it will never try to execute the line you edited.

    Furthermore, did you adjust the first line in the video case? $video = get_cfield( ’embed’ ); That should probably be something like $video = get_field( ‘video’ );

    I suggest you hire someone who can read and understand the code.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Issue displaying image #48227
     sharmstr
    Moderator

    When something is filtered (changed), it doesnt matter who/what calls it. (http://codex.wordpress.org/Plugin_API/Filter_Reference) The results have already been changed by the time Kleo calls it. Furthermore, as shown in the code, kleo is calling bp_get_loggedin_user_avatar. That’s not a kleo function, that’s a Buddypress function.

    Have you discussed this with the plugin devs? We’ve illustrated that it only happens when people use their plugin to log in, correct?

    I’ll walk you through the issue with Social Login. Hopefully this will help you understand and assist you finding the issue with whatever plugin you’re using.

    As I’ve said, SL filters ‘get_avatar’. get_avatar is called by bp_get_loggedin_user_avatar.

    COPY CODE
    
    add_filter ('get_avatar', 'oa_social_login_custom_avatar', 10, 5);
    

    The filter calls ‘oa_social_login_custom_avatar’.

    COPY CODE
    
    /**
     * Hook to display custom avatars
     */
    function oa_social_login_custom_avatar ($avatar, $mixed, $size, $default, $alt = '')
    {
    	//The social login settings
    	static $oa_social_login_avatars = null;
    	if (is_null ($oa_social_login_avatars))
    	{
    		$oa_social_login_settings = get_option ('oa_social_login_settings');
    		$oa_social_login_avatars = (isset ($oa_social_login_settings ['plugin_show_avatars_in_comments']) ? $oa_social_login_settings ['plugin_show_avatars_in_comments'] : 0);
    	}
    
    	//Check if social avatars are enabled
    	if (!empty ($oa_social_login_avatars))
    	{
    		//Check if we have an user identifier
    		if (is_numeric ($mixed) AND $mixed > 0)
    		{
    			$user_id = $mixed;
    		}
    		//Check if we have an user email
    		elseif (is_string ($mixed) AND ($user = get_user_by ('email', $mixed)))
    		{
    			$user_id = $user->ID;
    		}
    		//Check if we have an user object
    		elseif (is_object ($mixed) AND property_exists ($mixed, 'user_id') AND is_numeric ($mixed->user_id))
    		{
    			$user_id = $mixed->user_id;
    		}
    		//None found
    		else
    		{
    			$user_id = null;
    		}
    
    		//User found?
    		if (!empty ($user_id))
    		{
    			//Override current avatar ?
    			$override_avatar = true;
    
    			//BuddyPress (Thumbnails in the default WordPress toolbar)
    			if (function_exists ('bp_core_fetch_avatar') AND function_exists ('bp_core_avatar_default'))
    			{
    				//Fetch the BuddyPress user avatar
    				$bp_user_avatar = bp_core_fetch_avatar (array ('item_id' => $user_id, 'no_grav' => true, 'html' => false));
    
    				//Do not override if it's not the default avatar
    				if (!empty ($bp_user_avatar) AND $bp_user_avatar <> bp_core_avatar_default ())
    				{
    					//User has probably upladed an avatar
    					$override_avatar = false;
    				}
    			}
    
    			//Show avatar?
    			if ($override_avatar)
    			{
    				//Read the avatar
    				$user_meta_thumbnail = get_user_meta ($user_id, 'oa_social_login_user_thumbnail', true);
    				$user_meta_picture = get_user_meta ($user_id, 'oa_social_login_user_picture', true);
    
    				//Use the picture if possible
    				if ($oa_social_login_avatars == 2)
    				{
    					$user_picture = (!empty ($user_meta_picture) ? $user_meta_picture : $user_meta_thumbnail);
    				}
    				//Use the thumbnail if possible
    				else
    				{
    					$user_picture = (!empty ($user_meta_thumbnail) ? $user_meta_thumbnail : $user_meta_picture);
    				}
    
    				//Avatar found?
    				if ($user_picture !== false AND strlen (trim ($user_picture)) > 0)
    				{
    					return '' . oa_social_login_esc_attr ($alt) . '';
    				}
    			}
    		}
    	}
    
    	//Default
    	return $avatar;
    }
    

    As you can see in the function, it changes the get_avatar call to return the following, no matter what arguments you supply.

    COPY CODE
    
    '' . oa_social_login_esc_attr ($alt) . '';
    

    The problem with this is that Kleo wants all the html stripped out so that it only receives the path to the file, not the img src tags. Since kleo doesnt get a path and gets the actual image html, it cant find the avatar and shows a default one instead.

    Again, talk to the devs and see if they filter get_avatar. Maybe something else is going on, but you should investigate this as an option.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: set Buddypress cover upload size limit to 1 MB #48001
     sharmstr
    Moderator

    @radu, Abe so kindly put a filter you can tap into

    COPY CODE
    
    
    add_filter('bpcp_max_upload_size', 'set_cover_upload_size');
    function set_cover_upload_size() {
    	return '1000';
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: How to reduce likes to one per IP #47987
     sharmstr
    Moderator

    I doubt this will be the final code, but you can try this.

    Go into theme options > misc and turn on dev mode. Then open up /kleo/assets/js/app.js. Around line 1081 you’ll see the likes function. After if(link.hasClass(‘liked’)) return false; add

    COPY CODE
    
    link.addClass('liked');
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Header Nav Active bar location #47807
     sharmstr
    Moderator

    and for the hover

    COPY CODE
    
    
    .kleo-main-header .nav > li > a:hover {
    box-shadow: inset 0px -2px 0px 0px #e5e5e5;
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    in reply to: Header Nav Active bar location #47806
     sharmstr
    Moderator
    COPY CODE
    
    
    .kleo-main-header .nav > li.active > a {
    box-shadow: inset 0px -2px 0px 0px #00b9f7;
    }
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 40 posts - 841 through 880 (of 1,218 total)

Log in with your credentials

Forgot your details?