WordPress.org

Ready to get started?Download WordPress

Forums

Crazy question....maybe (7 posts)

  1. mugamugaw
    Member
    Posted 1 year ago #

    I would like to allow registered users to create a post. I want this post to be a picture that they drew. Sort of like draw blog but I want it to be on a background that I have chosen, not a blank canvas. Sort of like a map that they can draw lines and stuff on. And then they can post it like a normal blog post, not a reply.
    Is this possible?

  2. catacaustic
    Member
    Posted 1 year ago #

    It is possible, but it's going to be a fair bit of programming work for you to build. All advice form here on assumes that you can't find a pluin to do that - mainly because it's not a plugin that I have heard anyone else ask for before!

    As a strating point, you'll need to create your own plugin. In the plugin you can set up an area that will let users upload files. After that you'll need to figure out the PHP code that you'll need to take the supplied image, and overlay it on top of a background image that you've specified and then save it out into another image file that you'll save somewhere.

    It's not going to be easy, but it is possible.

    One big thing to consider is that 99% of people won't know, understand or care about the difference between JPEG, GIF and PNG images. Because of this I'll guarantee that you'll get a huge amount of people that try to upload JPEG images to your system. The problem with that is that JPEG doesn't support transparency, so you won't see your background if you overlay a JPEG image on top of it. PNG and GIF do support this, but you still have to trust the users enough to remember to save the image with the transparency set up.

  3. mugamugaw
    Member
    Posted 1 year ago #

    I have little to no experience with PHP. I do have a working script with HTML5 canvas that allows people to draw on my image, would that work?

  4. catacaustic
    Member
    Posted 1 year ago #

    It would in a way. But how do you save that? I know that there's ways to send the data to the server, but you are always going to need some back-end system to do actually save it somewhere. After that, how do you get that drawing back next time? This is where the PHP side of things comes in. It's going to hurt, and be hard to pick up at the start, but to do something like that you will have to learn how to program - even just the basics that you'll need.

  5. mugamugaw
    Member
    Posted 1 year ago #

    The html5 script has something about URI encoding. It tripped me up when I saw this and I never pursued it. But,it is supposedly for communicating to a page on my website but I do not know for sure. I know some java and html and that's it!

  6. catacaustic
    Member
    Posted 1 year ago #

    Yeah, that's fine, What i said above still stands. To sve it anywhere you must have osme server-side script/program. As WordPress is written in PHP, that's the easiest way to interact with it. It's possible to do it outside of PHP, but you'll still need to use some PHP to get that back into the WordPress program anyway.

  7. mugamugaw
    Member
    Posted 1 year ago #

    Alright thanks for the info! Wish me luck, I'm gonna need it.

Topic Closed

This topic has been closed to new replies.

About this Topic