WP-ContactForm


The WP-ContactForm plugin allows you to offer a contact form (Figure 64) in addition to, or instead of, an e-mail link. The main benefit of this is that the form shields your e-mail address from e-mail harvesting robots that collect e-mail addresses for spamming purposes.

Figure 64. You can use WP-ContactForm to create a contact page for your site.


WP-ContactForm was written by Ryan Duff and can be downloaded from ryanduff.net/projects/wp-contactform.

Tip

  • The WP-ContactForm plugin offers a quick and easy way to create a Contact Page (Figure 64)


To install WP-ContactForm

1.

Upload the wp-contact-form folder to the plugins folder in your wp-content folder.

2.

In the Plugin Management administration panel, activate the WP-ContactForm plugin.

3.

Click the Options button at the top of the administration panel and then click the Contact Form button. The Contact Form Options administration panel appears (Figure 65).

Figure 65. Set options in the Contact Form Options administration panel.


4.

Set the options as desired:

  • E-mail address is the address you want the contact message sent to.

  • Subject is the subject of the contact message, as it will appear in your e-mail application.

  • Success Message is the message that appears to the user when the contact form is successfully submitted.

  • Error Message is the message that appears to the user when the contact form cannot be successfully submittednormally due to an incomplete form.

  • Show 'Contact Form' Quicktag adds a button to the post or page editing window (Figure 66) to make it easy to insert the code for the contact form.

    Figure 66. Creating a contact form is as easy as inserting a line of code in a post or Page.


5.

Click the Update Options button.

To insert a contact form

1.

In the post or Page editing area of a Write Post or Write Page window, insert the following line of code where you want the form to appear (Figure 66):

<!--contact form-->


or

While composing a post or Page position the insertion point where you want the contact form to appear and click the Insert Contact Form button (Figure 66).

2.

Publish or save the post or Page.

3.

View the post or Page you created in your blog to confirm that the Contact Form appears as expected (Figure 64).

Tip

  • Although the Contact Form code resembles an HTML comment, it is lacking the spaces required for a normal comment. The correct form is:

    <!--contact form-->

    where the only space is between the words contact and form.





WordPress 2. Visual QuickStart Guide
WordPress 2
ISBN: 0321450191
EAN: 2147483647
Year: 2004
Pages: 142

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net