Not Solved mybb_attachments which field is related to the post or thread number?
#1
Not Solved
Hi

In the mybb_attachments table which field is related to the post or thread number?

Will the fields tid and pid?

Best Regards
Reply
#2
Not Solved
Tid is the Thread ID and pid is Post ID.
Plugin Count: I lost count.
Public Plugins are available here.
Official GitHub.
Please do not PM me for support unless asked to.
Reply
#3
Not Solved
(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?
Reply
#4
Not Solved
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
Reply
#5
Not Solved
Didn't look into the code but its easy to get the tid using pid. I guess it is used that way only ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)