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

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(20)

Your Rating

Author: _ck_


  1. Pertinax786

    Member

    Anonymous uploading works well enough on huge sites like 4ch so I'm not as sceptical as you are about it, but still I agree that it needs caution. Looks as if flood checks and similar might also be required. Thanks for your help with that.

    I'm looking at the formatting for the blockquoted images issue, but a simple solution does not seem readily apparent? Perhaps an image width CSS trick as has been discussed?

    Posted: 3 years ago #
  2. Try putting in your main style.css
    blockquote {overflow:hidden;}
    (be sure to hard refresh after you try it)

    Posted: 3 years ago #
  3. I'm using the last version of bb-attachments with bbPress 1.0.4. The bb-attachments is above the root server, as you note in the txt, the forum users can upload the files, and the files are in the folder but when someone clic to the image (e.g.) the imagen cannot be seen in any viewer, is as it was broken, but if I download the file from ftp the image works fine :/

    Posted: 3 years ago #
  4. ninjascience

    Member

    i was wondering about this issue from another post:
    2. Image files do not open in the browser, but rather are downloaded? Ideally using Highslide would be preferable, but would it not at least be possible to have the image open in a new window? Having it behave more like a normal image (so you could right click save as) would be more intuitive for users.

    i realize that I could move the bb-attachments directory to somewhere under the webroot, but this creates a security issue. Would it be possible to setup some kind of php page as a proxy the image. It seems you're doing this already to download the attachment, so what do I change to make it serve the image in browser?

    Posted: 3 years ago #
  5. ninjascience

    Member

    that was dumb. I totally didn't notice the inline display option. just ignore that last post ;-)

    Posted: 3 years ago #
  6. I added 'pdf' as an allowed extension in 'default' but those with member status still get denied mime error. application/pdf and application/x-pdf are in the array of allowed mime types, but it only seems to work when application/octet-stream is allowed.

    Also, checking the bb-attachments table, I see that .txt files are also showing up as application/octet-stream

    p.s. bbpress 0.9.0.3, bb-attachments 0.2.2

    Posted: 3 years ago #
  7. nathany, it's a limitation of the functions available on your host to determine mime types.

    There is simply no way around it if your hosts's PHP doesn't have the proper functions.

    You'll have to allow octet-stream and force by extension type.

    Posted: 3 years ago #
  8. nocomply

    Member

    Hi guys. I'm having a problem with uploading word docs as attachments. I have jpg, gif, txt, pdf, etc... working just fine, but I get the following error when I try to upload a Microsoft Word document:

    [denied mime] document_test.doc (32 KB)

    I have went into bb-attachments.php and updated the $bb_attachments['allowed']['mime_types'] to include 'application/octet-stream', but that doesn't seem to do the trick.

    Any ideas? Could this be some type of php issue with my web server? I'm using Media Temple grid server if that makes any difference.

    Thanks in advance for the help!

    Posted: 3 years ago #
  9. It's possible your PHP config doesn't have the proper fallback to octet-stream.

    Maybe try adding these:
    application/vnd.msword
    application/vnd.ms-word
    application/word
    application/x-msword

    Posted: 3 years ago #
  10. Hi! I installed the bb-attachments plugin on my forum, but I have problems creating the bb-attachments folder (I don't know where to put it).

    I saw in the bb-attachments.php file that the plugin puts the uploaded files to the "$_SERVER['DOCUMENT_ROOT']/bb-attachments/" folder. I created a phpinfo file and it says that $_SERVER['DOCUMENT_ROOT'] = home/j/o/t/jotgi/html. I know I should put the plugin's folder in home/j/o/t/jotgi/html, but I'm not able to know if the folder I created is in the place I need to... Any idea?

    Thanks!

    Posted: 3 years ago #
  11. In your case the safe place would be

    /home/j/o/t/jotgi/bb-attachments/

    but if your system doesn't let you make it there you'll have to use the less safe

    /home/j/o/t/jotgi/html/bb-attachments/

    Posted: 3 years ago #
  12. Hi!

    Thanks for your response! I'm hosting at GoDaddy, and I can't create the /home/j/o/t/jotgi/bb-attachments/ folder. Should I change anything in the plugin file to use the /home/j/o/t/jotgi/html/bb-attachments/ folder?

    Thanks!

    Posted: 3 years ago #
  13. You'll have to use the one with html and then change it inside the plugin settings.
    I believe there was another person who had a problem with godaddy.

    Posted: 3 years ago #
  14. It works! Thanks!

    I automatically created a .po file and I translated it, but it doesn't work. Do you know if your plugin supports .po files, or do I have to translate the plugin editing de bb-attachments.php file?

    Thanks!

    Posted: 3 years ago #
  15. I believe there's been a misunderstanding about how to do translation hooks in plugins for bbPress where each plugin has to have it's own namespace. Unfortunately I never put that in there and I will probably have to fix all my plugins because of that.

    bb-attachments should be getting an admin menu within the next few months so that will make translations alot easier

    Posted: 3 years ago #
  16. Mhhh... I don't understand your first paragraph (I'm not an English speaker), could you explain it better, please?

    Posted: 3 years ago #
  17. wilcosky

    Member

    I have a feature question, 2 actually:

    1) Can you make it so that each user is limited to 1 attachment. So after they upload and attach one thing, they can never attach anything again, until I say they can...

    2) Can you limit this feature on a per board basis. In other words can I enable attachments for just one board, and disable it everywhere else?

    Thanks!

    Posted: 3 years ago #
  18. enquirer32

    Member

    Hi I get simply 'Failed' for a pdf file which is 472kb. Doesn't make a difference for any other formats - same message. How can I troubleshoot this and any suggestions? I'm using the latest version of bbpress.

    Posted: 3 years ago #
  19. invader_zim

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    hey _ck_,

    first of all thank you for this well-thought-out plugin. it's been a breeze to set up and works flawlessly.

    now i unfortunately have to add it to an existing bbpress-0.8.3 installation, which, as the readme says, your plugin's not made for. do you think it's even possible to make it compatible?
    i thought i'd give it a try in desparate need for an attachment plugin and (so far) only ran into a problem with attaching a file to a new post as bb_new_post() got named bb_insert_post() and changed a lot [ref. http://trac.bbpress.org/changeset?old_path=trunk&old=998&new_path=trunk&new=1399

    so i need your advice: should i even start to try changing it or are there any other file upload plugins for 0.8.3 that you/anybody here can recommend?

    thank you very much in advance!!

    Posted: 3 years ago #
  20. I assume you must have hacked the core of the 0.8.3 install because upgrading it to 0.9 should be fairly easy otherwise.

    No other attachment plugins exist, this one was creating after a great deal of requests. They are not very easy to create.

    0.8.3 is probably missing a few critical hooks my plugin needs to work.

    You'd probably be better off going through 0.8.3 and turning your hacks into plugins and upgrade from there. Another trick is to convert your modified 0.8.3 into a SVN install and then using the SVN to upgrade to 0.9 . This is done by first downloading 0.8.3 via the SVN, then copying over your install on top of the SVN, then using the SVN to upgrade to 0.9

    Keep in mind you should do completely backups including mysql if you try the SVN upgrade I mentioned as it might not be reversable via the SVN

    0.9 has some speedups over 0.8.3 too

    Posted: 3 years ago #

RSS feed for this topic

Add a Comment »

You must log in to post.