Special Avatar for Banned Members

Special Avatar for Banned Members 1.3.10

No permission to download
Fix incorrect usage of the banned avatar in some situations
  • Like
Reactions: imno007
There was a mistake in the extended DataWriter in 1.3.8. If you're already running 1.3.8 you can just upload the files to fix the problem.
This release mostly fixes an issue which made it appear as though a member who has been unbanned has had their original avatar deleted.

In reality, no files were being deleted, however some data was left behind (specifically the avatar_date field in the xf_user table) which tricked XF into thinking it should be looking for an uploaded avatar.

If the user had an uploaded avatar before they were banned, this would be unaffected after being unbanned. However, if the user had never uploaded an avatar before, when they were unbanned, XF would be expecting them to have one, but of course not being able to find it.

This issue is now fixed, but it is not fixed retroactively for unbanned users who may now appear to be missing an avatar. The workaround for these users is to edit them in the Admin CP and check the "Delete avatar" checkbox - this reverts them back to the default avatar.

This update also changes the location where the banned avatar is stored. The banned avatars are now stored in the following location:

<styleImagePath>/bannedavatar

If you have edited the banned avatars in the past, you simply need to copy them from <styleImagePath>/xenforo/avatars into the <styleImagePath>/bannedavatar directory.

The exact location depends on what is configured as your imagePath style property.
  • Like
Reactions: Robru
The recent changes introduced to support Last Poster Avatar by Waindigo now only run if the aforementioned avatar is installed and enabled.
Now correctly shows the banned avatar on the thread list if the last poster was a banned user.
  • Like
Reactions: UnitySoft and Jon W
This update improves compatibility with @Waindigo's Last Poster Avatar add-on.

upload_2014-6-21_12-47-28.webp


It enables the banned avatar to appear in the node list.

For this update to work fully, you will first need to wait for an upgrade to Last Poster Avatar to be released by Waindigo.

Thanks Waindigo for your help.
  • Like
Reactions: Jon W and Warning
Fixes the banned user list
  • Like
Reactions: Adam Howard
Thanks to @Shyuan for helping me identify this issue.

The issue occurs if the banned user's previous large avatar was smaller than 192px x 192px.
  • Like
Reactions: Anthony Parsons
Last update... didn't update. Maybe I didn't change the version string.
  • Like
Reactions: Gonanda
If you first ever installed version 1.3.0 of this add-on then the default banned avatars were missing from the package.

They are now included.
  • Like
Reactions: Gonanda
Top Bottom