This post is just to test Comment Image plugin with a configurable numer of images!

Freely try it!

Similar Posts

13 Comments

  1. Hi Stefano,

    I still do not get the possibility to add more then one image at a time. I use now the Java-script injection and I looked on the source code of this page and copied it. But it is still not working. Please can you, or anybody else help me?

    Greetings Walter

    Below the javescript code I used:

    for (i=0; i<document.forms.length; i++) {
    var f = document.forms[i];
    if (f.comment_post_ID) {
    f.encoding = "multipart/form-data";

    var l = f.getElementsByTagName("textarea");
    l = l[0].parentNode;

    var p = document.createElement("p");
    var t = document.createElement("input");
    t.setAttribute("name", "image5");
    t.setAttribute("type", "file");
    t.setAttribute("style", "width: auto");
    p.appendChild(t);
    p.appendChild(document.createTextNode("Add your pic here (JPEG only)"));
    l.parentNode.insertBefore(p, l.nextSibling);

    var p = document.createElement("p");
    var t = document.createElement("input");
    t.setAttribute("name", "image4");
    t.setAttribute("type", "file");
    t.setAttribute("style", "width: auto");
    p.appendChild(t);
    p.appendChild(document.createTextNode("Add your pic here (JPEG only)"));
    l.parentNode.insertBefore(p, l.nextSibling);

    var p = document.createElement("p");
    var t = document.createElement("input");
    t.setAttribute("name", "image3");
    t.setAttribute("type", "file");
    t.setAttribute("style", "width: auto");
    p.appendChild(t);
    p.appendChild(document.createTextNode("Add your pic here (JPEG only)"));
    l.parentNode.insertBefore(p, l.nextSibling);

    var p = document.createElement("p");
    var t = document.createElement("input");
    t.setAttribute("name", "image2");
    t.setAttribute("type", "file");
    t.setAttribute("style", "width: auto");
    p.appendChild(t);
    p.appendChild(document.createTextNode("Add your pic here (JPEG only)"));
    l.parentNode.insertBefore(p, l.nextSibling);

    var p = document.createElement("p");
    var t = document.createElement("input");
    t.setAttribute("name", "image");
    t.setAttribute("type", "file");
    t.setAttribute("style", "width: auto");
    p.appendChild(t);
    p.appendChild(document.createTextNode("Add your pic here (JPEG only)"));
    l.parentNode.insertBefore(p, l.nextSibling);

    break;
    }
    }

  2. it is not working on my website, I only get one image.

    Is there somewhere an explantion how to do this right? If I look to the code of this side it looks tatally different then mine so I do not understand it.

    Ofcourse one image is nice already but i would like to give the possibility of adding more then on image.

  3. Stefano, I’ve installed your postcard plug-in, but can’t get it to work. I went to the help page and got a 404 error. I really want to get this working since next week we’ll be selling our product (a novelty calendar). If I can get this to work I’d happily contribute $.

  4. Another great plugin !

    Not only nice for photos but can be very useful for sites about softs/systems when screen copies are needed.
    By the way, just a small error in the admin panel, the sentence : “The label you want to be displayed near the image selection field” under “Miniature max width” should be replaced by something like “Indicate the max width (in pixels) for photos before being automatically resized”

    Ok so let’s now upload another hot chick :-)

Leave a Reply