WordPress.org

Ready to get started?Download WordPress

Forums

DrawBlog
Facebook Connect (4 posts)

  1. alejandronfb
    Member
    Posted 1 year ago #

    Hello Randy,

    Awesome plugin you created, thanks.

    Is it possible to use it in a Facebook Connect comment system? anyone?

    Greetings!

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

  2. alejandronfb
    Member
    Posted 1 year ago #

    another question... how can I increase the size of the penwidth3?

  3. randytayler
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I don't think it'll work with any outside comments systems, but I'll look into it.

    Penwidth... hmm. You can try editing wp-content/plugins/drawblog/drawblog_canvas.php, but the next time there's a new version of DrawBlog you'll need to change it again. Line 222:

    document.write("<tr><td class='drawblog_pens' id='penwidthbg"+i+"' style='padding:0 0 0 0; margin:0 0 0 0; border:0;'><img src='<?php echo plugins_url();?>/drawblog/icons/penwidth"+i+".png' width='"+((colors.length*10)-2)+"' height='15' onclick='drawblogSetWidth(\""+i+"\")' style='cursor:pointer; margin:0 0 0 0; padding:0 0 0 0;display:inline; line-height:15;background:none' ></td></tr>");

    Change that to say

    if (i<3) {
         //...all that stuff, the original line
         document.write("<tr><td class='drawblog_pens' id='penwidthbg"+i+"' style='padding:0 0 0 0; margin:0 0 0 0; border:0;'><img src='<?php echo plugins_url();?>/drawblog/icons/penwidth"+i+".png' width='"+((colors.length*10)-2)+"' height='15' onclick='drawblogSetWidth(\""+i+"\")' style='cursor:pointer; margin:0 0 0 0; padding:0 0 0 0;display:inline; line-height:15;background:none' ></td></tr>");
    } else {
         document.write("<tr><td class='drawblog_pens' id='penwidthbg"+i+"' style='padding:0 0 0 0; margin:0 0 0 0; border:0;'><img src='<?php echo plugins_url();?>/drawblog/icons/penwidth"+i+".png' width='"+((colors.length*10)-2)+"' height='15' onclick='drawblogSetWidth(\""+[YOUR WIDTH HERE]+"\")' style='cursor:pointer; margin:0 0 0 0; padding:0 0 0 0;display:inline; line-height:15;background:none' ></td></tr>");
    }

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

    Change [YOUR WIDTH HERE] to a bigger pen width, like 10 or whatever. The other problem that remains -- the fatter the pen, the weirder it draws. The stroke() method in Javascript doesn't really do a very good job of drawing fat lines.

  4. alejandronfb
    Member
    Posted 1 year ago #

    Thanks Randy!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.