This topic has 7 replies, 3 voices, and was last updated 9 years by goncaloqueiroz.
-
Author
-
January 6, 2015 at 14:08 #41099mjyParticipant
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.January 7, 2015 at 21:59 #41190mjyParticipantOk… 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.January 7, 2015 at 22:16 #41191sharmstrModeratorSeems 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 CODEfunction 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 8, 2015 at 05:18 #41267mjyParticipantThanks 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.
January 8, 2015 at 05:40 #41268sharmstrModeratorPerhaps. 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 11, 2015 at 01:03 #41621goncaloqueirozParticipantmy 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.January 12, 2015 at 03:39 #41726goncaloqueirozParticipant{“error”:{“message”:”(#803) Some of the aliases you requested do not exist: 2147483647″,”type”:”OAuthException”,”code”:803}}
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.