github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jcrisp / mephisto_contact_form

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Plugin for Mephisto which provides a customisable contact us / feedback form. Feedback / messages are sent via email to an address you specify. Previously hosted at http://mephisto-contact-form-plugin.googlecode.com/svn/trunk/ — Read more

  cancel

http://jamescrisp.org/2007/03/19/contact-feedback-form-plugin-for-mephisto/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

escape tainted strings for safe_erb security 
isaac (author)
Sun Mar 15 19:03:47 -0700 2009
jcrisp (committer)
Thu Mar 26 17:01:46 -0700 2009
commit  606ee3b350c274cc3b7d80334e1832e954c9f102
tree    39e850797f44b235e1b5753d7083463b9ef5a4db
parent  4713135d30fd8d8f74faeede30cd8c5d002f5ad2
mephisto_contact_form /
name age
history
message
file LICENSE Loading commit data...
file README
file Rakefile
directory app/
file init.rb
directory lib/
file routes.rb
directory test/
README
MephistoContactForm
===================
Contact / Feedback form plugin for Mephisto
Required setup: Rails edge, Mephisto (from trunk rather than release)

Installation
------------
1. Install plug-in into:
  {MEPHISTO_ROOT}\vendor\plugins\mephisto_contact_form

2. Create a new template called 'contact_us.liquid' though the admin web interface (under the 'Design' tab).
Paste in the following code:

<H1>Contact Us</H1>  
{% contactform %}
  <p>{{ form.name }}<label for="author"><small>Your name</small></label></p>
  <p>{{ form.email }}<label for="email"><small>Email address</small></label></p>
  <p>{{ form.phone}}<label for="phone"><small>Phone number (optional)</small></label></p>
  <p>{{ form.subject}}<label for="subject"><small>Subject</small></label></p>
  <p>{{ form.body }}</p>
  <p>{{ form.submit }}</p>
{% endcontactform %}

Feel free to modify labels, layout etc.

3. Edit {MEPHISTO_ROOT}\vendor\plugins\mephisto_contact_form\lib\contact_notifier.rb
and put in the email address you want contact form submissions to go to.

4. Link to "/contact_form" from your site.


Other Details
-------------
Author::        James Crisp  (james.crisp@thoughtworks.com)
Further info::  http://jamescrisp.org/2007/03/19/contact-feedback-form-plugin-for-mephisto/
Copyright::     Copyright (c) 2007 ThoughtWorks
License::       Apache Version 2.0 (see http://www.apache.org/licenses/)

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server