Group Mods

  • Profile picture of Hugo
  • Profile picture of r-a-y
  • Profile picture of @mercime

New version of Forum Attachments for BuddyPress (53 posts)

Started 2 years, 2 months ago by: Boone Gorges

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 2 months ago:

    I’ve finally gotten around to upgrading Forum Attachments for BuddyPress. It should now work pretty smoothly with BP 1.2, with a minimal amount of custom hooks in your theme files. Plus I’ve enabled some other goodies, like inline display of uploaded images.

    Read more about the plugin here: http://teleogistic.net/code/buddypress/forum-attachments-for-buddypress/

  • Profile picture of chembro303 chembro303 said 2 years, 2 months ago:

    WP 2.9.2, BP 1.2.2.1

    Installed and tested upload of a small JPEG… it just shows “failed” and a little x with the filename.

    I tried for a little while to troubleshoot but I’m not sure what should happen if it’s working so I’m not sure where to look… i.e. I am not sure what I should be looking for. Database entry? File uploaded to certain place on my server?

  • Profile picture of modemlooper modemlooper said 2 years, 2 months ago:

    Same for me , upload failure

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 2 months ago:

    Shoot, I forgot to add the instructions about creating the upload directory. Make a directory one level above your webroot and make sure it’s writeable.

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 2 months ago:

    er, the directory should be called bb-attachments

  • Profile picture of chembro303 chembro303 said 2 years, 2 months ago:

    Edit: Uh, ok I’m stupid. Retract original question.

    I created this folder and tried again. Now it shows the file as an attachment. But, clicking the attachment goes to a white page with:

    Fatal error: Call to undefined function apache_request_headers() in / {web root} / {buddypress directory} /wp-content/plugins/forum-attachments-for-buddypress/download.php on line 47

    I checked and the actual image was uploaded properly. It’s just viewing it that isn’t working. Wish it was inline too… oh well.

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 2 months ago:

    chembro – No, you need to go one level above your web root. Figure out the server path is installed by logging onto your FTP space (it’ll be something like /var/www/html or /home/public_html probably) and create a writeable directory one level above that (eg /var/www/bb-attachments or /home/bb-attachments)

  • Profile picture of chembro303 chembro303 said 2 years, 2 months ago:

    Thanks boone…I figured that out as soon as I tried it. I’m a designer, what can I say. :)

    Unrelated to that issue, I was wondering why there seem to be so many duplicates in the “allowed file types” – bmp (500 KB), doc (500 KB), gif (500 KB), gz (500 KB), jpeg (500 KB), jpg (500 KB), pdf (500 KB),
    png (500 KB), txt (500 KB), xls (500 KB), zip (500 KB), gif (500 KB), jpeg (500 KB), jpg (500 KB), pdf (500 KB), png (500 KB), txt (500 KB), docx (500 KB), xlsx (500 KB), ppt (500 KB), pptx (500 KB)

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 2 months ago:

    Oh, I guess it’s because I was trying to throw the whole kitchen sink in there and I put in some duplicates :) Have a look at allowed file types being set near the beginning of forum-attachments-for-buddypress-bp-functions.php to pare them down a bit. I will do this in a subsequent release.

  • Profile picture of chembro303 chembro303 said 2 years, 2 months ago:

    Any idea what is causing the fatal error?

    Fatal error: Call to undefined function apache_request_headers() in / {web root} / {buddypress directory} /wp-content/plugins/forum-attachments-for-buddypress/download.php on line 47

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 2 months ago:

    No, I’m not sure. It could be that you’re not running Apache – maybe your server is running nginx or something? I’ll look into it.

  • Profile picture of chembro303 chembro303 said 2 years, 2 months ago:

    running a phpinfo says Apache/2.2.14 …

    bluehost shared hosting…

  • Profile picture of chembro303 chembro303 said 2 years, 2 months ago:

    New issue: I clicked the “x” to delete the uploaded file.

    It did delete the file from the server (I checked) BUT after that it loaded a white page at:

    {buddypress site} /wp-content/plugins/buddypress/bp-forums/bbpress/topic.php?id=7#post-34

    instead of where I’m guessing it should have gone:

    {buddypress site} /groups/ {groupname} /forum/topic/topic.php?id=7#post-34

  • Profile picture of chembro303 chembro303 said 2 years, 2 months ago:

    Edited above: I originally thought it was deleting both file and post but it was correctly just deleting the file. Still loading the wrong page after delete though.

  • Profile picture of Boone Gorges Boone Gorges said 2 years, 2 months ago:

    Thanks for all your help, chembro.

    I have fixed some of the apache errors in the trunk – working better now, I think. I will have a look at what’s going on with the deletion and redirect – both of those things are errors. Thanks again for help with the bugfixes :)