I uploaded a pdf file.
bbPress Plugin Browser »
bbPress Attachments (0.2.9)
Download
Version: 0.2.9
Last Updated: 2011-11-28
Requires bbPress Version: 0.9 or higher
Compatible up to: 0.9
Average Rating





Your Rating
Author: _ck_
-
Posted: 2 years ago #
-
_ck_ what would it take to get you to update the plugin for me... if I can email or PM you I can work out terms... I really need this plugin
Posted: 2 years ago # -
Hi ! Excuse me but i need this plugin too, to my bb-forum.
The problem is that, i think, i don't do the installations instructions correctly.
I'm not an expert so, maybe i don't put the repertory "bb-attachments" in the good area.
Someone can help me please ? I don"t understand where i must put it... :'(Posted: 2 years ago # -
I was able to get this plugin working.
I made the suggested change by WarFrog:
from: add_action( 'bb_post.php', 'bb_attachments_process_post');
to: add_action( 'bb-post.php', 'bb_attachments_process_post');Then I was seeing red X's where the image should be. So i jumped in the database and created the database manually, since it wasn't there, and everything worked.
Posted: 2 years ago # -
I have the same problem I am seeing X's where the image should. The uploading functionality works fine in the /bb-attachments folder.
What do mean by creating the DB manually?Posted: 2 years ago # -
Thanks but, my problem's that i dont' know if i up or not the document. It's look like if i did "send the messag" when i try to upload something. Do you understand what i mean ?
Posted: 2 years ago # -
@ksanz. I had the same problem and I also added the database table manually. Apparently there is something not working that the table is generated automatically.
Run the following SQL query on your database:
CREATE TABLE IF NOT EXISTS bb_attachments ( id int(10) UNSIGNED NOT NULL auto_increment, time int(10) UNSIGNED NOT NULL default '0', post_id int(10) UNSIGNED NOT NULL default '0', user_id int(10) UNSIGNED NOT NULL default '0', user_ip int(10) UNSIGNED NOT NULL default '0', status tinyint(10) UNSIGNED NOT NULL default '0', downloads int(10) UNSIGNED NOT NULL default '0', size int(10) UNSIGNED NOT NULL default '0', ext varchar(255) NOT NULL default '', mime varchar(255) NOT NULL default '', filename varchar(255) NOT NULL default '', PRIMARY KEY ( id ), INDEX ( post_id ) ) CHARSET utf8 COLLATE utf8_general_ciAfter this, the plugin worked fine for me!
Posted: 2 years ago # -
Not working for me either. How do I manually create the DB? I also made the change that WarFrog mentioned about. Great plugin CK. Thanks.
Thanks.Posted: 2 years ago # -
How do I get the bb-attachments folder above the webroot? I have it in the HTML folder presently. Also my HTML is the highest root at GoDaddy. Can we work around that CK?
Thank you.Posted: 2 years ago # -
How does one add a database manually?
thanks.Posted: 2 years ago # -
Got it working till the point I see a red X where the image or link to the image should be in the post. Did what WarFrog suggested changing the "_" to "-" and it got me to this point.
Thank you.Posted: 2 years ago # -
Hey CK. How do I fix the red X issue. I do see the images in the folder. So they are uploading.
Thanks for all you do.Posted: 2 years ago # -
Got it working finally. Created the table in the database and it is working now.
Thanks _CK_ for the great plugin.Posted: 2 years ago # -
For all those experiencing problems with table creation: just add
global $bb_attachments;right before the first mention of $bb_attachments variable.
The code then should look like this:
<?php /* Plugin Name: bbPress Attachments Plugin URI: http://bbpress.org/plugins/topic/bb-attachments Description: Gives members the ability to upload attachments on their posts. Author: _ck_ Author URI: http://bbShowcase.org Version: 0.2.7 License: CC-GNU-GPL http://creativecommons.org/licenses/GPL/2.0/ Donate: http://bbshowcase.org/donate/ */ global $bb_attachments; /* <<< Here it is! */ $bb_attachments['role']['see']="read"; // minimum role to see list of attachments = read/participate/moderate/administrateAfter that please deactivate the plugin and activate it again. The table will be created.
To the plugin author:
global $bb_attachmentsrefers to a non-existing variable when bb_attachments_install() is called. This is because the plugin file is include()'d from the function (bb_activate_plugin() in this case), not from the global context. As a consequence, the $bb_attachments array is created in bb_activate_plugin()'s symbol table, not in the global one. The fix is simple — just addglobal $bb_attachments;to the file.For those who speak Russian: the explanation and the fix of this bug.
Posted: 2 years ago # -
i've tried changing line 90 to
add_action( 'bb-post.php', 'bb_attachments_process_post');, i've created the DB table, and i've tried moving the directory and changing the path - nothing works. nothing is uploading and i'm not getting any errors. i'm on hostgator so there's nothing weird about my setup as far as i know. how can i check what kind of errors are being generated? i'm not sure i have access to the error logs (?)Posted: 2 years ago # -
aha, i found the diagnostic setting. here's the only thing that looks vaguely worrying:
disabled functions: dl finfo_open: does not exist.Posted: 2 years ago # -
Any ideas, why on search-page the icons are not shown properly?
-> http://www.xtcmodified.org/forum/search.php?q=admin+modified
Kind regards
Tom
Posted: 2 years ago # -
hi.
i created the table bb_attachments in my DB.
but there seems also have something wrong .
When i upload a file , it remind me failed to upload the file .
but in the DB , i find the information has been stored in the table bb_attachment.
but where is the file .it is not in any directory .
i have maked the file bb-attachments in the web.
my OS is windows XP .
Thank you.Posted: 2 years ago # -
Thank you guys.
i solve the problem we both have .Posted: 2 years ago # -
First, let me say thanks to you _ck_ for this, and all of your other contributions to the community. You're a blessing to all of us. I've got one minor issue that I've been beating on for a while that I just can't seem to straighten out. I can attach files, except for Word .doc or Excel .xls files. Newer (2007+) .docx and .xlsx files aren't a problem, just .doc and .xls. All other file types (.pdf, .jpg, etc.) work without any issue as well. I've tried adding every MIME type I could think of, and as I want all of my users to have the same upload permissions, I've made the changes at all levels, yet none can upload .doc or .xls. Here's a snip of the code changes I've made.
$bb_attachments['allowed']['extensions']['default']=array('bmp','docx','doc','gif','gz','jpeg','jpg','pdf','png','txt','xls','xlsx','zip'); // anyone who can upload can submit these $bb_attachments['allowed']['extensions']['moderate']=array('bmp','docx','doc','gif','gz','jpeg','jpg','pdf','png','txt','xls','xlsx','zip'); // only if they can moderate $bb_attachments['allowed']['extensions']['administrate']=array('bmp','docx','doc','gif','gz','jpeg','jpg','pdf','png','txt','xls','xlsx','zip'); // only if they can administrate $bb_attachments['allowed']['mime_types']['default']=array('application/octet-stream', 'text/plain', 'text/x-c', 'image/bmp', 'image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'application/pdf', 'application/x-pdf', 'application/zip', 'application/x-zip', 'application/x-gzip', 'application/doc', 'application/docx', 'application/msword', 'application/msexcel', 'application/vnd.msword', 'application/vnd.ms-word', 'application/word', 'application/x-msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'); // for anyone that can upload $bb_attachments['allowed']['mime_types']['moderate']=array('application/octet-stream', 'text/plain', 'text/x-c', 'image/bmp', 'image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'application/pdf', 'application/x-pdf', 'application/zip', 'application/x-zip', 'application/x-gzip', 'application/doc', 'application/docx', 'application/msword', 'application/msexcel', 'application/vnd.msword', 'application/vnd.ms-word', 'application/word', 'application/x-msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'); $bb_attachments['allowed']['mime_types']['administrate']=array('application/octet-stream', 'text/plain', 'text/x-c', 'image/bmp', 'image/jpeg', 'image/jpg', 'image/png', 'image/gif', 'application/pdf', 'application/x-pdf', 'application/zip', 'application/x-zip', 'application/x-gzip', 'application/doc', 'application/docx', 'application/msword', 'application/msexcel', 'application/vnd.msword', 'application/vnd.ms-word', 'application/word', 'application/x-msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document');Any suggestions would be greatly appreciated, and thank you again.
Posted: 2 years ago #
Add a Comment »
You must log in to post.