Plugin: Forum Attachments for BuddyPress

Join this plugin group to follow comments, support topics and reviews.

Installation

  • Upload to plugin directory and activate
  • 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.
  • 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.
  • 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
  • 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">. You’ll need to make a similar change to forums/index.php: change <form action="" method="post" id="forums-directory-form" class="dir-form"> to <form action="" method="post" id="forums-directory-form" class="dir-form" enctype="multipart/form-data">.