Skip to:
Content
Pages
Categories
Search
Top
Bottom

bb Attachments plugin fixed to be compatible with bbPress 1.0+


  • Gautam
    Member

    @gautam-gupta

    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

Viewing 25 replies - 1 through 25 (of 34 total)
  • Great job Gautam, I’ll try it ;)


    citizenkeith
    Participant

    @citizenkeith

    Thank you Gautam!


    DKB
    Participant

    @dkb

    In IE i get the following error if i want to see the full image:

    Sorry, download is restricted.

    Any fix?


    Michael
    Participant

    @michael888

    Citizenkeith: does it work on your side? I’d like to try this soon. :)


    Gautam
    Member

    @gautam-gupta

    @DKB

    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


    DKB
    Participant

    @dkb

    @Johnhiler: Ah i get it, change $bb_attachments['role']['download']="participate"" to $bb_attachments['role']['download']="read"


    Gautam
    Member

    @gautam-gupta

    @DKB

    Yup, that’s right.


    Hard Seat Sleeper
    Participant

    @hseatsleeper

    Just a note that I downloaded this and installed on bbPress 1.0.2, it worked perfectly.

    Thanks for this!


    Michael
    Participant

    @michael888

    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.


    Michael
    Participant

    @michael888

    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


    citizenkeith
    Participant

    @citizenkeith

    Feature request: I would love to see an “attachments browser” in the admin panel. :)


    DKB
    Participant

    @dkb

    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


    Gautam
    Member

    @gautam-gupta

    When you upload an image, you see it at the bottom of the post.


    DKB
    Participant

    @dkb

    Yes, i know but i want to place it not only at the bottom, but to select the place in a post.


    Gautam
    Member

    @gautam-gupta

    No…


    KillerSneak
    Member

    @killersneak

    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.


    Gautam
    Member

    @gautam-gupta

    @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 check bb-attachments.php for those who can download attachments.


    KillerSneak
    Member

    @killersneak

    @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


    Kevin Ryman
    Participant

    @kevinryman

    I’m going to try this. Thanks in advance!


    Gautam
    Member

    @gautam-gupta

    @KillerSneak

    That’s strange.


    KillerSneak
    Member

    @killersneak

    @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.

Viewing 25 replies - 1 through 25 (of 34 total)
  • You must be logged in to reply to this topic.
Skip to toolbar