WordPress Plugin: Lightbox Contact Form

An AJAX Style Lightbox/Thickbox Contact Form

There's plenty of Contact Forms out there, but my favorite doesn't support a lighbox application. So, I wrote my own.

That's where this plugin comes in. A fully WordPress integrated plugin that plays nice with other plugins, and gives you these powerful features:

  • Lightweight, easy to use
  • Sexy AJAX fade-in and fade-out
  • Easily styled with the built-in css editor
  • Display on any page
  • Includes the permalink for the page/post being viewed in the e-mail it sends so you can track where people are contacting you from
  • Use the widget, use the shortcode, or embed in your theme

The javascript lightbox/thickbox form displays right over the current page.

Usage:

  1. To display a contact FORM in your blog post, just place the shortcode [acg_lightbox_contact_form] in your post where you’d like the form to appear
  2. To display a LINK to display the lightbox contact form, just place the shortcode [acg_lightbox_contact_link linktext="YOUR LINK TEXT HERE"] in your post where you’d like the link to appear (Note: Replace YOUR LINK TEXT HERE with the link text to display)
  3. To display a contact FORM in your sidebar, just drop the “Lightbox Contact Form widget into your sidebar
  4. To display a contact LINK in your sidebar, just drop the “Lightbox Contact Link widget into your sidebar
  5. To embed a link in your them, just enter your link as follows:
    <a href="javascript:void(0);" onclick="acg_lbcf_pop();">Contact Us</a>
    • NOTE: This function can take the post id as a variable, for example:
      <a href="javascript:void(0);" onclick="acg_lbcf_pop(23);">Contact Us</a>
      would tell the form that page/post id 23 was sent.
    • It is possible to AUTOMATICALLY grab the post id. To automatically grab the post id, you'll have to use code like this:
      <?php global $post;?>
      <a href="javascript:void(0);" onclick= "acg_lbcf_pop(<?php echo $post->ID; ?>);">Contact Us</a>

Articles

Do you know Who's Looking for You?
People are looking for you - right now. Do you know how to help them . . . (full story)

Design for Scaleability.
Planning to be big from the very beginning can save you big . . . (full story)

Who Owns Your Domain Name?
It's your online identity, so you should be certain you have ownership . . . (full story)