How do I display a single user’s avatar with just the username NOT user-id?
I would like to display the following information on any page using a shortcode and PHP code: Profile image/avatar (using separate shortcode) Bio/description (using separate shortcode) Please note: I...
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
Hi Where are you getting the username from? If this is to be displayed to visitors, then clearly it’s not the logged-in user. Should it show different info in different contexts, or it’s the same...
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
Hi @thinlizzie, Yes, that is correct. It won’t be from the logged-in user. Currently, I am pulling the username from a page url. The username is located at the very end of that url. Here is an example...
View ArticleThe “Register” url redirects to Home page
I have activitated buddypress on my website. But when I try viewing the register page it reverts to my home page?
View ArticleReply To: The “Register” url redirects to Home page
Never mind… Need to be logged to view register URL.
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
Try this for your avatar display. Your shortcode syntax would look like … [showavatar username=”johnsmith”] You can change width & height to your preference. function show_avatar ($atts) { $user =...
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
And if that works for you I will look at the profile info shortcode later.
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
Yes, it definitely works. The only issue I am having is with adjusting the width and height. When I change it from 50 to 80 within the PHP code, the image dimensions still appear to be 50px by 50px....
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
Assuming you have a Buddypress profile field for your users bio (in this case called ‘Description’), this will work. function show_description ($atts) { $user = get_user_by( 'login' ,...
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
Re. avatar size, not sure, you can try putting a span around your shortcode, give it a class and with CSS try to force the avatar size. Or you can add a class into the fetch_avatar array and try that...
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
Also re. Avatar size, first try adding ‘type = full’ into the array, should allow you to specify larger sizes, as below … return bp_core_fetch_avatar( array( 'type' => 'full' 'item_id' =>...
View ArticleReply To: How do I display a single user’s avatar with just the username NOT...
I forgot the comma above, should be a comma after ‘full’ , like so … return bp_core_fetch_avatar( array( 'type' => 'full', 'item_id' => $user->ID, 'width' => 80, 'height' => 80, ) ); }
View ArticleReply To: how to edit register page for buddypress?
To edit the BuddyPress registration page, you’ll need to customize the template file directly, as it doesn’t appear in the WordPress Pages menu. Go to your WordPress theme’s folder (preferably a child...
View ArticleReply To: Custom Theme Development
BuddyPress can be tricky to get into, but using a premade theme as a base is a great way to understand how things work. Once you get the hang of it, you can start building your custom theme around its...
View ArticleReply To: Custom Theme Development
Hi kstojchev125, BuddyX is an ideal theme for community and membership websites. It provides a solution to all kinds of communities. BuddyX
View ArticleReply To: The “Register” url redirects to Home page
Hi Make sure this checkbox is enabled https://prnt.sc/m4jhnQVOOkTb then flush this permalink setting.
View ArticleFunction _load_textdomain_just_in_time was called incorrectly
I’m getting the following PHP Notice: PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the buddypress domain was triggered too early. This is usually...
View ArticleReply To: Function _load_textdomain_just_in_time was called incorrectly
Are you using LocoTranslate? In this case this might be the issue. There was a lot of issues after the update to WordPress 6.7 regarding how the text got translated. It seems to have been fixed with...
View ArticleReply To: Function _load_textdomain_just_in_time was called incorrectly
Yes, I’m using Loco Translate. I have the latest version but I’m still seeing these messages. I will post the question on the Loco Translate support forum. Thanks for your help!
View Article