CForms II - More on Using as a Comment Form
Good news! There is a new version of CForms that is out and has got great features. The best thing about it is it has got most of the features on my wish list
So here goes…
Plugin Compatibility
CForms is now completely compatible with three of the most used comment plugins.
First Step is to install the above mentioned plugins and activate them.
Next… adding Subscribe To Comments and CommentLuv

When you add the comment form you will notice two extra fields: Subscribe To Comments and CommentLuv. Adding these will make sure that the two plugins now work seamlessly with CForms. Yes it really is that simple!
And … WP AJAX Edit Comments
This is the simplest one to work with as all you need to do is upgrade to the latest version of this plugin. The plugin authors of both CFORMS and WP AJAX Edit Comments have worked together to make sure the plugins are compatible. So hats off to them.
Comment Template
When you post a comment using the CForms comment form, you might not get to see the comment posted until you refresh the page. This is because there is one last setting that needs to be adjusted.

- Click global settings.
- Next select ‘WP Comment Feature Settings’
- The most important setting here is ‘Parent Comment Container’. Your comments are wrapped in an ol tag. Whatever id is set for that must be added to this field. Example:
<ol id="commentlist">In this case the ‘Parent Comment Container’ will be ‘commentlist’
- Next we design the look of the comment template to match the one in comments.php. This can be done under ‘New comment HTML template’. If you click on Supported Variables you will see a list of all that you can use. The good news is that there is now a gravatar option. Also if you use the Default Template as the starting point, it also has the option of alternating the class.
<li class="alt" id="comment-{id}"> - Lastly you can also set the gravatar size to your liking.
You should now be able to preview your comment without re-loading te page plud have the option of editing it if yo are using the WP AJAX Edit Comments plugin.
Troubleshooting
There are some problems you might run into.
- You might note that your first comment needs refreshing while the follow-up comments can be easily viewed without a reload.
There is a reason. Your most probably have your comment code like this:
If Comment { <ol id="commentlist"> <li> Comment Here </li> </ol> }Note that the ol tag is only displayed if there is a comment. Your blog doesn’t know there is a first comment until the page is re-loaded. Since the ol tags are not used, CForms cannot show the comment. If you have them outside the ‘if comment’ and the ol tag is rendered regardless of whether there is a comment or not then Cforms can work its magic.
- You might find that you can no longer access your Wordpress admin or that pages go blank after you save settings. Check to make sure that cforms.php in your plugins/cforms folder does not have any empty spaces at the end. If the problem persists, then it can be a PHP memory issue. This can be set in your php.ini file if you run your own server or you can ask your host to increase PHP memory to say 32 or 64.
Enjoy the new version of CForms … I’m sure this plugin will continue to improve. In which case there will be a part 3 to this tutorial someday.
Tags: CForms, CommentLuv, Comments, Forms, Subscribe To Comments, Wordpress Plugins

Turn Ordinary Sales Letters Into The Extraordinary!
You'll Save A Ton Of Time And Money, Plus Explode Your Sales With The Sales Letter Graphics Pack! Find Out More
Related Posts
- CForms II - The All In One Contact Form Solution
Cforms II is a Wordpress plugin which makes it easy for you... - Explode and Increase Comments Using These Wordpress Plugins
I have already discussed a few techniques and plugins you can use... - Updated List of Important and Useful Wordpress Plugins (WP 2.5.1)
It is time for an updated list of useful Wordpress Plugins that... - How To Get Visitors To Leave Comments?
You have to motivate your visitors to leave comments. How do you... - King of All Plugins
This has to be the most useful and time saving plugin ever....



Andy Bailey says:
Reply
On August 19th, 2008 5:32 am
excellent tutorial! nice to see how easily commentluv and subsribe to comments are added to this great form
Blog Post: Taking a break!
Susan says:
Reply
On August 20th, 2008 12:58 am
Great to know, since this is one of my more favorite plugins.
Blog Post: Royale Blue
Brandon says:
Reply
On November 20th, 2008 6:00 pm
Thanks for the info, just what I was looking for. Very innovative site by the way.
Andi says:
Reply
On December 27th, 2008 10:39 am
I got all set and working (like mail), except for the comments to show up. I have read the faq and the tutorials and still have to ask someone:
1. I changed wordpress comments.php from
to
2. Set “mycommentcontainer” in cformsII global settings.
3. the template id=”comment-{id}” should match the actual one. i tried all kinds of possible id’s from my theme’s comment.php and cformsII forms… Can you tell me, if it’s comment-{2} or evencomment-{cform2form}?
I am quite familiar with php, but here I got something completely messed up?!?! Thanx for your advice.
Erum Munir says:
Reply
On December 29th, 2008 3:07 am
ol id=”commentlist”
This is the ID that needs to match in both your comments.php and cforms comment container.