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:
- 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
- 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)
- To display a contact FORM in your sidebar, just drop the “Lightbox Contact Form widget into your sidebar
- To display a contact LINK in your sidebar, just drop the “Lightbox Contact Link widget into your sidebar
- 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>
- NOTE: This function can take the post id as a variable, for example:
