• 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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Thread Starter mugamugaw

    (@mugamugaw)

    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?

    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.

    Thread Starter mugamugaw

    (@mugamugaw)

    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!

    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.

    Thread Starter mugamugaw

    (@mugamugaw)

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Crazy question….maybe’ is closed to new replies.