Osclass Support Forums
Osclass plugin support => Forums Osclass Plugin => Topic started by: Gerdnet on October 29, 2018, 01:09:27 AM
-
Hello! I have a question on the profile picture. Isn't it easier to make the profile on the forum automatically load the image from the main profile? Can anyone implement it?
-
Theoretically it is possible.
-
This is a good idea!
-
How to implement it yourself?
Since in version 137 for some reason the uploaded images are not displayed and they are not even in the avatar folder
-
@atba
That means you removed them.
Do you use built-in osclass avatar features?
-
I didn't delete anything. Tried to upload. The first one loaded. Then when you try to upload a new one, it's empty. In the inspector, there is a - (dash) in the image address after the last slash. And there's nothing in the folder. Yes, I use the profile pictures plugin.
The plugin of the latest version was installed without any modifications.
-
In that case I recommend to create ticket with your url, login (etc data) so team can reproduce it and check.
-
And if there is a solution, what would a profile photo on the forum use an image from the main account?
-
@atba
That is different requirement. Currently you complains that profile picture in forums is not being uploaded, so we should check this.
-
I reproduced the problem myself on different sites. The essence of the problem: when the avatar is loaded for the first time, the image is assigned a name in the form of today's date with an underscore at the end. Next, for example, I decide to upload a new avatar and it is again assigned the same name and as a result only the last character remains (underscore (_).
As a result, the avatar is not displayed accordingly
-
That is, an attempt to upload the second, third, and so on deletes the first image from the folder and a link to the image remains in the form: /oc-content/plugins/forums/img/avatar/_.png. Naturally, the avatar will not be displayed
-
And I also noticed. I failed to re-upload an image from the same profile yesterday. And today, the first time was successful, and the second time again does not come out. Conclusion? Everything is connected with the name that is assigned to the image in the form of a date. As soon as it has changed, that is, the next day it will be possible to upload a new image once. Like that.
-
Moreover, reloading this image, only say in .png format, will make it possible to display it, so the address will be different.... In general, I have explained everything to you. The problem is obvious and it is related to the address of the uploaded image
-
@atba
Thank you, we were able to reproduce.
Fix has been uploaded as version 1.4.0, moving also files to oc-content/uploads folder.
-
Excellent. I'll update it later, but I'm sure everything will be fine))) Thank you too ;)