MyBB Community Forums

Full Version: Use avatar url not work
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
For test i tried use http://i.imgur.com/CpW5X2t.jpg in avatar, but not work.
Return error below:

[Image: WcObjrF.png]
i dont think its a bug... as the error states the problem is with the url... try this link http://s29.postimg.org/kzjvpj3xz/Cp_W5_X2t.jpg
I think this is a bug... you cannot use everything with http://xxx.yyy.xx/abc.jpg
(2014-07-20, 06:21 AM)mmadhankumar Wrote: [ -> ]i dont think its a bug... as the error states the problem is with the url...

But it is a perfectly valid image URL, you even managed to load it yourself to mirror it.
Does it works with 1.6? If so, likely a bug.
Works fine in mybb 1.6
(2014-07-20, 11:20 AM)Omar G. Wrote: [ -> ]Does it works with 1.6? If so, likely a bug.

yes works in 1.6...
i tried use this in this forum http://i.imgur.com/FxnXyqf.jpg and works fine
Yes, 1.8 bug
MyBB want to Copy the avatar to the local server but I think this site don't allow MyBB do this work.

I think there is an issue in "fetch_remote_file" function

I find the issue! Big Grin
line 2126 is wrong! bacause http://i.imgur.com/CpW5X2t.jpg != http://i.imgur.com/cpw5x2t.jpg

Please a moderator push it.

For fix:
in usercp.php
find:
		$mybb->input['avatarurl'] = my_strtolower(trim($mybb->get_input('avatarurl')));
		if(validate_email_format($mybb->input['avatarurl']) != false)
		{
Replace to:
		$mybb->input['avatarurl'] = trim($mybb->get_input('avatarurl'));
		if(validate_email_format($mybb->input['avatarurl']) != false)
		{
			$mybb->input['avatarurl'] = my_strtolower($mybb->input['avatarurl']);

(2014-07-20, 06:21 AM)mmadhankumar Wrote: [ -> ]i dont think its a bug... as the error states the problem is with the url... try this link http://s29.postimg.org/kzjvpj3xz/Cp_W5_X2t.jpg
but mybb use http://s29.postimg.org/kzjvpj3xz/cp_w5_x2t.jpg and this work in this site! Smile
It is working. Tested.
Pages: 1 2