Osclass Support Forums

Osclass plugin support => Business Profile Plugin => Topic started by: abuzarkandwal on September 13, 2021, 10:15:42 AM

Title: logo png file
Post by: abuzarkandwal on September 13, 2021, 10:15:42 AM
what is the logic to upload logo or profile picture in png file why other format are ristricted
Title: Re: logo png file
Post by: MB Themes on September 13, 2021, 03:56:38 PM
@abuzarkandwal
Well, answer is because it was developed like that and this file type was selected as only one.
Title: Re: logo png file
Post by: abuzarkandwal on September 13, 2021, 04:08:27 PM
i want to allow all format like wall photo how to allow
Title: Re: logo png file
Post by: MB Themes on September 13, 2021, 04:14:39 PM
@abuzarkandwal
Take a look into user/profile.php
Code: [Select]
$allowed_extensions = array('png');
This change will require checking of proper functionality & fixing possible issues.
Title: Re: logo png file
Post by: abuzarkandwal on September 13, 2021, 04:18:40 PM
please tell me when i go to that file what to do I don't know coding i will copy past it
Title: Re: logo png file
Post by: MB Themes on September 13, 2021, 04:24:50 PM
@abuzarkandwal
Putting there any code, that require testing, and you have no clue about it, does not make much sense and you should not do modifications, if you do not know what is array.
Anyway, expected NEW code could be something like:
Code: [Select]
$allowed_extensions = array('png', 'jpg', 'gif', 'webp', 'jpeg');
Title: Re: logo png file
Post by: Sparky on November 23, 2021, 07:12:55 PM
This plugin needs modified as it is pretty useless for anybody using a cell phone making a business profile, since all cell phones emit a Jpg file. Most people are using cell phones these days, and developers should know that already. Only being able to install a Png image for a profile image is not good workman ship on development. Please Modify this plugin so normal people can make a business profile, that is what it was made for. I don't know of many normal people that know how to even take jpg image and covert it to png, or even business people. This plugin was made with out thoughts. My review.. 2 stars. Pretty worthless really. It takes to much work for a logo image.
Title: Re: logo png file
Post by: MB Themes on November 23, 2021, 07:15:23 PM
It is quite weird to base review on logo extension restriction, anyway thanks for feedback  ;)
Title: Re: logo png file
Post by: Sparky on November 23, 2021, 07:27:50 PM
 not weird, it's just useless plugin as it is my friend. All plugins should work using a phone regardless. This is the new world, were not back in the 80's or 90's  anymore.
Title: Re: logo png file
Post by: MB Themes on November 23, 2021, 08:28:59 PM
@Sparky
JPG/JPEG file extension you request is older than PNG extension.

PNG files use the file extension PNG or png and are assigned MIME media type image/png.[6] PNG was published as informational RFC 2083 in March 1997 and as an ISO/IEC 15948 standard in 2004.[1]

JPEG or JPG (/ˈdʒeɪpɛɡ/ JAY-peg) is a commonly used format for lossy compression for digital images, particularly for images produced by digital photography. ... The term "JPEG" is an initialism/acronym for the Joint Photographic Experts Group, which created the standard in 1992.
Title: Re: logo png file
Post by: Sparky on November 23, 2021, 10:57:56 PM
 It don't matter if it was made in 1940 , it's useless on a mobile phone. NOBODY can use it. NOBODY can make a business profile with it on a phone. It was a waste of money to me. It works all except for the logo image on a phone which is really important to members. If ya'll can make it convert Jpg file images to png images during upload , well it might work then.
Title: Re: logo png file
Post by: MB Themes on November 24, 2021, 08:30:59 AM
@Sparky
You started with history  ???

Please update your plugin to 1.4.0:
- Added option to upload gif, jpg, jpeg, webp images as icon & cover.
- Added option to remove icon & cover.
- Design adjustments.
- Removed legacy styles and fonts
Title: Re: logo png file
Post by: Sparky on November 24, 2021, 06:33:53 PM
 I'm old so history don't count anymore..  ;D , Thanks for the update.
Title: Re: logo png file
Post by: iiui awan on November 28, 2021, 09:45:58 PM
so you mean in new version we can upload jpg aa profile picture in business profile plugin
Title: Re: logo png file
Post by: MB Themes on November 28, 2021, 10:24:59 PM
Yes that is correct - jpg, jpeg, png, gif, webp.
Same set of extensions is available for cover image as well  8)