MenuCoranto Docs
Coranto LinksPmWiki Home |
Secure Contact Form ManagementUse Coranto with an SCForm Contact ListOn this page... (hide) The ScriptsCoranto is a Content Management Script available at: It provides a web interface for creating and updating your website content. SCForm is form mailer script that allows your list of contact e-mails to be hidden from e-mail harvesting robots. It is available at: http://jimsun.linxnet.com/SCForm.html AnalysisSince you can control the format that Coranto use to write its output files you can use Coranto to update this file. This means that you can update the e-mail addresses of the people on the contact list, add new contacts, or delete people from the list from just about anywhere you can access the internet. I suggest getting SCForm functioning correctly before you build the interface with Coranto. Once you have it installed and running making it work with Coranto is simple. SCForm Data StructureSCForm uses a delimited text file to store your contact information. The file has three fields
They are stored separated by a colon. For example: WebMaster: Web Master: webmaster@example.com This is a list of three contacts formatted for use by SCForm. The page with the contact form reads this file and displays the menu text as a drop down select list. The Key is used to tie the menu text to the e-mail address when the script that sends the e-mail is called upon submission of the form. Building the data file with CorantoNews FieldsTo use Coranto to maintain this list add three news fields.
Make them all one line text fields. Style CodeDefine a style (we'll call it contacts) with this structure: <Field: CustomField_FormKey>:<Field: CustomField_FormText>:<Field: CustomField_FormEmail> Enter the style code on one line and be sure to press return at the end of the of the line. Then save the style. Profile SettingsCreate a profile called Contacts and set the following options: filename: contacts.cfg (this is the name SCForm Uses) Set the path to the path where you put SCForm's contacts.cfg file when you installed it. Make sure:
are all blank. Select the news style we created earlier from the drop down list. Enable Headlines - Should be set to NO HTML Template - Should be set to none Sort Order - can be set to your preference. Anchor Tags - should be set to NO Save the profile settings and then enable the profile. If you are using XMS profiles to define profiles for submitting news make a new XMS profile for your contacts submission. Include the three custom fields you defined earlier and the standard subject field. Order them the way you want, save the profile, and enable it. How to useWhen submitting a contact fill out the three custom fields you made and then put a description of the contact in the subject field. The text in the subject field will show up on the modify news page. If you leave it blank you will have a bunch of blank entries on the modify news page, unless you are using an addon. When your news is built your test contacts.cfg file will be overwritten by the file Coranto creates. Go to your contact form page and you should see the list of contacts you entered in Coranto. Live ExampleI am using this system on Coranto Demo. Just select Contact Me from the menu on the left to see the form in action. Using a Ban ListSCForm also has a banlist. This can also be managed with Coranto. The banlist format is simply one entry per line. Create a custom field such as: BanList write a style: <Field: CustomField_BanList> Making sure that you add a return at the end of the line and save it. Following the steps above, create a profile that uses this style to create the banlist.cfg file used by SCForm in the same place you installed the file that came with SCForm. Notes
AlternativesYou should also look at the ShadowMail addon by Parahead. Publishing Information
You can leave comments using this form. |