MyBB Community Forums

Full Version: Integrating the attachment functionality
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I would like to use the attachment upload functionality used in myBB in my website. If someone could let me know how to get the attachment section form that we see in forums and the corresponding code with what to change for the target location that would be really great

Thanks,
Joel
well, its fairly complex. there are several templates and a couple core files. For my garage plugin, I ended up copying the attachment code into new files and modifying those pieces to work for me.

you need a modified version of, or copies of the attachment related bits:

attachment.php
inc/functions_upload.php
jscripts/post.js

then there are the <script> bits that are needed to be insert into the headerinclude template for confirmation of user actions and things like that.