Hi
In the mybb_attachments table which field is related to the post or thread number?
Will the fields tid and pid?
Best Regards
Tid is the Thread ID and pid is Post ID.
(2018-07-25, 04:02 PM)Wires Wrote: [ -> ]Tid is the Thread ID and pid is Post ID.
The mybb_attachments table does not have the "tid" field, it only has the aid and pid fields
In this case, the aid field is the same as the tid field?
aid is attachment ID
pid is post ID
since attachments are attached to posts only, and since posts can be moved between threads, there is no direct link to the thread(s) in the attachments table
Didn't look into the code but its easy to get the tid using pid. I guess it is used that way only ...