WordPress.org

Ready to get started?Download WordPress

Forums

bbPress Post Toolbar
Something to work on... (15 posts)

  1. mvaginger
    Member
    Posted 3 years ago #

    It would be great if the toolbar would have a feature to upload the images directly into WP uploads directory without third party involvement. Also would be good to be able to limit the width of the image.
    Otherwise I love it :)

  2. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    Yeah, I was thinking of handling uploads but haven't managed to get around to it yet. I'm quite liking the ajaxy upload things that are around and will probably deal with uploading in the same way. I'll read up on the wordpress documentation in a while after I have handed in a couple of assignments.

    The image width can be set either using (e.g. 500px) : width="500" or style="width:500px;" as a regular HTML attribute in the tag. Style allows for max- or min-width, which is handy.

    In your theme's style.css, you could force a max-width on images inside a post to be a certain size.

  3. mvaginger
    Member
    Posted 3 years ago #

    great, thanx, if you could get in a ajax upload that would be really cool :)

  4. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    I've started work on the file uploading and only allowing images to be done. If you would like to test the development version (currently 0.5.0-alpha1) and tell me of any errors.

    Dev: http://downloads.wordpress.org/plugin/bbpress-post-toolbar.zip

  5. mvaginger
    Member
    Posted 3 years ago #

    wowo, you are fast, let me donwload and test :)

  6. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    I made a few changes and have updated the trunk version. Play around with it. :)

  7. mvaginger
    Member
    Posted 3 years ago #

    Hi, I just played around with a script. It works excellent, even the multiple upload ... really good, I will translate it and will start to use it :)

  8. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    Nice, I'm going to release 0.5.0 in a few minutes because I see no reason to with no obvious troubles. :P

    Just writing some readme.txt ;)

  9. mvaginger
    Member
    Posted 3 years ago #

    Is there a place I can set a maximum uploaded image width of image, or can the image be automatically resized to certain max. width? that would be useful so the formatting of a page does not get ruined. thanx :) great work

  10. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    CSS can handle max-width of an image.
    You might want to add something like this to your theme CSS:

    #content .bbp-topic-content img,
    #content .bbp-reply-content img {
    	max-width: 600px;
    }

    Just tweak that 600px until makes it large enough and looks right.

    That's actually a copy from bbPress' bbpress.css which has this as default:

    #content .bbp-topic-content img,
    #content .bbp-reply-content img {
    	max-width: 100%;
    }
  11. mvaginger
    Member
    Posted 3 years ago #

    well I am trying somehow it doesnt work, I will have to play a bit more with it. I added to CSS it doesnt work.

  12. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    Removing the #content from both lines might fix it by making it just a little less restrictive on which style class is being used.

  13. mvaginger
    Member
    Posted 3 years ago #

    I am still playing with it, I did find one thing, you cannot upload the image if you not logged in, so if you have open forum where people can attend without login, they will not be able to upload images.
    is that how you wanted ? thanx

  14. master5o1
    Member
    Plugin Author

    Posted 3 years ago #

    I made that for security: Some people might not want an anonymous uploading images to their forum. But it's allowable in the settings now.

    Also, 0.5.0 is up for use :)

  15. mvaginger
    Member
    Posted 3 years ago #

    great work mate !

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic