dragonexpert / recentthreads

Adds a section to your index page for recent threads.
Other
8 stars 2 forks source link

Does not show the template "recentthread_last_avatar" if you are a guest #59

Closed Maria22s closed 3 years ago

Maria22s commented 3 years ago

Hello happy new year, there is a problem with your plugin. When you are invited it does not show "recentthread_last_avatar" it is empty, I do not know why it happens.

But if you are registered in the forum if it shows the template "recentthread_last_avatar"

When you are a registered user. image

When you are a guest image

I made modifications to the templates to improve their appearance. So use the default templates to test if it was that and no, it's the same! Thanks for your help friend!

dragonexpert commented 3 years ago

Do guests have permission to view avatars? Relevant Code

Maria22s commented 3 years ago

Guest permissions are by default. I don't know that I can be a friend.

Maria22s commented 3 years ago

I tried a fresh installation on my localhost and it's the same!

dragonexpert commented 3 years ago

I'll have to look into it.

dragonexpert commented 3 years ago

So after looking into this, it seems that guests do not ever get the permission for viewing avatars in posts. It is considered a User CP option. I don't force avatars to be displayed because some people might be viewing a forum using data or may be on a limited connection. If you absolutely want it on your forum, you would have to get rid of the && $mybb->user['showavatars'] part.

Maria22s commented 3 years ago

I did it and it worked wonderfully, Thanks friend you can close the thread. I should add an option for that it would be great, Greetings and thanks again