This plugin ives members the ability to upload attachments on their posts.
It’s a port of a plugin originally created for bbPress by _ck_. See the original plugin page here: http://bbpress.org/plugins/topic/bb-attachments/. _ck_ is not supporting this plugin anymore. Insofar as the code works, it is thanks to her; insofar as it does not, it is my fault.
Installation
- Upload to plugin directory and activate
- If you’d like to change the default settings (as described in step 5 here http://bbpress.org/plugins/topic/bb-attachments/installation/), you may do so by editing forum-attachments-for-buddypress-bp-functions.php
- Create a directory ‘bb-attachments’ one level above your WP root and make sure that it is writeable by the server. So if your WP installation is at /home/html/, create a directory /home/bb-attachments.
- I use a JavaScript trick to make uploads possible. If you are confident that most of your users will have JS enabled, you do not need to do anything else.
- If you want to make uploads possible for users with JS turned off, you will need to alter the <form> tags on your theme’s forum files: groups/single/forum/topic.php and groups/single/forum.php. Change
<form action="" method="post" id="forum-topic-form" class="standard-form">
to
<form action="" method="post" id="forum-topic-form" class="standard-form" enctype="multipart/form-data">
- If you have an unusual setup (in particular, if your WP_PLUGIN_URL is somewhere other than /wp-content/) you may have to play with the path settings in download.php and image.php to make things work correctly.
Read an older comment thread about this plugin.
Forum Attachments for BuddyPress has been downloaded 9,665 times. Are you using this plugin? Consider a donation.
Translation credits
- Russian – slaFFik
Version history
- 0.1
- Initial release
- 0.2 – March 19, 2010
- BuddyPress 1.2 compatible
- Removed the need for custom theme hooks
- Enabled inline images
- Improved download process to avoid header conflicts
- 0.2.1 – March 19, 2010
- Corrected redirect after deleting attachments
- Removed header requirements causing errors on some Apache setups
- 0.2.2 – March 22, 2010
- Corrected typo that was causing redirect conflicts with certain forum-related plugins
Problem with user role
The plugin only works correct if I assign to all user the role “Superadmin”. With any other user status they either don’t even see the upload form or the uploaded file is not downloadable.
Do you have any idea how to change the settings so that any ordinary user can upload files to the forum?
We are using WP 3.1.2 and BP 1.2.8.
If you have migrated the site to a new server – don’t forget to edit the database details of the new site in – bbconfig.php.
In the same location as wpconfig.php.
This will fix the issue.
Works! What would be needed to add a “standby while the upload(s) are processed” ? I just tried uploading a few larger files (increased the size limit) and for an end user they might think it crashed – while in reality the upload process is in progress. Your instructions on doing the patch work was very easy to follow. Thanks!