Want to know when there are new posts?

SUBSCRIBE VIA EMAIL

SUBSCRIBE VIA RSS

Aug 19th

CForms II - More on Using as a Comment Form

Topics: All Things Wordpress Blogging

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.

  1. Click global settings.
  2. Next select ‘WP Comment Feature Settings’
  3. 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’

  4. 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}">

  5. 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.

  1. 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.

  2. 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: , , , , ,



RSS Feeds

Sales Letter Graphics

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

61 Responses to “CForms II - More on Using as a Comment Form”


  1. Thanks alot for this information !!! Keep in the road !

  2. Nicely said, I enjoy the time that it took to research and write. Great work.

  3. Hey, i was seeing a leng in squidoo, then take me to another link that leave me here, it is a great post dude, thanks !

  4. I have read a few of your posts and they are all interesting and informative…keep up the good work.

  5. Paul says:

    Reply

    Excellent blog, thanks for all the hard work. Subscribed to feed :)
    Blog Post: Personal Finance Rules for Dummies

  6. Nice post. Thanks for sharing these tips.

  7. I readed several posts of your blog, but never taked the time to say thank you. Just that.

    Julie.

  8. ziben says:

    Reply

    Great Post!!!
    Doyou know how to change default comment field box
    Using cformsII. ?

    Anyway txx

  9. I searched on google and I had a hard time located the right info….until I found your blog.

  10. It was great to go through the stuff posted on your blog. Look forward to more useful posts in future.

  11. I Love your blog on google and have read many of your posts. Excellent. Keep up the good work!!!

  12. Whattadya know, another site to add to my reader! Google blog search has you pretty well indexed! Mark

  13. chandler says:

    Reply

    Keep up the good work. Look forward to reading more from you in the future.

    Blog Post: Weight Loss Pills - Unique Hoodia

  14. Alesha says:

    Reply

    What an inspirational post. It’s great to see some unique content and interesting read for once. There is too much rubbish cycling around on blogs now, so keep up the great work!

    Blog Post: The Pentax Optio E70 Digital Camera Receives the Thumbs Up From Internet Users

  15. Great site and great information too, do you use twitter?

  16. moue says:

    Reply

    More visitors will come if more interesting and informational topics keep being posted. :)

    • I intend to. Just gotten super busy with clients and projects. I will start posting again, soon.

  17. Gabby says:

    Reply

    Blogger has finally come up with the inline comment form.. nice to see more and more features getting added to blogger..I have also added the old comment form in my blog..

    Blog Post: How To Select Right Cage For Your Bird

  18. If you use an RSS reader just go to this link:
    http://www.erummunir.com/wp-content/themes/em/images/rss.png

    Or if you prefer to subscribe to the RSS feed via email, then just add your email in the top bar where it asks you to subscribe.

What Do You Think?

Enter your name as YourName@YourKeywords and YourKeywords will be used as the anchor link to your website. Psst this gives you Page Rank advantage.

  1. (required)
  2. (required)
  3. (required)

Comment Preview:

Just in case you wanna see.

You can also subscribe to comments via RSS Comments RSS