News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Attachments being Listed as Avatars

Started by AndalayBay, January 03, 2022, 03:08:13 PM

Previous topic - Next topic

AndalayBay

We are writing our own conversion script and have gotten most of it working with your help here. ;) However attachments are being listed as avatars in the Attachments and Avatars section of the ACP. The physical files are being copied to the correct folder under attachments and the attachment_type is 0. What are we doing wrong?

Arantor

First up, let's just double check types: attachment_type 0 is regular attachment, 1 is avatar, 2 is no longer used and 3 is attachment thumbnail.

id_member should be 0 for attachments.
Holder of controversial views, all of which my own.


AndalayBay

Bingo! We were setting id_member. The old forums always set the member ID so we were just copying the data over. I knew the member ID should be zero, but forgot. :P

Thanks again!

Advertisement: