-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Contact Form #4
Comments
Contact Form - Shortcodes1 Overview Overview Shortcode Parameters Each pair is seperated by & and name/values are seperated by =. If a parameter does not require a value, e.g. it switches something on or off, then just omit the value part. Code: Shortcode parameter syntax
ShortcodesCONTACTFORM_SEND_TO Parameters:
Code: example
CONTACTFORM_YOUR_NAME Parameters: label - display the label Code: example
CONTACTFORM_YOUR_EMAIL Parameters: label - display the label CONTACTFORM_SUBJECT Parameters: label - display the label CONTACTFORM_MESSAGE Parameters: label - display the label CONTACTFORM_SEND_TO_ME Parameters: label - display the label CONTACTFORM_CUSTOM_FIELDS Parameters: pre - HTML used to prefix the label CONTACTFORM_CUSTOM_FIELD Parameters: number - the number of the custom field to be displayed, starting at 0 for the first field (N.B. this may change to start from 1 for the 1st custom field in future) CONTACTFORM_OLD_CUSTOM_FIELD Parameters: number - the number of the custom field to be displayed, starting at 1 for the first field CONTACTFORM_MESSAGE_MANDATORY CONTACTFORM_BUTTONS CONTACTFORM_BUTTON_SUBMIT CONTACTFORM_BUTTON_RESET CONTACTFORM_DISPLAY_MESSAGE |
1 Details
2 User Pages
3 Admin Pages
3.1 E-Mails
3.2 Pages
3.3 Preferences
3.4 Fields
3.5 Read Me
4 Templating
Current version | 1.7
-- | --
Available from | e107 plugins
Author | bugrain
Requirements | e107 0.7.x
| The e107 Helper Project v1.0
Bug reports | Please post bug reports and request new features at bugrain's bugtracker
User Pages
There is one user page per query string (see below).
Each page displays a form that the user can complete that allows them to send an e-mail to a specific person.
Optionally, it can display other contact details (as defined in e107's Admin settings).
Admin Pages
E-Mails
Use this page to add, edit and delete e-mail addresses and related information.
These details will be presented to the user in a drop down to allow them to select who to send an e-mail to. The actual e-mail address will not be displayed or available in the HTML source.
Pages
Contact Form allows multiple pages to be defined, in effect multiple contact forms. This admin page allows you to add, edit and delete those pages.
Preferences
Fields
Deprecated
The following custom fields are deprecated and no longer displayed by default, please use the new Custom fields field (see the Pages admin page) instead.
Custom Fields
As many custom fields that are required can be added using the Custom fields option. Click Add field and select a field type - text, textarea, list, checkbox or radio button (and maybe more with later versions of the e107 Helepr Project plugin). You can then define attributes for your new field and click the Add button to add the field to the bottom of the field list. Use the Edit and Delete icons next to existing fields to edit and delete the associated field. The Show fields link will display all the defined fields and is there for debugging purposes (though clicking it will not cause any damage).
There are also four custom fields, just type a label for the field to have it displayed on the main user page as a text input field. These four fields are for backward compatibility with versions of Contact Form prior to v1.6,
Read Me
"Does exactly what it says on the tin!"
Templating
Contact Form v1.6 (and above) provides the option for the installer to customize page layouts using templates. The templating system used follows the standard e107 templating approach which relies on shortcodes. You should have some basic knowledge of templates and shortcodes (see other articles on this wiki) to understand how to write a template for Contact Form.
The advantage of using custom templates is that these templates will not be overwritten when plugin upgrades take place.
If you have a template you would like including with the next Contact Form release, please contact the plugin author.
The template to be used is selected from the current theme folder, if present, otherwise from this plugins folder. Note if you allow users to select their own theme then you will need to provide a template for each theme that you want to customize - theme's without a template will use the plugins template.
To create a new template, copy the default Contact Form template file (contactform_template.php) from the plugin folder to your theme folder(s). You can then edit the template in the theme folder(s) to suit.
The text was updated successfully, but these errors were encountered: