Forum

Profile Picture plu...
 
Notifications
Clear all

Profile Picture plugin

19 Posts
8 Users
1 Likes
1,648 Views
(@fre2mansur)
Posts: 47
Member
Topic starter
 

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.

 
Posted : 01/09/2019 8:25 am
pokkus reacted
Defected
(@dftd)
Posts: 614
Honorable Member Admin
 

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

 
Posted : 17/09/2019 4:32 pm
(@sujit)
Posts: 3
New Member
 

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

 
Posted : 22/01/2020 8:24 pm
Defected
(@dftd)
Posts: 614
Honorable Member Admin
 

Probably a different hook...
Can you post your theme's user-profile.php?

Available for custom Osclass development. www.defected.dev

 
Posted : 22/01/2020 9:56 pm
Zero-Labs
(@zero-labs)
Posts: 82
Trusted Member
 

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.

 
Posted : 23/01/2020 12:11 am
(@sujit)
Posts: 3
New Member
 

Probably a different hook...
Can you post your theme's user-profile.php?

Here is the user-profile.php file of EVA theme.

 
Posted : 23/01/2020 12:44 am
Defected
(@dftd)
Posts: 614
Honorable Member Admin
 

[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

 
Posted : 23/01/2020 11:36 pm
Defected
(@dftd)
Posts: 614
Honorable Member Admin
 

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

 
Posted : 23/01/2020 11:42 pm
(@sujit)
Posts: 3
New Member
 

[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

 
Posted : 24/01/2020 2:22 am
(@adrianolmedo)
Posts: 48
Member
 

Wow, awesome!

 
Posted : 24/01/2020 3:57 am
(@scooter)
Posts: 5
Active Member
 

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.

 
Posted : 29/01/2020 1:10 pm
Zero-Labs
(@zero-labs)
Posts: 82
Trusted Member
 

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(); ?>">
 
Posted : 29/01/2020 3:43 pm
(@scooter)
Posts: 5
Active Member
 

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!

 
Posted : 29/01/2020 5:31 pm
Zero-Labs
(@zero-labs)
Posts: 82
Trusted Member
 

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]
 
Posted : 29/01/2020 7:38 pm
(@pixelpadre)
Posts: 10
Active Member
 

Probably a different hook...
Can you post your theme's user-profile.php?

cleared by admin

 
Posted : 01/05/2020 7:37 pm
Page 1 / 2
Share: