Quantcast
Browsing all 321 articles
Browse latest View live

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 Article


Reply 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 Article


Reply 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 Article

The “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 Article

Reply To: The “Register” url redirects to Home page

Never mind… Need to be logged to view register URL.

View Article


Reply 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 Article

Reply 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 Article

Reply 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 Article


Reply 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 Article


Reply 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 Article

Reply 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 Article

Reply 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 Article

Reply 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 Article


Reply 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 Article

Reply 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 Article


Reply 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 Article

Function _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 Article


Reply 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 Article

Reply 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

ihateapple

https://www.ihateapple.com/

View Article
Browsing all 321 articles
Browse latest View live