bb Attachments plugin fixed to be compatible with bbPress 1.0+
-
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
-
Great job Gautam, I’ll try it
Thank you Gautam!
In IE i get the following error if i want to see the full image:
Sorry, download is restricted.
Any fix?
Citizenkeith: does it work on your side? I’d like to try this soon.
That maybe because of your Firewall settings, etc….
@DKB – “Sorry, download is restricted” is an error message from the bbAttachments plugin:
https://plugins-svn.bbpress.org/bb-attachments/trunk/bb-attachments.php
Have you tried lowering the minimum role to download the original?
global $bb_attachments;
$bb_attachments=”read”; // minimum role to see list of attachments = read/participate/moderate/administrate
$bb_attachments=”read”; // minimum role to view inline reduced images = read/participate/moderate/administrate
$bb_attachments=”participate”; // minimum role to download original = read/participate/moderate/administrate
$bb_attachments=”participate”; // minimum role to upload = participate/moderate/administrate (times out with post edit time)
$bb_attachments=”moderate”; // minimum role to delete = read/participate/moderate/administrate
@Johnhiler: Ah i get it, change
$bb_attachments['role']['download']="participate""
to$bb_attachments['role']['download']="read"
Yup, that’s right.
Just a note that I downloaded this and installed on bbPress 1.0.2, it worked perfectly.
Thanks for this!
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…
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.
I see, then I’ll wait for a top-level domain. Thanks
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=dirname($_SERVER).”../../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)
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
Feature request: I would love to see an “attachments browser” in the admin panel.
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
When you upload an image, you see it at the bottom of the post.
Yes, i know but i want to place it not only at the bottom, but to select the place in a post.
No…
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.
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 check
bb-attachments.php
for those who can download attachments.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
I’m going to try this. Thanks in advance!
That’s strange.
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.
- You must be logged in to reply to this topic.