WordPress.org

Ready to get started?Download WordPress

Forums

DrawBlog
[resolved] Quick Question (25 posts)

  1. mugamugaw
    Member
    Posted 1 year ago #

    First of all great plugin!
    I just have 2 quick questions:

    First, is it possible to allow users to post the drawing like a blog post and not as a reply or comment?

    Second, is it possible to have a custom background canvas as the default?
    For example, if I wanted to allow people to draw on a map and ONLY draw on that map background.

    Thanks!

    http://wordpress.org/extend/plugins/drawblog/

  2. mugamugaw
    Member
    Posted 1 year ago #

    Sorry, I just answered my question about the posting thing. But I still need to know about having a custom default background canvas!

  3. randytayler
    Member
    Plugin Author

    Posted 1 year ago #

    I don't have a way to do that. How do you envision it working? How would the blog poster choose a default pic to go with his blog entry? At the time he writes his blog post? Or in the backend settings, so it's ALWAYS the default background, regardless of the post?

  4. mugamugaw
    Member
    Posted 1 year ago #

    So it is ALWAYS the background image, for example, if I wanted to make a site about travel routes in the U.S. I would allow people to draw their route on a U.S. map then post it. It would be the same map for everyone but each post would be different in what they drew ON the image.

    Would it be possible to make the canvas transparent then use css to bind a background image?

  5. randytayler
    Member
    Plugin Author

    Posted 1 year ago #

    Okay, I have a hard-coded fix for now. If you open up /wp-content/plugins/drawblog/drawblog_canvas.php, you can add this line at line 370. (Edit the URL to be the map you want, and your canvas resolution.) It's not pretty, and the next time I update DrawBlog you'll need to manually put the line in again, but it should work.

    drawblogDoPaste('http://www.50states.com/images/us_map.gif', 400, 300);

    Lemme know what you think.

  6. mugamugaw
    Member
    Posted 1 year ago #

    It works! I love you so much man!

    Thanks!!

  7. mugamugaw
    Member
    Posted 1 year ago #

    Small problem! The eraser turns everything white, I do not think that your fix will address this so should I just edit out the eraser from the script?

  8. mugamugaw
    Member
    Posted 1 year ago #

    Annnnnnd when I try to make a post it is not working, the canvas is just white, my image is not on it. It is only working if I try to leave a comment or reply.
    Thanks man I appreciate it.

  9. randytayler
    Member
    Plugin Author

    Posted 1 year ago #

    Huh - I thought I replied - sorry. Yes, the eraser only turns things white. No way to fix that, really. Sorry.

    As for adding it to a post...

    /wp-content/plugins/drawblog/drawblog_post_canvas.php needs that line inserted right at 264. That should do it.

  10. mugamugaw
    Member
    Posted 1 year ago #

    When I do that it is still white and now I can not draw anything on it.

  11. randytayler
    Member
    Plugin Author

    Posted 1 year ago #

    Oh great. Oh! Wait. I know why. Okay, crap.

    I'll need to add this to the next release - you're not the only one requesting it. Maybe this coming weekend?

  12. mugamugaw
    Member
    Posted 1 year ago #

    That would be great man. I really appreciate it!

  13. mugamugaw
    Member
    Posted 11 months ago #

    Hey man have you got an ETA on that fix?

  14. randytayler
    Member
    Plugin Author

    Posted 11 months ago #

    Sorry, not yet. I did do some work on DrawBlog over the weekend, but not enough yet to release. I'm going to keep going on it this week.

  15. mugamugaw
    Member
    Posted 11 months ago #

    Any idea how much longer?

  16. randytayler
    Member
    Plugin Author

    Posted 11 months ago #

    So sorry. Been swamped. I'm going to try to release something by tomorrow night.

  17. randytayler
    Member
    Plugin Author

    Posted 11 months ago #

    Okay! Releasing v0.9 today. This should allow you to do the background image like you wanted, though you'll need to update the background image in the admin area, and it needs to be hosted on your own site. It'll also work for new posts.

    If this resolves the issues (I hope it does!), can you close this thread? Lemme know if you see any problems.

  18. mugamugaw
    Member
    Posted 11 months ago #

    Hey man IT'S PERFECT!
    Just one little thing. Obviously the eraser does not work with the canvas so how can I just edit it out completely?

  19. mugamugaw
    Member
    Posted 11 months ago #

    Also the clear all turns everything white so how could I edit that out also?

  20. randytayler
    Member
    Plugin Author

    Posted 11 months ago #

    In drawblog_canvas.php, delete lines 226 and 227... I think that's all you need to do.

  21. mugamugaw
    Member
    Posted 11 months ago #

    That did not do anything that I can see

  22. randytayler
    Member
    Plugin Author

    Posted 11 months ago #

    Hmm. That should do it on the comment form, but not on the post form. Were you looking at the form for making comments or the one where you post new blog entries?

  23. randytayler
    Member
    Plugin Author

    Posted 11 months ago #

    It's these two lines you want:

    document.write("<img src='<?php echo plugins_url();?>/drawblog/icons/eraser.png' onclick='drawblogEraserOn()' style='cursor:pointer' id='eraserbutton'>");
    document.write("<img src='<?php echo plugins_url();?>/drawblog/icons/erase_all.png' onclick='drawblogClearAll()' style='cursor:pointer'>");
  24. mugamugaw
    Member
    Posted 11 months ago #

    Yay everything is perfect now. I really appreciate the help man this is an awesome plugon!

  25. xiao_coffe
    Member
    Posted 7 months ago #

    How did you solved the first question?

    edit, sorry I´am stupid! Can they instert that from front end and not backend.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags