Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter alejandronfb

    (@alejandronfb)

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

    Plugin Author randytayler

    (@randytayler)

    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.

    Thread Starter alejandronfb

    (@alejandronfb)

    Thanks Randy!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Facebook Connect’ is closed to new replies.