Support » Plugin: GuahanWeb AJAX & WYSIWYG Comments » Can't get it to work

  • The installation description of the wysiwyg-editor is not really acurate, it says:

    5a. In the comments.php file, find the line that defines the textarea (“<p><textarea name=”comment” id=”comment” cols=”100%” rows=”10″ tabindex=”4″></textarea></p>”)

    But in my theme, as in TwentyTen and TwentyEleven, there is only a function ‘comment_form()’ call to generate the above code for the comment form textarea. Luckily we are allowed to pass arguments to this function as we can read here.
    So I tried this (needed the ob_start()/ob_get_clean() to get the output into a variable instead of outputting it directly to the browser):

    global $guahanAjaxCommentsPlugin;
    		if (isset($guahanAjaxCommentsPlugin)) {
    			$content = ob_get_clean();
    		} else {
    			$content = '<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>';
    		comment_form(array('comment_field' => '<p>'.$content.'</p>'));

    But no wysiwyg-editor is showing up. Not sure if I am doing something wrong or if it’s the plugin that’s not working.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Peter


    There’s an error in the plugin. It also can’t get the css files as it’s looking for guahanweb-ajax-comments and not guahanweb-ajax-comments-with-wysiwyg-support. The author hasn’t set up the plugin correctly as I also get this error after activating it:
    The plugin generated 1 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.

    Same problem here, error described by Peter makes it impossible to activate plugin.

    problems also for me.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't get it to work’ is closed to new replies.