60+
October 9, 2020
December 17, 2009
Ever found your theme doesn’t support threaded comments? Would you like it to
be able to have P2 style live commenting on your site? Spectacu.la Discussion
is a plugin that replaces the commenting code in your theme with a fully Ajaxed
comments engine.
The plugin uses memory tables for fast caching within the database (no pesky
permission setting for you to worry about here) and adjustible polling times to
suit a wide range of server performance.
The plugin is also developer friendly, meaning that you can easily add styles to
your theme so that should a user implement the plugin your meticulous design can
be carried through. By default there are two styles that should work in most
cases. Read below for further instructions.
Once installed this plug-in will replace your theme’s comments template with its
own fully Ajax comment template. This allows both submission and update of
comments without a page refres letting your visitors use it more as a chat room
than the more traditional comment system. You can also roll up replied which can
be told to trigger at any depth you feel is best using the settings page. Also
available on the plug-ins admin page is the option to use another or no
stylesheet, toggle the live updating of comments and change the refresh period
for live update.
As of version 2 you can now easily add new stylesheets to the available list by
either copying them into the plug-in’s style folder with a comment at the top of
the sheet that looks like this /* comment style: Stylesheet name */ or adding a
commenting.css to your theme or child theme. Once added they will then be listed
in the dropdown menu that shows on the admin page.
The plugin is also, of course, Multisites compatible.
=The filters=
There are a few filters available for developers to intercept the javascript,
paramerers passed to the javascript and the CSS file location
To replace the CSS file you could add something like the following to your
functions.php that would point to a comments.css file in the folder of your
current theme. This will then override any choice made by the user on the admin
page.
<?php
add_filter('spec_comment_css', 'my_css_file');
function my_css_file() {
return get_bloginfo('template_directory') . '/comments.css';
}
?>
Every effort has been made to make this work with as wide a variety of themes as
possible but we can’t cover every eventuality so some themes out there will
cause problems with this plugin without you doing something to either the
plug-in or the theme first. The most likely cause of problems is that some of
the CSS in the theme conflicts with the CSS in the comments. There are various
other areas where problems could arise, such as if the theme doesn’t call the
comments.php using the comments_template(); template tag or if your theme
deals with comments in an unusual way, such as placing them in a sidebar or
calling them in using Ajax that conflicts with our own. A missing or unusual
DOCTYPE could cause problems too, in fact there are lots of things that could
cause strangeness. However with most of the themes I’ve tested this with it has
worked without issue straight out of the gate and even if it doesn’t look right
you need only disable the plug-in to go back to how things were, so nothing’s
lost.
You can either install the plugin using the WordPress auto-installer, or
manually:
commenting.php and all sub folders to/wp-content/mu-plugins/ directory.Unfortunately it’s not possible for us to check this code against every theme
out there so from time to time you may run into some incompatibilities. It’s
possible that some CSS in your theme’s style.css is causing issues. You could
try stripping out all commenting related CSS from it and see if that makes any
difference. If it’s not that then it might be that your theme isn’t calling
comments_template() to add the comments code, if that’s the case then you’re out
of luck unless you know where to look in the theme code or you can get your
theme developer to change their theme.
For the few still using this I've just fixed a bug/error that stopped all
comments from being posted by complaining that all fields were empty even
when they weren't. This plug in should probably not be being used but for
those that are I'll fix critical bugs when then show up.
| Version | Download | Type |
|---|---|---|
| 2.3.2 | Download | Stable |
| 2.3.1 | Download | Stable |
| 2.3 | Download | Stable |
| 2.2.2 | Download | Stable |
| 2.2.1 | Download | Stable |
| 2.2 | Download | Stable |
| 2.1.7 | Download | Stable |
| 2.1.6 | Download | Stable |
| 2.1.5 | Download | Stable |
| 2.1.4 | Download | Stable |
| 2.1.3 | Download | Stable |
| 2.1.2 | Download | Stable |
| 2.1.1 | Download | Stable |
| 2.0.1 | Download | Stable |
| 2.0.0 | Download | Stable |
| 1.0.3 | Download | Stable |
| 1.0.2 | Download | Stable |
| 1.0.1 | Download | Stable |
| 1.0.0 | Download | Stable |
| Development | Download | Trunk |