Fixed Comment forms

I love having the comment form in a fixed position in the sidebar but I hate how the complete form doesn’t show if you are viewing the page in a small window. Nathan recently pointed it out and I thought no-one would ever notice until now. I wonder if there is a better solution rather then giving the form a fixed position style.

In the meantime I made the comment field smaller to limit the problem from happening again.

Sidenote: Mint needs a window height pepper.

With that aside:

Simple directions on how I implemented a “floating” comment box on my post pages in K2:

Just updated.

It is also posted here with full code.

About the Author, Dan Cameron:

I'm the owner and solution engineer at Sprout Venture, a web solutions company that specializes in web development including WordPress.

I started my first blog in 2003 and transitioned to WordPress in 2004. Since moving to WordPress I've written a few plugins and themes for public consumption. Lately I'm busy engineering/building/coding and have only been able to share a few code snippets.

If you're in need of some web development, web design or custom WordPress plugins and/or themes contact me, I'll be happy to discuss it with you.

Read More »

  • Dan
    sweet.
  • No, it just uses the same number as the number of posts per feed, which you can just set in the admin pages interface. You would only have to do something custom if you wanted the count to be different (between comments vs. regular post feeds).
  • Dan
    I don't hink I could change that. Maybe time for a new plugin.
  • Why would someone want an e-mail subscription when they could just use RSS?

    Speaking of RSS, you should up the limit on the number of comments in your feed, because right now it's at 10, and you often get a lot more comments than that per day.
  • Dan
    <form method="post" action="http://www.feedblitz.com/feedblitz.exe?BurnUser">

    <label for="email">Enter your email to subscribe:</label>
    <input name="email" maxlength="255" type="text" size="26" id="email"></input>

    <input name="uri" type="hidden" value="dancameron"> </input><input type="submit" value="Subscribe me!"></input>

    Powered by FeedBlitz

    </form>
  • Playground Equipment
    Do you provide a blog feed subscription for this blog so I can get it via email?
  • Hey, I am trying to get it to work with my site. I have got it to float on the right.

    Here's my problem:
    First, though it is aligned in the correct spot, ti doesn't stop if it hits another thing in the sidebar, like yours does (It doesn't overlap Related posts) (www.playground.pixelpolarity.com)

    Second, it would be super sweet if you could get this working in conjunction with nybble's sidebar manager hack.

    Thanks for the help in advance!
  • Trying
  • Dan
    I still don't see the big deal because who wants to comment right after you already left a comment, although you could accidently make a bad link. :D
  • Here is a link to some info about it and a fix for part of the problem.
  • Dan
    No, the same problem happens here. Maybe it's a browser issue. You know it happens over at Binary as well so it must be something in K2.
  • I too have this problem with K2 beta two r163. But it seems to work fine on this site. Dan is working some magic.
  • jd
    Now I have an issue with the comment text-area not 'reloading' after a comment has been inserted. Have any clues??
  • ch0de
    Trying.
  • jd
    Ok, I got it. Apparently there is something missing in the single.php in the latest version of K2. More in the forum.
  • jd
    I was celebrating too soon. I left a question in the forum.
  • jd
    Awesome. Thanxs!!
  • Hey, this is a great thingy, thanks!!
  • Dan
    yes it is.
blog comments powered by Disqus