musoaga
Forum Replies Created
-
Forum: Plugins
In reply to: [weDocs - Knowledgebase, Documentation, and Wiki Plugin for WP] Images brokenThanks for your answer, you are right, that is why we already contacted you and created a ticket on 25th July. We appreciate your support.
Oh thanks… issue solved. Did not see that option.
Hi, yes without buddypress
Thanks!
Actually I realized that I explained the problem a bit wrong. I didn’t used
get_avatar()
on other site, I usedget_avatar_url()
.Maybe
get_avatar()
don’t work, because the doc page of WP User Avatar Plugin says, you should useget_wp_user_avatar()
instead ofget_avatar()
. I think the problem is the plugin, not your code. My solution is not efficient at all, on your next update it will be overridden ??Hi, yes without BuddyPress
solved by changing code in vendor->buddypress->functions.php the bp_core_fetch_avatar() function
from
if( $params['html'] === false ){ return get_avatar_url($params['item_id'], ['size' => 50]); } else { return get_avatar($params['item_id'], 50); }
to
if( $params['html'] === false ){ return get_wp_user_avatar_src($params['item_id'], ['size' => 50]); } else { return get_wp_user_avatar($params['item_id'], 50); }x
Using the WP User Avatar Plugin
Works now with
$user_info->user_nicename
. Actually tried that yesterday. Anyway… Thanks!I contacted you via plugin menu, but found after that the problem..
The problem was a “dot” in the user name like: “user.name”
Dont know if it is a bug, but would be nice, if this also works with dots.
Tried with user_nicename, but same problem. I really dont know, whats the problem is. I think I will try to fill the input manually in my PHP file where I show the message page
No, it prints the right user nicename. Actually the code is not the problem. Even if I type the URL with parameters manually in the browser, the “send to” input is not filled :/
My URL looks like this:
https://mysite.de/mein-konto/messages/?new-message&to=user.name
The PHP:
$userId = get_post_field('post_author', $postID); $user_info = get_userdata($userId); $link_to_new_message_screen = get_site_url() . '/mein-konto/messages/' . '?new-message&to=' . $user_info->user_login;
Thanks for quick support!
echo BP_Better_Messages()->functions->get_page();
worked for me- This reply was modified 3 years, 10 months ago by musoaga.
Forum: Plugins
In reply to: [WC Product Compare] Custom Compare PageI changed the file “wcpc_compare_data.php”…