Search

bbPress Showcase » Plugins by _ck_

  1. SirBoo
    User has not uploaded an avatar

    new member
    Joined: Dec '08
    Posts: 1

    offline

    En to test.

    Attachments

    1. Avatar.gif (8.3 KB, 2 downloads) 3 years old
    Posted 3 years ago #
  2. johnhiler
    johnhiler

    admin
    Joined: Sep '08
    Posts: 3

    offline

    Testing with a piggie :-).

    Posted 3 years ago #
  3. johnhiler
    johnhiler

    admin
    Joined: Sep '08
    Posts: 3

    offline

    testing testing 1-2-3

    Attachments

    1. related.png (6.3 KB, 0 downloads) 3 years old
    Posted 3 years ago #
  4. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    Testing UTF-8 db fix.

    Attachments

    1. elephpant.jpg (39.4 KB, 0 downloads) 3 years old
    Posted 3 years ago #
  5. olive
    User has not uploaded an avatar

    new member
    Joined: Dec '08
    Posts: 1

    offline

    just testing file size restrictions

    Attachments

    1. 01.jpg (16.6 KB, 2 downloads) 3 years old
    Posted 3 years ago #
  6. dolphin
    User has not uploaded an avatar

    new member
    Joined: Jan '09
    Posts: 2

    offline

    Hi

    I am setting up a test bbpress forthe first time at http://www.ps123.co.uk/bbpress/

    I have plugged-in bb-attachments but it isn't working.

    My problem appears to be exactly as a.dima but he/she was lucky enough to get the right path from his shared hosting ISP.

    I asked my ISP and they said

    the path needs to be: /home/httpd/vhosts/domain/httpdocs
    . At the time I was trying to upload to the public area - I thought maybe if I could get that to work then I could go on to get it in the web root. I have tried and tried but just can't get it.

    Where I am at the moment is:

    I have created the target folder as /private/bb-attachments/ (I can create it in the private folder but denied at level above that which is the root folder). Permissions are set to 777.

    I have edited bb-attachments.php and the path line is:

    $bb_attachments['path']="/home/httpd/vhosts/ps123.co.uk/private/bb-attachments/";

    I made a path test file at http://www.ps123.co.uk/test/doc1.php which is simply:

    <p>path test</p>
    <?php $p=dirname($_SERVER['DOCUMENT_ROOT'])."/private/bb-attachments/";
    ?>
    <?php echo $p ?>

    and you can see the output as:

    path test
    /home/httpd/vhosts/ps123.co.uk/private/bb-attachments/

    When I test the file upload it still fails to upload the file although there is an entry in the mysql bb-attachments table.

    Looking at my server error log the report is:

    [Mon Jan 19 01:58:32 2009] [error] [client 80.3.172.250] PHP Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/httpd/vhosts/ps123.co.uk/private/bb-attachments/0) is not within the allowed path(s): (/home/httpd/vhosts/ps123.co.uk/httpdocs:/tmp) in /home/httpd/vhosts/ps123.co.uk/httpdocs/bbpress/bb-plugins/bb-attachments/bb-attachments.php on line 355, referer: http://www.ps123.co.uk/bbpress/topic.php?id=6

    I noticed the "0" at the end of "File(/home/httpd/vhosts/ps123.co.uk/private/bb-attachments/0)". Is that the problem? Or do I just need to get the path right? I would be so grateful if you could help me with this - I have tried for hours to get it top work and it is essential for the forum I need to run - if I can't get it working I will have to look at another forum and I would be very sad as I am a great fan of Wordpress.

    Sorry for sucha long post

    Thanks

    Posted 3 years ago #
  7. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    Your host doesn't allow directories above httpdocs since they don't put your domain's root in the open_basedir (which is stupid)

    So you can only create and use this path

    /home/httpd/vhosts/ps123.co.uk/httpdocs/bb-attachments/

    it will work if you change the path in the settings but you'll have less security.

    Posted 3 years ago #
  8. dolphin
    User has not uploaded an avatar

    new member
    Joined: Jan '09
    Posts: 2

    offline

    Thanks _ck_ but that didn't work either.

    When you say "change the path in the settings" do you mean line 67 of bb-attachments.php?

    Dolphin

    Posted 3 years ago #
  9. _ck_
    _ck_

    senior admin
    Joined: Jul '06
    Posts: 884

    offline

    I mean

    $bb_attachments['path']=
    "/home/httpd/vhosts/ps123.co.uk/httpdocs/bb-attachments/";

    Posted 3 years ago #
  10. mkash
    User has not uploaded an avatar

    junior member
    Joined: Jan '09
    Posts: 5

    offline

    Hello.
    Many thanks to __ck__ for this great plugin, and for contributing to bbpress.

    Trouble:

    The upload button posts the content instead of just uploading the image.

    And I don't get any errors or anything and neither any attachment link to my post.

    Here's the url: http://solar.mridkash.com/forums/

    Attachments

    1. 5.png (58.9 KB, 1 downloads) 3 years old
    Posted 3 years 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:
36 users online from in the past 30 minutes. 14 bots 21 guests 1 members: mccawphoto
104 views today 7,784 yesterday 14,010 peak. Most at once 39 today 63 yesterday 131 peak. Visited today: mccawphoto
2,240 posts in 380 topics over 63 months by 425 of 1,992 members. Latest: shairah27, Augustine01, MichaelGomez