Search

bbPress Showcase » Plugins by _ck_

bb attachment not work

RSS

  1. milad200
    milad200

    new member
    Joined: Aug '11
    Posts: 4

    offline

    hi.We activated bb-attachment plugin on 2 bbP forum that have same version both of plugin and bbP. And created "bb-attachment" folder on root directory with same permission (777). In this forums files & picuters can be downloaded and shown (http://forum.7i7griffin.info/topic/5) but in this one files & pictures cannot be downloaded and shown (http://forum.saaer.org/topic.php?id=11). Please help.

    Posted 9 months ago #
  2. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    If they are different hosts, there might be differences in how PHP is configured on each.

    This actually has the right headers, it shows as jpeg and has a filesize:

    http://forum.saaer.org/?bb_attachments=13&bbat=1&inline

    But since it does not display, that might mean either the file is not where the plugin expects it to be, or the plugin cannot access the file.

    See if you can find your PHP error log, which will show the fopen error.

    Because it has a mime type and filesize, I think PHP can see the file but either cannot FOPEN or FPASSTHRU.

    Login as admin and run this http://forum.saaer.org/?bb_attachments_debug

    look at: disabled functions

    Posted 9 months ago #
  3. milad200
    milad200

    new member
    Joined: Aug '11
    Posts: 4

    offline

    hi.fopen is working correctly.fpassthru for security reasons is closed.please give us your email address to send you host information to check it out.thank you

    Posted 9 months ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    Sorry I don't do direct support like that.

    If fpassthru is disabled you have a big problem then.

    If readfile is not disabled, then you can try editing the plugin and change fpassthru to readfile.

    That's the only easy answer, it gets more complex from there.

    Your host is silly for disabling that function. There are many alternatives.

    Posted 9 months ago #
  5. milad200
    milad200

    new member
    Joined: Aug '11
    Posts: 4

    offline

    it's possible to change it by yourself? I cannot recode it cause i'm not pro coder
    and something else, what's that plugin? i mean the "wall" on profile page
    thank you

    Posted 9 months ago #
  6. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 908

    offline

    The wall plugin is not available to the public.

    open bb-attachments-init.php in notepad

    search for the word fpassthru

    put two slashes in front of that line like this

    // fpassthru($fp); // avoids file touch bug with readfile
    (that disables the line)

    then make a new line BEFORE fclose($fp) and put this in it

    while(!feof($fp) && $data=fread($fp,8192)){print $data;}

    so it looks like this

    // 	fpassthru($fp);
    	while(!feof($fp) && $data=fread($fp,8192)){print $data;}
    	fclose($fp);

    save file and replace it on your server

    if that doesn't solve it, find a better host

    Posted 9 months ago #
  7. milad200
    milad200

    new member
    Joined: Aug '11
    Posts: 4

    offline

    hi
    thank you for helping
    the plugin is now work corecctly

    Can you give us the wall plugin? We really need it, please

    Posted 9 months ago #

RSS feed for this topic

Post a reply to “bb attachment not work”

You must log in to post.

keep _ck_ coding >> donate $5 <<     Theme Switcher:
41 users online from in the past 30 minutes. 16 bots 25 guests
3,508 views today 8,638 yesterday 16,043 peak. Most at once 47 today 60 yesterday 131 peak. Visited today: qamilon, pandoracam, lvgalliera
2,288 posts in 394 topics over 66 months by 430 of 2,165 members. Latest: qwe12345100, Janvelden, watchessaleus