Forum Replies Created
-
Another & better solution:
Replace:
$crop = bfi_thumb(get_site_url().(strpos($url,"http") !== false ? urlencode($url) : $url),$params);
by
$crop = bfi_thumb($url,$params);
and keep:
$return = '<img src="'.$crop.'" width="'.$size.'" height="'.$size.'" alt="'.$alt.'" class="modified avatar" />';
so now the image is cropped by bfi_thumb. I let the URL Encoding setting to “Disable”…
ok, now it’s your turn UserPro 🙂
in reply to: A bug with upgrade to version 2.12OK, as I don’t have any reply, I made some investigations and found a temporary solution, the problem coming from the bfi_thumb function.
In the file “hooks-filters.php”, I replaced in the following line:
$return = '<img src="'.$crop.'" width="'.$size.'" height="'.$size.'" alt="'.$alt.'" class="modified avatar" />';
$crop with $url as the $url was returning the correct path to the user profile thumbnail.
Now I have:
$return = '<img src="'.$url.'" width="'.$size.'" height="'.$size.'" alt="'.$alt.'" class="modified avatar" />';
This is a not a “good” solution as the profile thumbnail is not cropped anymore by the function bfi_thumb but it work temporally for displaying the profile thumbnail in the profile view and member-list view.
So, the problem is coming from this line:
$crop = bfi_thumb(get_site_url().(strpos($url,"http") !== false ? urlencode($url) : $url),$params);
Which in my case doesn’t give the good path for the profile thumbnail as explained above. Hope this can help and that a solution will be find soon…
As usual with UserPro we have to put hand in the code 🙁
in reply to: A bug with upgrade to version 2.12Will it be possible for you to have a look at it, here for example:
http://www.recyclart.org/profile/Neokentin/The problem is coming from the get_avatar function as in the code the link to the user thumbnail is good but not he link to the image src. It’s pretty clear in the code.
Thank you,in reply to: A bug with upgrade to version 2.12Hello,
I have the same problem with last version. I’ve done what you say (changing URL encoding and cleaning site cache) but the problem is still here.
The problem is with the path of the user thumbnail which is wrong, as for example the path of the missing thumbnail is : http://www.mysite.orghttp%3A%2F%2Fwww.mysite.org%2Fwp-content%2Fuploads%2Fuserpro%2F3%2F54634e93d3ad0.jpg
but the image is here: http://www.mysite.org/wp-content/uploads/userpro/3/54634e93d3ad0.jpgAny idea what to do ?
Thanks,PS: Just checked and when I click on the user thumbnail, it is well displayed with the good link as stated above (so with the good path) in the modal view.
in reply to: A bug with upgrade to version 2.12Hello,
Thanks for your reply but what you told me to do is not possible in a live website with lot of traffic….
Instead I found a solution, I added this into the custom css:button.userpro-icon-search.userpro-tip {
font-family: FontAwesome;
font-weight: 300;
line-height: 0px;
}button.userpro-icon-remove.userpro-clear-search.userpro-tip {
font-family: FontAwesome;
font-weight: 300;
line-height: 0px;
}font-family was at inherit by default, font-weight at 600 by default and line-height at 32px by default….
Maybe it could help…in reply to: Member List search iconsI forgot my website for you to see: http://www.1001pallets.com
in reply to: Allow guests to view other profiles not working