Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Dr Web on November 19, 2021, 12:39:56 PM

Title: Can't see my avatar
Post by: Dr Web on November 19, 2021, 12:39:56 PM
I was using the Core Theme and I could see my avatar in my messages as a visitor, and when I was logged in as admin.

Since I installed a new theme, I can see my avatar in my messages as a visitor, when I am not logged in, but when I am logged in as admin, I can't see it. I see only the standard image like you can see on the image attached.

Today I installed a test forum only to see if it would work, and it works perfectly.

I have no idea what I did to cause this.

Any ideas?

Title: Re: Can't see my avatar
Post by: Kindred on November 19, 2021, 12:43:50 PM
umm.....    since a default avatar is not part of core SMF 2.0.x, did you install a mod?
Title: Re: Can't see my avatar
Post by: Dr Web on November 19, 2021, 12:57:22 PM
No. I only installed the Like IPB Theme from Diego. And it was after this that this began to happen.

I asked Diego and he could not reproduce the error on his test forum, so I thought it was something related to SMF.

I attach a list of the installed mods. The three last ones were the optimus, alternate user posting and afguo, but, I am almost sure they were already installed before installing the new theme.

Edited: The image belongs to the IPB theme, it's called "noavatar". I deleted the image and now obviously Idon't see it but, also not my avatar.
Title: Re: Can't see my avatar
Post by: Aleksi "Lex" Kilpinen on November 19, 2021, 01:32:43 PM
If it's not a separate mod, and if that default image is included in the theme - It would be logical to assume the theme has a "default avatar" function within it, and that you should probably ask the theme author about this.
But to confirm - If you change back to the default theme, can you see your avatar? And are there no default avatars then for users without a custom avatar?
Title: Re: Can't see my avatar
Post by: Dr Web on November 19, 2021, 01:57:56 PM
I changed to the Core Theme, and than to default theme, and in both happens the same. I can see my avatar on my profile and in the message as a guest. As soon I login, I can't see in the message.

Now I remembered that a few days ago I deleted something related to the avatars. I don't know if it was on the admin panel or in the server, because I decided that the members would not use avatars, only me, but, now I don't remember what I deleted. I already looked in the trash folder in the server, but, I don't see there any folders or files related to avatars.

I already deleted my avatar a few times and uploaded again, and I have the same results. I see it on my profile but not in my messages. As guest, i see it.
Title: Re: Can't see my avatar
Post by: Shambles on November 19, 2021, 02:06:49 PM
Use the "View page source" option in your browser to see what's being inserted as html for your avatar image.

Additionally, right click where you expected your avatar to show and use the browser inspection tool to see if any console or network errors are being reported.
Title: Re: Can't see my avatar
Post by: Dr Web on November 19, 2021, 02:44:03 PM
The image on top was logged in as admin. The one at the bottom was as a guest. I only hid the domain.

Below are the warnings when I used the browser inspection tool logged in as admin.

No errors, only warnings.

QuoteThis page uses the non standard property "zoom". Consider using calc() in the relevant property values, or using "transform" along with "transform-origin: 0 0". teste
Request to access cookie or storage on "<URL>" was blocked because it came from a tracker and content blocking is enabled. 11
Some cookies are misusing the recommended "SameSite" attribute 2
Content Security Policy: Ignoring "'unsafe-inline'" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "https:" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "http:" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "'unsafe-inline'" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "https:" within script-src: 'strict-dynamic' specified
Content Security Policy: Ignoring "http:" within script-src: 'strict-dynamic' specified

Edited: Ok, looking at the code in these screenshots, I see that one is taking the image from the theme's images folder, and the other one from the attachments folder, but I don't see my avatar there.

Then I remembered that a few days I was looking at the database where I could clean the cache of pretty urls, and then I saw there something about the avatars and I think it was there that i deleted something. Maybe a table or tables? If it was there, can I find and restore deleted db tables?

No, I just compared both dbs and the one that I installed today looks equal. I am confused now.
Title: Re: Can't see my avatar
Post by: Dr Web on November 19, 2021, 03:55:33 PM
I tried now a default avatar that comes with SMF default theme, and it happens exactly the same as with my custom avatar.
Title: Re: Can't see my avatar
Post by: Dr Web on November 22, 2021, 05:06:24 AM
Any ideas about this? What may be the problem here? Like I said above, the default avatars are available, but when I chose one of them, it happens exactly the same in all three themes I have installed, default, core and LikeIPB.

Thanks
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 22, 2021, 11:48:38 AM
Quote from: Dr Web on November 19, 2021, 01:57:56 PMNow I remembered that a few days ago I deleted something related to the avatars.

Deleted what?  A file?  Some code in a file?  Unless you have a lot of customizations, best bet is to upload clean files and reinstall mods.

Title: Re: Can't see my avatar
Post by: Dr Web on November 22, 2021, 12:28:30 PM
Quote from: Sir Osis of Liver on November 22, 2021, 11:48:38 AMDeleted what?  A file?  Some code in a file?  Unless you have a lot of customizations, best bet is to upload clean files and reinstall mods.

Like I said, I am not sure anymore. It was not a file because I can't find anything related in the trash. A piece of code is unlikely because I would not do it by myself, as I do not have enough knowledge to just decide to delete some piece of code.

I have about 10 Mods and I am so sick of this that I do not have patience to uninstall and install everything again.

The screenshots I attached above with the page source code do not give any hints?
Title: Re: Can't see my avatar
Post by: Shambles on November 22, 2021, 02:57:32 PM
Interesting observation in your screenshots.

When seen as guest, 'class="avatar"' appears in the avatar <img> tag. When logged in, the class is suppressed.

Might be worth a ganders at your Display.template.php to see why this is happening.
Title: Re: Can't see my avatar
Post by: Dr Web on November 22, 2021, 03:09:38 PM
Quote from: Shambles on November 22, 2021, 02:57:32 PMInteresting observation in your screenshots.

When seen as guest, 'class="avatar"' appears in the avatar <img> tag. When logged in, the class is suppressed.

Might be worth a ganders at your Display.template.php to see why this is happening.

As this is happening in all three themes installed, Default, Core and LikeIPB , I will attach the three files.

I am using now the LikeIPB theme.

Thank you for looking into this.
Title: Re: Can't see my avatar
Post by: Dr Web on November 24, 2021, 01:36:16 AM
Bump.
Title: Re: Can't see my avatar
Post by: Dr Web on November 26, 2021, 09:55:14 AM
And another bump. Maybe I have more luck today and someone looks at the files and maybe can see if there is something wrong with them.
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 26, 2021, 12:25:53 PM
If it's happening in different themes that each have their own Display.template.php (Curve & Core), problem may be in Display.php.
Title: Re: Can't see my avatar
Post by: Dr Web on November 26, 2021, 02:21:47 PM
Thanks for the response. I attached here the display.php file.
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 26, 2021, 09:51:43 PM
File works fine in Curve and Core.  Logging any forum errors?  Server errors?  Have you tried clearing forum and browser cache?  Different browser?  Change cookie name?

Where did you get Like IPB theme?  Not finding it on theme site.

Title: Re: Can't see my avatar
Post by: Dr Web on November 27, 2021, 05:13:44 AM
Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMLogging any forum errors?

The only error that may be related to this issue is the one on the error2 attachment, but I already looked at SMF original files, and there isn't any cache/images file. However I have a few errors like this one on the error log.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMServer errors?

No server errors.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMHave you tried clearing forum and browser cache?

Yes, maybe 10 times, without success.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMDifferent browser?

Yes, I tried with Firefox, Chrome, Edge, Opera and Brave(a new one). Also tried several times, cleaned the cache, tried again, without success.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMChange cookie name?

This I didn't try because in things I do not understand, I don't touch. I didn't know I can change this.

Quote from: Sir Osis of Liver on November 26, 2021, 09:51:43 PMWhere did you get Like IPB theme?  Not finding it on theme site.

It's one of Diego Andrés Themes. You can find it here: https://demo.smftricks.com/index.php?theme=54
Title: Re: Can't see my avatar
Post by: Steve on November 27, 2021, 06:48:42 AM
Have you tried https://wiki.simplemachines.org/smf/Repair_settings.php/en ?

In addition to finding errors, it can be used to change the cookie name. I'd fix any errors it suggests ...
Title: Re: Can't see my avatar
Post by: Dr Web on November 27, 2021, 06:49:11 AM
Yes, already tried it too.
Title: Re: Can't see my avatar
Post by: Dr Web on November 27, 2021, 11:56:06 AM
Well, I wanted to run repair_settings.php again, and noticed that it didn't find any "Custom Avatar URL" neither "Custom Avatar Directory" as you can see on the screenshot attached. Is this normal when you try to run repair_settings.php on your forums?

Title: Re: Can't see my avatar
Post by: Dr Web on November 27, 2021, 12:25:22 PM
Well, I just thought that could be something related to my own profile, and I saw that I had checked "Do not show avatars from other users".

Obviously I checked this before, because it refers to the other users, not myself, but, I've unchecked this, and now I can see my avatar when I am logged in.

I think this setting is not working well.

Anyway the topic is solved. 
Title: Re: Can't see my avatar
Post by: Kindred on November 27, 2021, 01:18:45 PM
The setting is working just fine. If checked,  your screen view shows no avatars.
Title: Re: Can't see my avatar
Post by: Dr Web on November 27, 2021, 04:42:40 PM
No Kindred. The setting says "Do not show avatars from other users"

If it is from other users, we are not included, right? We are not "us" and the "others" at the same time.

The setting needs to say "Do not show avatars". Here are included all the avatars, our own avatar and the avatars from all the other users.

English is not my native language, but, I think this is pure common sense.
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 27, 2021, 05:16:59 PM
The text for that profile option in Curve and Core is 'Don't show users' avatars.'  It may be different in Like IPB, though I can't imagine why.
Title: Re: Can't see my avatar
Post by: Diego Andrés on November 27, 2021, 06:14:50 PM
It isn't, it's probably because any member option (unless specified) that didn't have a default value, would get stored twice in the table if using anything other than the default theme so any new themes can also pick that up as the default value.
He'd need to also check the option to reset and/or change member options for the themes in case other settings are also with unwanted values.
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 27, 2021, 06:17:59 PM
Quote from: Dr Web on November 27, 2021, 04:42:40 PMThe setting says "Do not show avatars from other users"

Then where is he seeing this?

Title: Re: Can't see my avatar
Post by: Diego Andrés on November 27, 2021, 06:19:21 PM
In the member options in Look and Layout
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 27, 2021, 06:23:39 PM
Member options in both Curve and Core are same as in Profile, both display 'Don't show users' avatars.'
Title: Re: Can't see my avatar
Post by: Diego Andrés on November 27, 2021, 06:26:37 PM
I didn't say they weren't  ???
User was using theme core so if he enabled that option on his profile it would've saved twice in _themes table because that's how it works if that setting is not defined for the default theme already. And so if he installed a new theme, the option would be checked because the default theme has that as the default value.
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 27, 2021, 06:30:08 PM
I understand that, but his complaint is the incorrect wording of the option, it must be different in Like IPB.
Title: Re: Can't see my avatar
Post by: Diego Andrés on November 27, 2021, 06:31:55 PM
Don't know what you mean really, I think he was talking about the translation in general
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 27, 2021, 06:39:30 PM
Quote from: Dr Web on November 27, 2021, 04:42:40 PMNo Kindred. The setting says "Do not show avatars from other users"

If it is from other users, we are not included, right? We are not "us" and the "others" at the same time.

The setting needs to say "Do not show avatars". Here are included all the avatars, our own avatar and the avatars from all the other users.

English is not my native language, but, I think this is pure common sense.
Title: Re: Can't see my avatar
Post by: Diego Andrés on November 27, 2021, 06:43:13 PM
All three of the themes say Don't show users' avatars.
Perhaps some of his language files were not up to date when he upgraded to 2.0.18
Title: Re: Can't see my avatar
Post by: Sir Osis of Liver on November 27, 2021, 06:55:34 PM
He must have misread it.  Anyway, problem is solved, so all is well.
Title: Re: Can't see my avatar
Post by: Dr Web on November 28, 2021, 10:35:58 AM
No, I didn't misread. I already know what was the problem. You guys are right, and I am right too.

It's a translation problem. I didn't say this before to not hurt anyone, but, I needed about a week to correct lots of files of the Portuguese language package. And now I lost about a week to find a "bug" that after all is not a bug.

Who translated SMF 2.0 to Portuguese, it was better to have been quiet and not have done anything, not to do the s*** they did.

Clearly at least some of the people who translated the files, do not speak correct Portuguese or are ignorant, and the person responsible for controlling everything is not competent to do this job.

So this is not a Theme problem, BTW I take the opportunity to say that the LikeIPB theme is an excellent Theme, and Diego gave me great support to put everything as I wanted and correct some mistakes.

He even helped me fix things that didn't have to do with the theme, but with other Mods. Diego, thank you very much.

Ok, so now I wil attach a few screenshots so you see what is wrong.

Attachment 1. You can see what I had checked before, and that's why I was not seeing my avatar when logged in. Clearly it says there
QuoteNão mostrar os avatars dos outros utilizadores.

I believe you guys don't speak Portuguese so go to google translate https://translate.google.com/ and see for yourselves what is the translation. See attachment 2, and you can see that clear says other users's avatars. So not my own avatar.

The person didn't even traslate the word "avatars" correctly, that in Portuguese is "avatares" with an e.

But not only this is incorrect. On the attachment 1 you can see that it says
QuoteNão mostrar as assinaturas dos outros utilizadores.
This is also incorrect. See also attachment 3.

I uploaded the Profile.portuguese_pt-utf8.php file, and you can verify that the errors are there. Please see also attachment 4.

And finally see atatchment 5 of the profile.english file, and you can confirm that what is written in English is what you guys say, but it is not what is translated to Portuguese.

The smf_2-0-18_portuguese_pt-utf8 language package is just a big piece of trash. It is full of errors, because Portuguese language has many accents, like ´ ` ~ ^ and every time there is a word with of one of these accents, what is there is something like this: %&$&

So I needed about a week to read many english files from the top to the bottom, and correct there directly all the errors, to not lose much time correcting the entire language package, and translate lots of big pieces that were not translated on the portuguese files, that were still in English.

I am a native 54yo Portuguese, speak my language perfectly and in the beginning of my work career, I was a Portuguese teacher, so I know what I am talking about. What is there is trash.

To give back to the community, I already began to translate SMF 2.1 this week on Crowdin, and I will help as much as possible. I saw that the person responsible for the Portuguese language is a guy with a Polish name. Clear he is incompetent to do this job, because it is very clear that he didn't correct anything. So fire the guy.

If you want a clean and 100% correct Portuguese language package for SMF 2.1 version, I volunteer to do the job. It's up to you guys that have the power to decide this.

And I apologize for taking your time with this issue that was not an issue.

Have a great Sunday.
Title: Re: Can't see my avatar
Post by: Diego Andrés on November 28, 2021, 02:25:01 PM
You can contribute to the translation for 2.1 via Crowdin, it's easy to use.
https://www.simplemachines.org/community/index.php?topic=577121.0
Title: Re: Can't see my avatar
Post by: Dr Web on November 28, 2021, 04:11:19 PM
Like I said above, I already began this week. I already translated about 100 files.
Title: Re: Can't see my avatar
Post by: d3vcho on November 29, 2021, 03:10:27 AM
Quote from: Dr Web on November 28, 2021, 10:35:58 AMClearly at least some of the people who translated the files, do not speak correct Portuguese or are ignorant, and the person responsible for controlling everything is not competent to do this job.

[...]

I saw that the person responsible for the Portuguese language is a guy with a Polish name. Clear he is incompetent to do this job, because it is very clear that he didn't correct anything. So fire the guy.

That's not the responsible for the Portuguese language. That's Dzonny and is our current Lead Localizer. He doesn't speak Portuguese and he doesn't need to to be an excellent leader of the localization team. In fact, we don't have a responsible for the Portuguese language.

When we receive an application to become a translator for a certain language, we evaluate it with what we know. Sometimes, we ask for other translators/mods/whatever about the quality of the translation we received. We also check if the user has been active in the language board of the language he's applying for.

Quote from: Dr Web on November 28, 2021, 10:35:58 AMI believe you guys don't speak Portuguese so go to google translate https://translate.google.com/ and see for yourselves what is the translation.

No, we don't speak Portuguese and no, that's not how we do things here. We've never encouraged the use of automated tools to translate the strings. They are imprecise and lack context.

Furthermore, you used a couple of times the word "responsible". Yes, we (the localization team) are responsible for trying to maintain a good quality in all our translations. But this is not realistic. We have our personal lifes and we can't check one by one all the strings for all the languages in the platform with an automated tool to see if they make sense or not, and as I said, automated tools are imprecise and therefore we would be, as well.

Once we accept an user as a translator, we have to be confident that this user is going to be fair and that he's going to submit quality translations. Among the team, we check the languages that we know. For example, Diego and me both speak Spanish. Sometimes, we've discussed about some wording in some strings. As for the rest of the languages, as I've said, it's senseless to do this without a native speaker.

Anyway, I appreciate all the work you're putting towards improving the Portuguese translations. I'm quite sure it's going to be really useful for the community given your knowledge and how much time you're spending on it. I would also appreciate if you refer to community members in a more polite way, since we are all here trying our best while we also deal with all the matters of our life.

If you want to keep talking about this or want/need more context, please, feel free to PM me so we stop posting here.
Title: Re: Can't see my avatar
Post by: Steve on November 29, 2021, 09:12:46 AM
Quote from: d3vcho on November 29, 2021, 03:10:27 AMIf you want to keep talking about this or want/need more context, please, feel free to PM me so we stop posting here.

In light of that ... locking.