MyBB Community Forums

Full Version: Profile Picture
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
(2017-03-31, 10:27 PM)Starpaul20 Wrote: [ -> ]Are you referring to the profile picture on the User CP profile picture page? If so that's by design (to prevent large pictures from breaking the layout). They should be the right size in the profile proper.

So no matter what, the image will always be resized to 200x200 (if larger)?
(2017-03-31, 10:56 PM)nollidnosnhoj Wrote: [ -> ]
(2017-03-31, 10:27 PM)Starpaul20 Wrote: [ -> ]Are you referring to the profile picture on the User CP profile picture page? If so that's by design (to prevent large pictures from breaking the layout). They should be the right size in the profile proper.

So no matter what, the image will always be resized to 200x200 (if larger)?

Yes, on the User CP page it'll always size down to 200 px.
(2017-04-01, 12:04 AM)Starpaul20 Wrote: [ -> ]
(2017-03-31, 10:56 PM)nollidnosnhoj Wrote: [ -> ]
(2017-03-31, 10:27 PM)Starpaul20 Wrote: [ -> ]Are you referring to the profile picture on the User CP profile picture page? If so that's by design (to prevent large pictures from breaking the layout). They should be the right size in the profile proper.

So no matter what, the image will always be resized to 200x200 (if larger)?

Yes, on the User CP page it'll always size down to 200 px.

Is the uploaded profile picture automatically resized down to 200px or do you mean it's uploaded at its original size and styled down to 200px?
(2017-04-01, 01:30 AM)Sharree Wrote: [ -> ]
(2017-04-01, 12:04 AM)Starpaul20 Wrote: [ -> ]
(2017-03-31, 10:56 PM)nollidnosnhoj Wrote: [ -> ]
(2017-03-31, 10:27 PM)Starpaul20 Wrote: [ -> ]Are you referring to the profile picture on the User CP profile picture page? If so that's by design (to prevent large pictures from breaking the layout). They should be the right size in the profile proper.

So no matter what, the image will always be resized to 200x200 (if larger)?

Yes, on the User CP page it'll always size down to 200 px.

Is the uploaded profile picture automatically resized down to 200px or do you mean it's  uploaded at its original size and styled down to 200px?

It's uploaded at it's original size and styled down to 200px (only on the User CP page, in profiles they will appear at original size).
There are many tutorials, user search. It is doable with custom profile fields and default MyBB settings
(2017-04-03, 05:12 PM)DaNnIbOi Wrote: [ -> ]Any chance of getting it, so it works like this?

[Image: 452332e706e67.png]

Go to the Profile picture template, remove the thead and tborder and just leave the variable in the template. Then go to your member profile template and create a cover sized background-image div box with the profile picture variable in the background-image url.
Plugin has been updated to 1.3.

- Sanitized usernames
- Ability to disallow remote profile pictures
- Use my_validate_url function
- Renamed profilepic to profilepicture
- Changed description input box to textarea
- Parse badwords in description
- Removed PHP closing tags
- Use THIS_SCRIPT for template caching
- Miscellaneous cleanup

To update, you must first deactivate the plugin (do not uninstall), upload all new files and reactivate.
Thank you!
Can you help me?

Fatal error: Call to undefined function my_validate_url() in .../www/inc/plugins/profilepic.php on line 805

I have MyBB 1.8.7, PHP Version 5.4.16 and Profile Picture 1.3

Edit:
I replaced my_validate_url($url) by filter_var($url, FILTER_VALIDATE_URL) and now it works, but I do not know if it's the right thing.
Are you running the latest version of MyBB? my_validate_url was a function added in 1.8.8.
Pages: 1 2 3 4 5 6