Enquiry/Contact Form
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
Plugin page for the Enquiry/Contact form plugin
Please see this page and this page for more details on this plugin until I complete the installation and setup instructions.
Installation
First download the most recent version of this plugin by clicking on the Download link on the right hand side of this page.
Unzip the downloaded file and then upload the clearskys directory to the wp-content/plugins directory of your Wordpress installation. If you already have a clearskys directory, then set your upload to overwrite any existing files, as this plugin will have updated a few of our common include files with newer versions.
When you have completed this step you will have a clearskys sub-directory in your plugins directory that contains all of the files (and an includes directory within that).
Setting up your system
The first thing to do after you have uploaded the plugin is to go to the Plugins administration page of your blog and click on the Activate button next the the Enquiries plugin.
After that you need to click on the Options menu and then go to the Enquiries options page. This will create all of the default settings for the plugin.
Including a form on your page or post
To include an Ajax powered form onto a page or post, click on the button to switch your editing to HTML mode and add the following in the place that you want your form to be displayed:
<!-- clearskys#enquiry-formajax -->
If you would rather have a standard HTML form then add the following instead:
<!-- clearskys#enquiry-formstd -->
Specifying a property for the enquiry form
To have the enquiry form register the users enquiry against a specific property, there are 3 tags that are very similar in layout and style as those for the Booking manager and availability plugin.
To specify a specific property numbe you can use the simplest tag below:
<!-- clearskys#enquiry-property(n) -->
So to have include a standard form on a page, and to have all enquiries sent via that form marked as being for property number 3, I would use the following markup in my page:
<!-- clearskys#enquiry-property(3) -->
<!-- clearskys#enquiry-formstd -->
If I wanted to have a more generic system, I could create a single page to display my property details and enquiry form and pass the property number in using a query attribute. In this case I would use the tag below:
<!-- clearskys#enquiry-propertyfromattr(n) -->
So to display an Ajax powered form and pass the property number in using the query attribute prop I would use the following markup:
<!-- clearskys#enquiry-propertyfromattr(prop) -->
<!-- clearskys#enquiry-formajax -->
The URI to call that page would be in the format:
http://blog.clearskys.net/viewproperty?prop=2
The final option is to pass the property number as an element of the URI.
So if I wanted to use the following URI to specify property number 6, and show a standard form:
http://blog.clearskys.net/viewproperty/6
Then I would include the following markup:
<!-- clearskys#enquiry-propertyfromuri(2) -->
<!-- clearskys#enquiry-formstd -->
The URI number is calculated in the following way:
0 - blog.clearskys.net
1 - viewproperty
2 - 6
Setting up your Feed
more coming soon, but the feed URI works in the same manner as described on this page.
Styling your Form
The styles included with the plugin are all included in the enquiryform.css file found in the clearskys/includes/css directory of the plugin.
These can be used as a basis for generating your own styles.
more details soon…
Support
Please ask any support questions in the forum.
Tags: Uncategorized