MyBB Community Forums
MyBB Community Forums
>
Extensions
>
Plugins
>
Plugin Development
> Get specific forum attachments?
Full Version:
Get specific forum attachments?
You're currently viewing a stripped down version of our content.
View the full version
with proper formatting.
kawohi
2015-03-19, 05:00 PM
How would I get all attachments from a specific forum?
Destroy666
2015-03-19, 07:25 PM
Query the attachments table, LEFT join posts table by pid:
https://github.com/mybb/mybb/blob/featur...es.php#L82
and in WHERE check the fid:
https://github.com/mybb/mybb/blob/featur...s.php#L529
MyBB Community Forums
>
Extensions
>
Plugins
>
Plugin Development
> Get specific forum attachments?