This topic has 7 replies, 3 voices, and was last updated 9 years by goncaloqueiroz.

  • Author
  • #41099
     mjy
    Participant

    Has anyone sorted out a Kleo native way to include both the user avatar and the members name in the menu?
    By default the “My Account” menu only displays a small avatar which does not present all that well and user testing has proved to me that it’s not intuitive for my audience. Perhaps my only option is to look at something BP Direct <enus which is now quite out of date and may not work (yet to check). Seems a pity that this relatively small change cannot easily added (even as a temporary child mod) directly in Kleo.

    #41190
     mjy
    Participant

    Ok… so BP Direct Menus does work at this stage but its code is fairly old.
    Given the modest nature of this particular change I would think it would be cleaner to have it built into Kleo.

    #41191
     sharmstr
    Moderator

    Seems a pity that this relatively small change cannot easily added (even as a temporary child mod) directly in Kleo.

    ? It took me all of 3 minutes to figure it out. I’d say that’s quite easy.

    COPY CODE
    
    
    function kleo_menu_user_avatar( $item_output, $item, $depth, $args ) {
    
            $output = '';
    
            if ( is_user_logged_in() ) {
    
                $url = bp_loggedin_user_domain();
    
                $attr_title = strip_tags( $item->attr_title );
    
                $output .= '<a title="' . bp_get_loggedin_user_fullname() . '">has_children && in_array($depth, array(0,1)) ? ' js-activated' : '' ) . '" href="' . $url . '" title="' . $attr_title .'">'
                    .  '<img /> 25, 'height' => 25, 'html' => false)) . '" class="kleo-rounded" alt=""> '. bp_get_loggedin_user_fullname();
    
                $output .= ( $args->has_children && in_array($depth, array(0,1))) ? ' <span class="caret"></span></a>' : '</a>';
    
                return $output;
            } elseif ( $args->has_children && in_array( $depth, array( 0, 1 ) ) ) {
                return $item_output;
            } else {
                return '';
            }
        }
    
    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

    #41267
     mjy
    Participant

    Thanks for that… still makes sense to me that it be incorporated into the core Kleo code base but this will do the trick for the immediate purposes.

    #41268
     sharmstr
    Moderator

    Perhaps. It is a good idea. But, you’re the first person to ask for it. Add to the feature requests thread to get the developers eyes on 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

    #41283
     mjy
    Participant

    Done

    #41621
     goncaloqueiroz
    Participant

    my website is miseenplace.pt
    my avatar (with facebook login) is not working even after follow this http://thechamplord.wordpress.com/2014/01/16/getting-the-facebook-app-id/

    Can you help me?

    Attachments:
    You must be logged in to view attached files.
    #41726
     goncaloqueiroz
    Participant

    {“error”:{“message”:”(#803) Some of the aliases you requested do not exist: 2147483647″,”type”:”OAuthException”,”code”:803}}

Viewing 8 posts - 1 through 8 (of 8 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?