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

95% Of Your Minisite Design Done For You--INSTANTLY?
This is a complete solution! We're Talking Full Blown Graphics--From Top To Bottom--At A FRACTION Of What You Would Pay A Designer! 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... - Is Your Comment Author Link All Messed Up?
Did you recently upgrade to WP 2.7 and noticed that your comment... - 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...


Andy Bailey says:
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:
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:
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:
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:
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.
Henry Masterson says:
On January 15th, 2009 4:57 am
Very interesting read.
Susan Marcens says:
On January 15th, 2009 8:40 am
This is what I was looking for. Thanks.
Amy Denver says:
On January 15th, 2009 9:11 pm
Thanks a lot for this. I will recommend your blog to my friends.
David Coleman says:
On January 15th, 2009 9:18 pm
Would you mind if I add this article to my blog? By providing credit and link ofcourse.
Erum Munir says:
On January 30th, 2009 3:32 am
David, Thanks for asking. But I’d rather not have the article copied elsewhere. You are welcome to link to it, though
Kevin Deboer says:
On January 16th, 2009 6:33 am
I just find your blog. I must say that it is very good read. I will recommend it to my friends.
Carol Sanderson says:
On January 20th, 2009 8:45 pm
I would like to get further information on this. You gave a lot of good points but there are still missing parts.
Erum Munir says:
On January 21st, 2009 3:35 am
Cforms has a support forum if you need more info.
CForms Forum
Y says:
On February 9th, 2009 3:57 pm
Just checking if cforms work with wp2.7 threaded comments…
Y says:
On February 9th, 2009 4:10 pm
Erum, it seems to work.. have you modified cforms to work? Now cforms posts only “depth-1″…
Erum Munir says:
On March 13th, 2009 6:50 am
I’m not the author of Cforms … I have just written this tutorial to help people who want to use the plugin.
The plugin author updates the plugin regularly and makes sure it is up to date with the latest WP version.
Hot Penny Stocks says:
On January 24th, 2009 12:05 pm
Great article I will be back in a couple day to see others posted. Also nice site I really like the template you have.
seo essex says:
On January 26th, 2009 1:39 pm
Great post as always. You should really make a career outta this
Jamie Hunt says:
On January 29th, 2009 10:44 am
Thanks so much for the resource, I have found it quite useful and have bookmarked your site!
Jeremy says:
On January 29th, 2009 8:57 pm
Do you take donations here ? Thank You
Erum Munir says:
On January 30th, 2009 3:13 am
I”ve been meaning to install the donations plugin for WP. But if anyone’s interested in the meanwhile my Paypal email is emunir at gmail.com
Jon kline says:
On February 1st, 2009 10:39 pm
I enjoyed reading your post and really like your style. I have bookmarked for future visits …. Keep up the good work
Mephit322 says:
On February 2nd, 2009 10:53 am
Excellent post. I’m enjoying your blog, going to subscribe!
Aaron Benson says:
On February 5th, 2009 1:23 pm
I enjoyed reading this article. It seems that you are a great source of information. Keep them coming.
Mark says:
On February 10th, 2009 4:23 am
Enjoyed your site! =)
xSubZer0x says:
On February 10th, 2009 7:06 pm
Awesome Article I enjoyed reading it
Designer says:
On February 11th, 2009 3:20 pm
This is great article. Thank you, and I will forward to all my freinds.
blogg says:
On February 12th, 2009 12:28 pm
I really liked your blog!will chck back soon again thx
Fun Director says:
On February 13th, 2009 12:05 am
Can you tell me who did your layout? I have been looking for one kind of like yours. Thank you.
Erum Munir says:
On February 13th, 2009 2:25 am
Thanks! Glad you like the layout
I designed it myself. My design website is DotsnDashes Website Designs
Marc says:
On February 18th, 2009 10:51 pm
Please keep up the good work.. I enjoy reading your thoughts.
Josh Patrone says:
On February 21st, 2009 4:03 pm
Pretty nice… Hope you can write more, so I can read more!
Erum Munir says:
On March 13th, 2009 6:55 am
Thanks! I do plan on writing more soon. Just been very busy with some personal stuff lately. But I am going to get back to this blog
missouri forums says:
On February 24th, 2009 4:30 pm
Your instructions were very clear & concise.
This should be very helpful for my Blog.
Thank you
-Josh
Steven says:
On March 4th, 2009 6:21 pm
Where is the best place to learn about this? This is a good article, thanks
Erum Munir says:
On March 13th, 2009 6:56 am
You can learn more at the Cforms Forum.
Ubuntu says:
On March 11th, 2009 9:35 am
Nice blog post,i found this blog at yahoo and i like it.
Blog Post: AutoScan Network, Network Monitoring and Management Tool
Mikrodalga Tarifleri says:
On March 12th, 2009 6:31 am
I am reading your blog posts for a long time and this is my first comment at your blog because i like the post
Please keep it up.
Erum Munir says:
On March 13th, 2009 6:57 am
Thank you so much!
Really glad to hear that.
Samantha J.White says:
On March 15th, 2009 9:07 am
Cool post, i have subscribed to your blog.Please keep it up, Samantha
Viruster says:
On March 16th, 2009 3:46 am
Thank you very much for the info, very informative and useful. I will add this to my collection of cool sites! Thanks again!