Jump to the post that solved this thread.
Not Solved [How To?] How to convert image .jpg?
#1
Not Solved
<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. 

       
Reply
#2
Not Solved
You can access the image from that plugin in profiles using {$memprofile['profilepic']}. It doesn't seem to be necessary to sanitize such variable.
Reply
#3
Not Solved
(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?

   
Reply
#4
Not Solved
The plugin has a group permission or setting for that, use the setting instead of modifying the files.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)