WordPress.org

Ready to get started?Download WordPress

Forums

bbPress Post Toolbar
I am sorry but still buggy ! (18 posts)

  1. mvaginger
    Member
    Posted 3 years ago #

    Hello,
    I tested the new version. Finaly I am able to upload images but they get uploaded to a wrong folder :)
    instead of web/forum/wp-content/uploads/2011/08/
    they go to 0:/public_html/forum/wp-content/uploads/2011/
    and in a strange format like this 08image.jpg.
    It basically adds 08 (month name) infront of file name.
    Another issue and I dont know if you though of that is the file name.
    If the file name already exists in the folder, what happens ?
    Will the script automatically rename the file? to get it in?
    thanx

  2. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    It goes to what ever the upload folder is that is outputted by

    $dir = wp_upload_dir();

  3. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    None of my test sites have it showing the month name (08) at the beginning of the image filename.

    My test sites are using 0.5.7.

    Assuming you're at 0.5.7, if you could open up your toolbar-images-panel.php in a text editor (or the WP plugin editor) and search for $directory (ctrl+f in browser).

    Then replace the line that looks similar to the following with this:

    $result = $uploader->handleUpload( trailingslashit( $directory['path'] ) );

    Save, test let me know if it works.

  4. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    Also, yes. The script adds a random number to the end of the filename just before the '.png'

    So image.jpg, image-24.jpg, and maybe image-24-75.jpg. etc.

    I'm thinking of refining this a bit.

  5. mvaginger
    Member
    Posted 3 years ago #

    well I tried again, I did not do any changes yet, but what happened, the file if uploaded in 2011 folder and input box is filled with correct path! 2011/08... but the file is uploaded incorrectly to the folder 2011.
    I try to do the modification you adviced.

  6. mvaginger
    Member
    Posted 3 years ago #

    still the same , even the file is again renamed to 08imagename.jpg and is placed in ...2011/ folder. :(

  7. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    Wow, my testing was shit. I overlooked the obvious and just assumed that it would be the same problem for the url -_-

    I had the same without realising it. 0.5.8 just tagged, should fix it ;)

    Also makes the appended dash + integer on a filename a unique counter for the images that share a filename.

    So image.jpg is uploaded three times as image.jpg, image-1.jpg, image-2.jpg, etc.

  8. mvaginger
    Member
    Posted 3 years ago #

    OKEY :) let me test it again, I hope we good thistime :)

  9. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    Me too.

  10. mvaginger
    Member
    Posted 3 years ago #

    Excellent, you got it now working well !

  11. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    Well, until someone finds something else to fix. I am quite lazy and lax on the less than obvious things.
    Or on what I am not currently working on :P

  12. mvaginger
    Member
    Posted 3 years ago #

    well, dont worry you created a great tool bar, thanx for that !

  13. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    I credited you in the change log about this bug ;)

  14. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    I really wonder about that damn pie chart on the stats page... Always claims that the version in use is 100% in use.

    Only ever showed versions 0.1, 0.4.1 and 0.5.7.

  15. mvaginger
    Member
    Posted 3 years ago #

    thanx for the credit.
    regarding versions, give it a time, you made very quick releases one after another, so let it settle down for a while.

  16. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    I tend to go in bouts of enthusiasm when coding this. Should probably wait until changes ate a lot before each version increase :P

  17. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

  18. mvaginger
    Member
    Posted 3 years ago #

    not bad :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic