Home arrow Downloads arrow Mambo* Plugins - functional arrow MG Contact Component

MG Contact Component Download

Description:

UPDATED 7 November 2006

The Mambo Guru alternative to the standard Mambo 4.6 Contact Component. It is hardened against spammers and also has minor functionality improvements, such as going straight to the list of contacts in the case where there is only one category. Part of the anti-spam is that visitors are not permitted to send a copy of the message to themselves, and registered users are only permitted to send a copy to their own registered address.

A major extension is a capability to generate a more structured form for user input. There is an additional text area in the admin side which allows for the entry of the form. A simple (and meaningless) example of a form is:

"Martin's test form is just text {fname:5:50} followed by {rname:menu1||menu2||menu3} more text and {rbname:radio:but1||but2} and so on with {sname:15} just a single number and at this point we put in a line break
and then we have a checkbox {cbname:checkbox:one thing&&another thing&&and so on} and so we continue"

This illustrates the main features. Each entry apart from plain text is enclosed in curly brackets. The first item within the bracket is the field name, which must be unique for the form. It is followed by a colon. If there is then a single number, an input field of the specified length will be created. If there are two numbers, then a text area with the specified dimensions will be created.

Menus can be created by adding a set of options. If they are separated by || then only one menu item can be selected; if they are separated by && then multiple items can be selected.

Following the field name and colon with "radio" or "checkbox" will create a set of radio buttons or check boxes respectively. Only || can be used to separate radio button options and only && can be used to separate checkbox items.

There is an additional parameter for each contact - you can specify if the email sent after a contact request is to be XML or not. The form data is analysed by the contact component and an email sent to the address indicated in the contact data. If XML is selected, the whole of the email body will be simple XML containing the form data. This may be easier to process than the plain text version which will otherwise be sent.

Please note that installing the Mambo Guru Contact component will automatically cause the standard Contact Component (if present) to be uninstalled. It cannot be uninstalled by the usual administrator interface. The code is left in place - you should manually delete it if you do not require the old component any longer.

NOTE: Suitable ONLY for Mambo 4.6.

Submitted By:
Super Administrator (admin)
Submitted On:
07 Nov 2006
File Size:
27.30 Kb
Downloads:
649
License:
GNU/GPL
File Version:
1.0
File Author:
Martin Brampton
File Date:
07 Nov 2006