Support » Plugins and Hacks » [Plugin: Draw Comments] How to Activate for Only One Post/Page?

[Plugin: Draw Comments] How to Activate for Only One Post/Page?

  • heydouggeorge


    Hello. First off, I love the plugin… so unique!

    I am wondering if anybody has any ideas of how to run this (or a plugin that works in this fashion) selectively — that is, only for one post (or page in my case).

    Can I make creative use of Exec PHP?
    Can I pass a parameter to do_action(‘comment_form’, $post->ID) within a second comments template?

    So far I’ve created a page that uses its own page template that calls its own comment template. However since the plugin hooks into do_action, and this appears in my regular comments template — it appears everywhere. Is there someway to rewrite the plugin or call its functions from a template?

    Yikes wayyyyy over my head.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    thanks for loving and using my plugin 🙂

    I published a new version (0.0.4), which adds an option to not hook into do_action. Just go to Settings => Draw Comments and set the option to “No”. Now you have to embed the drawing area with echo getDrawArea().getColors(); and comment_form is out of use.




    mmm, some sort of conflict with the Custom Smilies Plugin

    I’ll try to post a little more info… in short, I got the plugin working beautifully on one page by employing a unique comments template that calls echo getDrawArea().getColors();

    in an attempt to remove the custom smilies i’m using on this site from this one page with comment draw, i tried removing do_action from the template (realized since then i could of course use css to hide smilies, etc) … i then discovered throug testing that i needed do_action or the drawing data would not be passed to wordpress with the form.

    when i replaced do_action i realized site-wide (including the main comments template without getDrawArea etc) display of custom smilies no longer functioned.. that is the emoticons were no longer converted and some text appeared to be bolded. when i deactivate draw comments the problem disappears.

    Ok thanks for the info, i’ll try to figure it out as soon as possible.

    just released version 0.0.6, now the smilies “:), :lol:” should be converted to images again..

    i am trying to install new version of
    draw comments plugin
    and get a problem


    Chmod is 755
    the images is created in file

    where can be a problem
    i am using WP 2.7 and draw comments 0.0.9

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Draw Comments] How to Activate for Only One Post/Page?’ is closed to new replies.