Profile Picture plugin
With this plugin, your users can add profile pictures either on registration or their dashboard.
Profile pictures can be cropped, rotated and resized using cropper.js.
Admin can change a user profile picture when editing the user.
Admin can set a default profile picture, size (in pixels) and quality (0-100) of uploaded pictures.
Profile pictures are shown in the users' table in administration.
Download : https://market.osclasscommunity.com/index.php?page=item&id=21
Thank you WEBmods, for sharing this beautiful plugin for our community.
A new version - 1.1.0 has just been released. It should add compatibility to more themes which still use Osclass default, old, jQuery.
Changes: Custombox instead of Bootstrap modal, added update support, new colors because why not. Improved JS over beta 2 to fix some console errors.
Available for custom Osclass development. www.defected.dev
Hi Patrik,
first of all thanks for the plugin.
I am using EVA theme with osclass community 3.9
I have installed this Profile Picture plugin. Every thing seems working good, except in User Dashboard. When a user logs in, Goes to Account Dashboard, There is no option displayed for Profile Picture plugin. Help
Probably a different hook...
Can you post your theme's user-profile.php?
Available for custom Osclass development. www.defected.dev
I'm using v1.1.1 of this plugin successfully but I did have to play some games with my item and search sidebars to get profile pics to show up there too, not just on the users own profile page. I also do not see any options for color or add photo on the registration screen. It ain't broke so I'm disinclined to "fix" it more.
Probably a different hook...
Can you post your theme's user-profile.php?
Here is the user-profile.php file of EVA theme.
[member=14]Bablu[/member] Try opening zo_profilepic/classes/ProfilePic.php and replacing:
osc_add_hook('user_profile_form', array(&$this,'userDashForm'));
with:
osc_add_hook('user_form', array(&$this,'userDashForm'));
Available for custom Osclass development. www.defected.dev
I'm using v1.1.1 of this plugin successfully but I did have to play some games with my item and search sidebars to get profile pics to show up there too, not just on the users own profile page. I also do not see any options for color
or add photo on the registration screen. It ain't broke so I'm disinclined to "fix" it more.
The helper is always the same, profilepic_user_url($uid) but you need to specify the user ID correctly.
To change the colors, you can edit zo_profilepic/assets/web/css/main.css. I maybe should include an option, but directly changing the CSS gives more flexibility.
Available for custom Osclass development. www.defected.dev
[member=14]Bablu[/member] Try opening zo_profilepic/classes/ProfilePic.php and replacing:
osc_add_hook('user_profile_form', array(&$this,'userDashForm'));with:
osc_add_hook('user_form', array(&$this,'userDashForm'));
Thanks Patrik,
Its working! The profile picture can be changed here in user dashboard ,
But shows default profile image at "Current profile picture"
chk attachment
Wow, awesome!
Hi, for me the plugin works fine when adding a picture in the user account update area, but the profile picture on the Public Profile does not change. It still shows the default profile picture. Bender Theme.
Hi, for me the plugin works fine when adding a picture in the user account update area, but the profile picture on the Public Profile does not change. It still shows the default profile picture. Bender Theme.
You need to modify user-public-profile.php. Change the line which reads
<img src="" http://www.gravatar.com/avatar/<?ph p" echo md5( strtolower( trim( osc_user_email() ) ) ); ?>?s=120&d=<?php echo osc_current_web_theme_url('images/user_default.gif') ; ?>" />
to
<img src=""<?php" echo profilepic_user_url(osc_user_id()); ?>" alt="<?php echo osc_user_name(); ?>">
Hi, for me the plugin works fine when adding a picture in the user account update area, but the profile picture on the Public Profile does not change. It still shows the default profile picture. Bender Theme.
You need to modify user-public-profile.php. Change the line which reads
<img src="" http://www.gravatar.com/avatar/<?ph p" echo md5( strtolower( trim( osc_user_email() ) ) ); ?>?s=120&d=<?php echo osc_current_web_theme_url('images/user_default.gif') ; ?>" />to
<img src=""<?php" echo profilepic_user_url(osc_user_id()); ?>" alt="<?php echo osc_user_name(); ?>">
Works perfectly. Thank you Sir!
I'm getting the following error from my shared server when attempting to create a new user account and attach a profile pic at the same time...
Not Acceptable!
An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.
After creating an account without a pic, I can go back and add the pic later. Pretty sure this can be solved with some code added to .htaccess?
Never mind. I found it.
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>{/code]
Probably a different hook...
Can you post your theme's user-profile.php?
cleared by admin