MyBB Community Forums

Full Version: How to convert image .jpg?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
<div class="member_head" style="background-image:url(https://website.com/uploads/profilepics/profilepic_{$memprofile['uid']}.jpg);" >

I want to make a profile like a social media and I do it. I add cover photo system on my website. This sistem works using the custom profile field and members would add cover photo URL manually. I wanted to do this automatic.
When somebody upload a photo, picture uploads this way (uploads/profilepics/profilepic_userID.jpg) But if somebody has .png or other image format, I can't see cover photo because my image format is .jpg 
Is there a easy way to do this? Perhaps I can open .php file and add .png, .jpeg to .jpg because this file has convert size.
I use this plugin: https://community.mybb.com/mods.php?action=view&pid=127

I'm waiting your help. 

[attachment=43062][attachment=43063]
You can access the image from that plugin in profiles using {$memprofile['profilepic']}. It doesn't seem to be necessary to sanitize such variable.
(2020-07-17, 06:52 AM)Omar G. Wrote: [ -> ]You can access the image from that plugin in profiles using {$memprofile['profilepic']}. It doesn't seem to be necessary to sanitize such variable.

Thank you bro you solved it! I have a last question, can you help me? I changed all of 200x200 to 1500x1500 in .php (plugin) but nothing changed. When I upload image I see notice. Do you know that where can I change it?

[attachment=43065]
The plugin has a group permission or setting for that, use the setting instead of modifying the files.