WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. heydouggeorge
    Member
    Posted 5 years ago #

    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.

    http://wordpress.org/extend/plugins/draw-comments/

  2. kwon
    Member
    Posted 5 years ago #

    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.

    -
    andreas

  3. heydouggeorge
    Member
    Posted 5 years ago #

    mmm, some sort of conflict with the Custom Smilies Plugin
    http://wordpress.org/extend/plugins/custom-smilies-se/

    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.

  4. kwon
    Member
    Posted 5 years ago #

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

  5. kwon
    Member
    Posted 5 years ago #

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

  6. petriux
    Member
    Posted 5 years ago #

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

    http://www.willyoumary.me/2009/01/28/love-songs/

    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

Topic Closed

This topic has been closed to new replies.

About this Topic