WordPress.org

Ready to get started?Download WordPress

Forums

Greg's Comment Length Limiter
[resolved] gcllCounter is not defined (3 posts)

  1. Attila Fulop
    Member
    Posted 3 years ago #

    Hi I'm using v1.5.2 of your plugin, no comment_form function, but manually added textarea tweak:
    <p><textarea name="comment" id="comment" cols="5" rows="10" tabindex="4" <?php if( function_exists('gcll_tweak_textarea')){ gcll_tweak_textarea(); } ?>></textarea></p>

    The counter displays but doesn't count.
    Chrome says 'gcllCounter is not defined'.
    I've found no reference to such function in the source.
    wp_footer() gets called.
    I also made a grepping in the plugin directory files but neither have found any reference to gcllCounter there.

    Mystic, isn't it? :) What am I screwing up?

  2. Attila Fulop
    Member
    Posted 3 years ago #

    I investigated the do_js() function and also checked these:
    Admin is not limited,
    Tried with a non-admin user
    Comments are open for post

    and the script still doesn't get added.

  3. Attila Fulop
    Member
    Posted 3 years ago #

    ok, solved it:
    get_footer() was called but no wp_footer() right before the body.
    I overlooked it.
    Added wp_footer() call in footer.php, now it works like charm.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic