Info
- 35 posts
- 16 voices
- Started 2 years ago by Gautam
- Latest reply from HeliosPrime
- This topic is not a support question
bb Attachments plugin fixed to be compatible with bbPress 1.0+
-
- Posted 2 years ago #
Hello all,
I have fixed the bb Attachments plugin by _ck_ to be compatible with bbPress 1.0. There are many changes in it like changing the deprecated function names in bbPress 1.0, fixing the issue of plugin not creating database table on activation, etc.
You can download it here - http://gaut.am/uploads/bb-attachments.zip
-
- Posted 2 years ago #
Great job Gautam, I'll try it ;)
-
- Posted 2 years ago #
Thank you Gautam!
-
- Posted 2 years ago #
In IE i get the following error if i want to see the full image:
Sorry, download is restricted.
Any fix?
-
- Posted 2 years ago #
Citizenkeith: does it work on your side? I'd like to try this soon. :)
-
- Posted 2 years ago #
@DKB
That maybe because of your Firewall settings, etc.... -
- Posted 2 years ago #
@DKB - "Sorry, download is restricted" is an error message from the bbAttachments plugin:
http://plugins-svn.bbpress.org/bb-attachments/trunk/bb-attachments.phpHave you tried lowering the minimum role to download the original?
global $bb_attachments;
$bb_attachments['role']['see']="read"; // minimum role to see list of attachments = read/participate/moderate/administrate
$bb_attachments['role']['inline']="read"; // minimum role to view inline reduced images = read/participate/moderate/administrate
$bb_attachments['role']['download']="participate"; // minimum role to download original = read/participate/moderate/administrate
$bb_attachments['role']['upload']="participate"; // minimum role to upload = participate/moderate/administrate (times out with post edit time)
$bb_attachments['role']['delete']="moderate"; // minimum role to delete = read/participate/moderate/administrate -
- Posted 2 years ago #
@Johnhiler: Ah i get it, change
$bb_attachments['role']['download']="participate""to$bb_attachments['role']['download']="read" -
- Posted 2 years ago #
@DKB
Yup, that's right. -
- Posted 2 years ago #
Just a note that I downloaded this and installed on bbPress 1.0.2, it worked perfectly.
Thanks for this!
-
- Posted 2 years ago #
There;s one thing I'd like to know: Do I have to make it so that the attachments folder is below the root? I can't do this as I'm running a shared host at the moment...
-
- Posted 2 years ago #
I don't think you have to make the attachments folder above your webroot... it's just strongly recommended for security reasons.
The danger is that someone would be able to upload malicious to your server, and execute it since it's below your webroot.
-
- Posted 2 years ago #
I see, then I'll wait for a top-level domain. :) Thanks
-
- Posted 2 years ago #
Hi,
I am a new user...
I downloaded bb Attachments and installed on bbPress 1.0.2. I have tried to modify the path for "bb-attachments" (upload) folder but without success ...
I modify the bb-attachments.php on the line 75:$bb_attachments['path']=dirname($_SERVER['DOCUMENT_ROOT'])."../../private/bb-attachments/";
And of course I changed the write permission of this folder but I can not upload files I have only a message with "failure".Have any suggestion ? Thanks
(I hope you understand my English) -
- Posted 2 years ago #
I have more information for my lasts post :
I have checked my log and I found this error:
[Wed Jan 13 21:43:51 2010] [error] [****] PHP Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/httpd/*****/subdomains/forum/bb-config-path.php) is not within the allowed path(s): (/home/httpd/vhosts/******/subdomains/forum/httpdocs:/tmp) in /home/httpd/vhosts/*****/subdomains/forum/httpdocs/bb-load.php on line 141 -
- Posted 2 years ago #
Feature request: I would love to see an "attachments browser" in the admin panel. :)
-
- Posted 2 years ago #
Hi Gautam,
I have some problems with the placements of the images in a post. Is it possible to determine where a image appear in a post?
Thanks, DKB
-
- Posted 2 years ago #
When you upload an image, you see it at the bottom of the post.
-
- Posted 2 years ago #
Yes, i know but i want to place it not only at the bottom, but to select the place in a post.
-
- Posted 2 years ago #
No...
-
- Posted 2 years ago #
Even this version gives me the same problems that i had with _CK_'s 0.27
http://www.cell-systems.net/forums/topic/enzyme-11-beta/page/3#post-1226
I can not save attachments to my desktop / and some even fail to open at all.
-
- Posted 2 years ago #
@KillerSneak
I can see 2 attachments here - http://www.cell-systems.net/forums/topic/enzyme-11-beta/page/3#post-1224 but they cannot be downloaded. That might be because of server restrictions or checkbb-attachments.phpfor those who can download attachments. -
- Posted 2 years ago #
@Gautam
I'm admin / it's my own site and can not save attachments. The restrictions are default
And even when i set them all (except for delete) to "read" it still doesn't work, all is in order / folders are 777 and so on. Deactivated / Reactivated plugin no go for me -
- Posted 1 year ago #
I'm going to try this. Thanks in advance!
-
- Posted 1 year ago #
@KillerSneak
That's strange. -
- Posted 1 year ago #
@Gautam
I know, I hope you can figure this out as this plugin is real helpfull for me and the site (when it's fully working).If there is anything else you want INFO/LOGS what ever let me know.
-
- Posted 1 year ago #
@KillerSneak
That problem is only for you, maybe some other plugin would be conflicting. -
- Posted 1 year ago #
@Gautam I gave your 'fixed' plugin a shot but it still isn't wanting to play nice with my set-up (PHP / IIS) as you can see from the screenshot - http://screencast.com/t/MTQ1NDFl
back the to hair-pulling I guess :)
-
- Posted 1 year ago #
@Gautam .. I did manage to find one of the things that was causing a problem. It has to do as I suspected with the PHP $_SERVER["DOCUMENT_ROOT"] variable. It doesn't exist in an PHP install on IIS.
Now I have found a work-around that <gasp> works and when tested returns the proper path (eg: C:/Domains/winextra.com/bb-attachments/ - which from what I can tell in the "instructions" is exactly how it is suppose to be)
But when I try to upload a file (text/image) I get the following two errors and I was hoping that maybe you could help figure out what might be causing them
-------------------------------------------------------------------------------------------------------
Warning: filesize() [function.filesize]: stat failed for 83def462ed888db6e1ad898505ea40b6 in C:\Domains\winextra.com\wwwroot\forums\my-plugins\bb-attachments\bb-attachments.php on line 342Warning: Cannot modify header information - headers already sent by (output started at C:\Domains\winextra.com\wwwroot\forums\my-plugins\bb-attachments\bb-attachments.php:342) in C:\Domains\winextra.com\wwwroot\forums\bb-includes\functions.bb-pluggable.php on line 228
-----------------------------------------------------------------------------------------------------------any help (from anyone :) ) would be greatly appreciated as this is the last real big complaint my members have.
EDIT: The files are getting uploaded but to the root folder and they are not being entered into the bb-attachments table - http://screencast.com/t/Y2UyZGQ4
-
- Posted 1 year ago #
I got it working with 1.0 in way back October
http://blog.ashfame.com/2009/10/fix-bb-attachments-plugin-of-bbpress/