This plugin allows members to upload files on BuddyPress forum. Uploader is Ajax-based.
== Setting Options ==
- enable/disable
- upload directory
- Max file size per file
- Max file count per post
- Upload File types
- File manager
This plugin was tested with ‘bp-default’ theme. if you are using other theme and file uploader is not shown, check your theme whether it has below hooks.
- ‘bp_after_group_forum_post_new’ (your-theme/groups/single/forum.php)
- ‘groups_forum_new_reply_after’ (your-theme/groups/single/forum/topic.php)
- ‘groups_forum_new_topic_after’ (your-theme/forums/index.php)
- ‘bp_group_after_edit_forum_topic’ (your-theme/groups/single/forum/edit.php)
- ‘bp_group_after_edit_forum_post’ (your-theme/groups/single/forum/edit.php)
* Relevant plugin: http://wordpress.org/extend/plugins/u-buddypress-forum-editor/
== Screenshots ==
1. Uploader in action.

2. Settings

3. File manager.

== Changelog ==
= 1.2.1 =
* Fixed: Filelist CSS
* Removed: Developer’s information
* Added: Russian translation courtesy of Gr1N
= 1.2 =
* Added: File manager
* Added: Removable unattached file on front-end with AJAX
* Added: Create thumbnail(100×100)
* Changed: Front-end filelist design
= 1.1.2 =
* Fixed: IMPORTANT security issue with download
= 1.1.1 =
* Changed: up/download url
* Changed: filelist design
= 1.1 =
* Changed: From Flash uploader to Ajax uploader
* Added: setting options
* Removed: Form validator
= 1.0.2 =
* Fixed: Capability bug fixed on Multi-Site.
= 1.0.1 =
* Fixed: default path and url option bugs are fixed on Window OS
= 1.0 =
* Initial release.
Hello friend, I am using fisbook theme for buddyprees. I have tried to look up the hooks mentioned above in my folders. There is no such codes in my index.php and other files, how to include thhi code to make the plugin work properly.
I tried to, but I couldn’t find any problem. fishbook is perfect theme which is child-theme of bp-default. so you don’t need to check hooks.
When I delete a forum post, the attach files remain on site. Is it possible to automatically let them delete with the post?
sorry, I didn’t patch it. because there were many issues. but I have a plan to patch the “attachments manager” in future version.
Hi, I can’t get this to work, any thoughts? spytunes.com
Did you have enabled in this plugin configuration?
Yes I did
Sorry my bad, works now!
Hi, I made a Russian translation for your plugin. Please add them to the repository.
Best regards! Из России с любовью^^
Thanks a lot, I added your translation and mentioned your name.
@Taehan: Thanks for a good plugin and your effort to make BuddyPress better.
I’ve encountered a bug in ubpfattach. The plugin only allows to upload 3 (or whatever you set the limit to) files. The way it is implemented, the “Add file” button disapperas after the 3 uploads are made. However, if the users opts to delete one of the already uploaded files, the button should appear again – but it doesn’t.
On another note. I’ve been wrestling somewhat with modifying the look of this plugin to match the rest of the site. The only way I could do this was dequeuing your CSS and replacing it with another pulled off my theme. So far so good. However, I would greatly appreciate if your plugin could expose some hooks, for example to modify the HTML markup of the files table, or filter the error/status messages. This would immensely increase the adaptability of your work.
Please let me know if you’d like a more detailed suggestion where the hooks would be useful.
Thanks for your notes. In fact, that is not a bug, however it looks like a bug.
I’ll fix it asap with hooks.
Sounds promising. As a note, I’m just experimenting with overriding your script.js javascript with something which I could modify in my theme. This goes fine by including the following in functions.php of my theme.
// U Busypress Forum Attachments plugin // Remove the factory javascript of this plugin wp_dequeue_script( 'ubpfattach-script' ); wp_enqueue_script( 'e2-override-ubpfattach-script', get_stylesheet_directory_uri() . '/_inc/js/override-ubpfattach.js' ); wp_localize_script( 'e2-override-ubpfattach-script', 'ubpfattach_vars', array( 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'nonce' => wp_create_nonce( 'ubpfattach_nonce' ), 'plugin_id' => 'ubpfattach', 'max_num' => 3, 'insert_link' => __('Insert into editor', 'ubpfattach'), 'delete_link' => __('Delete', 'ubpfattach'), 'delete_success' => __('Attachment deleted', 'ubpfattach'), 'delete_confirm' => __('Are you sure you want to delete?', 'ubpfattach'), 'processing' => __('Processing', 'ubpfattach'), ));I’m not entirely clear on how much customization this will allow, but I can see that:
- the layout of the files table can be changed via the script
- the visibility of the ‘choose files button’ can be controlled
- where the error messages go etc. can also be controlled from there
so far so good…
PS. How come that this is not a bug
Image a following scenario. A user creates a topic with three images (3 being a maximum allowed). After posting the whole thing to the forum, he notes that one of the images should be replaced. The user selects “edit topic”, opts to remove the faulty file and… cannot upload anything in its place. Hardly a desirable feature
Pingback: 十津川村の情報屋 » Blog Archive » ローカルSNSを作ろう!BuddyPressの設置方法