Search

bbPress Showcase » Plugins by _ck_

new bbPress plugin: bbPress Attachments

RSS
  1. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 685

    offline

    It's not a bug, it's a feature.
    There's no easy way to simply add an attachment to a non-existent post.

    I may try to tackle the problem someday with some kind of temporary storage but it won't be anytime soon.

    Posted 1 year ago #
  2. mkash
    User has not uploaded an avatar

    junior member
    Joined: Jan '09
    Posts: 5

    offline

    UPDATE: I did find the error, thanks to firebug extension.
    The form type (enctype=multipart form data) was not set in the form tag of the page. I don't know from where this strange error crept in. But anyways, thanks.

    Thanks for the reply.
    It seems I was not clear enough. Sorry.
    Actually, file uploads aren't working on my site even with complete configuration.

    And I'm running the latest trunk of bbpress.
    When I upload an attachment, either via clicking upload button or the send post button. It doesn't get uploaded at all. and neither do I see any error of failed upload.

    I'm running on Linux. Can this be a problem? (I don't hope so, btw).

    heres the debug link. http://solar.mridkash.com/forums/?bb_attachments_debug
    Please help me. Thanks

    EDIT: I found that it doesn't even try to upload the file. very strange!
    I ran live http headers and it showed no file entry, and the bb-attachments variable was set to 0.
    Here's the headers;

    http://solar.mridkash.com/forums/bb-post.php
    POST /forums/bb-post.php HTTP/1.1
    Host: solar.mridkash.com
    User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.5) Gecko/2008121621 Ubuntu/8.04 (hardy) Firefox/3.0.5
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-us,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 300
    Connection: keep-alive
    Referer: http://solar.mridkash.com/forums/topic/test-topic?replies=6
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 230
    post_content=this+is+a+post.&_wpnonce=4f3f727063&_wp_http_referer=%2Fforums%2Ftopic%2Ftest-topic%3Freplies%3D6&topic_id=8&bb_attachments=0&MAX_FILE_SIZE=10485760&bb_attachments%5B%5D=80148-1.jpg&bb_attachments%5B%5D=&upload=Upload

    Attachments

    1. 89189qk0.gif (13.4 KB, 1 downloads) 1 year old
    Posted 1 year ago #
  3. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 685

    offline

    Oh sorry I completely missed your actual problem.
    I think I read it too quickly.

    The multipart is done via a very tricky and nasty hack for default templates. There is no natural way to do it in bbPress unfortunately.

    If you customized your templates somehow, it's possible my hack doesn't work, so you never get the multipart.

    Actually, your templates don't look that customized.

    What version are you running, maybe the newest alpha are breaking it.

    Posted 1 year ago #
  4. mkash
    User has not uploaded an avatar

    junior member
    Joined: Jan '09
    Posts: 5

    offline

    yes, it is the alpha version. Version 1.0-alpha-6

    I didn't customize the default theme, just changed the width params in css to match my site.
    Also, which file do I edit to add the enctype attribute to the form?

    Maybe, I shouldn't have run the alpha version on my site. You might have seen the big red message on top of site, it was due to a plugin (add users) going awry!

    Posted 1 year ago #
  5. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 685

    offline

    Yes I always strongly advise people not to run the alphas on a live site.

    However you are not going to be able to downgrade now, it's impossible because it changes the database.

    Let me see if there's anything easy I can do to fix it.

    Posted 1 year ago #
  6. mkash
    User has not uploaded an avatar

    junior member
    Joined: Jan '09
    Posts: 5

    offline

    I'm aware of the risk of running testing version of softwares. But, I'm just starting off the site, so by the time I gain readership, hopefully the software will get better.

    Thanks for your time and effort. The functionality that is causing errors isn't much critical to the site, so take your time. I'd like to see a complete fix to the problem rather than just another 'nasty hack'.

    I'm a web dev, so please do tell me where I can help.

    Regards

    Posted 1 year ago #
  7. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 685

    offline

    Okay I have fixed it in 0.2.5 which will be on bbpress.org shortly.

    Posted 1 year ago #
  8. mkash
    User has not uploaded an avatar

    junior member
    Joined: Jan '09
    Posts: 5

    offline

    _ck_ - 3 minutes ago  » 
    Okay I have fixed it in 0.2.5 which will be on bbpress.org shortly.

    Oh wonderful, you are my hero!

    Posted 1 year ago #
  9. iamronen
    User has not uploaded an avatar

    new member
    Joined: Jul '09
    Posts: 1

    offline

    testing an upload and how an image is inserted inline

    Attachments

    1. someguy.jpg (29.8 KB, 3 downloads) 1 year old
    Posted 1 year ago #
  10. benozgur
    User has not uploaded an avatar

    new member
    Joined: Aug '09
    Posts: 2

    offline

    _ck_ - 1 yıl ago  » 
    Really? It requires uploading one folder and making another.
    How difficult is that?

    Attachments

    1. cevrim11draculasedatbottj1.png (0.6 KB, 2 downloads) 11 months old
    Posted 11 months ago #

RSS feed for this topic

Post a reply to “new bbPress plugin: bbPress Attachments” »

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
20 users online from in the past 30 minutes. 14 bots 6 guests
162 views today 3,983 yesterday 9,585 peak. Most at once 20 today 77 yesterday 115 peak.
1,783 posts in 296 topics over 44 months by 344 of 1,173 members. Latest: juanmanolo, marcosgdf, fil.diesel