Osclass Support Forums

Osclass plugin support => Free Osclass Plugins => Topic started by: David Beaudoin on January 26, 2021, 04:14:48 AM

Title: Avatar Plugin
Post by: David Beaudoin on January 26, 2021, 04:14:48 AM
Cannot download a profile picture from the Avatar plugin. I had to disable the function on the register page
Title: Re: Avatar Plugin
Post by: MB Themes on January 26, 2021, 08:40:08 AM
@David
What you want to download in plugin?
Title: Re: Avatar Plugin
Post by: David Beaudoin on January 26, 2021, 08:46:30 AM
I'm talking about plugin malfunction. I already have the avatar plugin
Title: Re: Avatar Plugin
Post by: MB Themes on January 26, 2021, 10:40:32 PM
In that case you must describe in detail what is problem and how to reproduce it.
Title: Re: Avatar Plugin
Post by: David Beaudoin on January 27, 2021, 05:50:38 AM
When you register on the site, you have the option to upload a profile picture. But the profile picture is not uploaded. The user is therefore obliged to update his avatar in his account.
Title: Re: Avatar Plugin
Post by: David Beaudoin on January 27, 2021, 05:51:47 AM
I do not know if it's clear...
Title: Re: Avatar Plugin
Post by: MB Themes on January 27, 2021, 08:47:55 AM
@David
Ok, in user profile it then works ok?
Title: Re: Avatar Plugin
Post by: David Beaudoin on January 27, 2021, 08:58:14 AM
Yes for profile pictures plugin in profil but avatar plugin is not functional
Title: Re: Avatar Plugin
Post by: MB Themes on January 27, 2021, 09:30:21 AM
@David
Ok I will check it once I got time.
Title: Re: Avatar Plugin
Post by: David Beaudoin on January 27, 2021, 09:37:56 AM
Thanks !
Title: Re: Avatar Plugin
Post by: David Beaudoin on March 26, 2021, 09:35:27 AM
Hello, is the avatar plugin functional now?
I saw that there had been an update
Title: Re: Avatar Plugin
Post by: David Beaudoin on March 26, 2021, 09:47:48 AM
No, it is still not functional...
Title: Re: Avatar Plugin
Post by: Дима Пупкин on September 28, 2021, 11:39:21 AM
I have the same problem as described above
Title: Re: Avatar Plugin
Post by: Дима Пупкин on September 28, 2021, 11:33:17 PM
there is another problem when the plugin is enabled, I can't delete users osclass v4.4.0
Title: Re: Avatar Plugin
Post by: Дима Пупкин on September 29, 2021, 12:16:05 AM
noticed that in the additional-methods.min.js file, the image format is written like this: png | jp?g | gif. in index.php on line 107 in png | jp?g format. should be in two places in one png format png | jpg | gif without the "?" between "jp?g"
Title: Re: Avatar Plugin
Post by: MB Themes on September 29, 2021, 07:56:09 AM
there is another problem when the plugin is enabled, I can't delete users osclass v4.4.0

If you open struct.sql, foreign key is not written properly and is blocking user removal:
Code: [Select]
    FOREIGN KEY (fk_i_user_id) REFERENCES /*TABLE_PREFIX*/t_user (pk_i_id)

Correct should be something like:
Code: [Select]
    FOREIGN KEY (fk_i_user_id) REFERENCES /*TABLE_PREFIX*/t_user (pk_i_id) ON DELETE CASCADE ON UPDATE CASCADE

Note that after change, you must reinstall plugin.
Title: Re: Avatar Plugin
Post by: Дима Пупкин on September 29, 2021, 05:36:08 PM
Found the reason, the photo in the profile is not displayed, I have a plugin installed for registration via social networks, when registering a user via social networks, there is no photo, how to put a stub "no avatar" Please help me solve the problem
Title: Re: Avatar Plugin
Post by: MB Themes on September 29, 2021, 09:10:38 PM
I suppose plugin does not feed these data from network and social plugin does not upload picture to avatar plugin.
Anyway it should show some default image and is definitely issue of plugin.
Title: Re: Avatar Plugin
Post by: Дима Пупкин on September 29, 2021, 10:07:17 PM
can you make sure that when a user is registered via social networks, he receives a picture "without an avatar"? and how to do it?.
Title: Re: Avatar Plugin
Post by: MB Themes on October 01, 2021, 02:50:46 PM
That is bit complicated and social networks plugins should handle it, but they will not do it definitely for all the profile pictures.
Better way is to update to osclass 4.3+ and rely on built-in profile pictures.
Title: Re: Avatar Plugin
Post by: Дима Пупкин on October 01, 2021, 11:01:49 PM
I do not want to receive images of users from social networks. I need an "avatar plugin" to install a "no avatar" stub when new users register via social media on the site. Could you help me with this please?
Title: Re: Avatar Plugin
Post by: MB Themes on October 03, 2021, 01:14:04 PM
I do not think I understand your question, but we've updated Avatar Plugin to v1.2.1, update, test and then let us know if something else is needed
Title: Re: Avatar Plugin
Post by: Дима Пупкин on October 03, 2021, 03:44:49 PM
I do not think I understand your question, but we've updated Avatar Plugin to v1.2.1, update, test and then let us know if something else is needed
You are simply the best developers! Thanks so much for your work, quick replies and quick fixes :)
Title: Re: Avatar Plugin
Post by: MB Themes on October 03, 2021, 07:25:19 PM
Ho ho hooo, marry xmas  ;D
Title: Re: Avatar Plugin
Post by: Дима Пупкин on October 19, 2021, 12:39:26 AM
In your personal account, when uploading a photo, you can upload any files, exe, php. how to make a restriction so that the user can only upload jpeg and png files