Secure user profile contact form

Secure user profile contact form

BMC Quickies

Quickie: Easily add a secure contact form to your per-site user profiles

On several sites I've seen per-site user profiles that have a link to PM this user, which leads to the Wikidot.com user account page. Often this is less than ideal, because it means users have to leave the familiarity of your site for the Wikidot account page, which they may never have seen before. The alternative is to setup a MailForm module on your profile:_template page with to="%%created_by%%". I've tested this over at RoaringApps, and it works a-okay, only sending the message to the specified user.

[[module MailForm to="%%created_by%%" title="RoaringApps - New message from your user profile contact form"]]
# name
 * title: Name
 * type: text
 * rules:
  * required: true
# email
 * title: Email
 * type: text
# message
 * type: textarea
 * title: Message
 * rules:
  * maxLength: 750
[[/module]]

Enjoy the article? Tweet it!

Discussion - 2 comments

Matt Gentile avatar

AnonymousMatt Gentile 09 Feb 2011 22:12

This is great I'm going to upgrade the user profiles using this (for a designer contact form)
…Maybe up your business a bit?
~Matt

Edit: Just added it to the profiles… take a look: Here

Edit

Anonymous avatar

fdsaAnonymousAnonymous 12 Feb 2015 08:25

fda

Edit

Add a new comment

Site design © BMC WebDesign, 2011. All rights reserved. All tutorials on this site are free for commerical use, subject to conditions outlined in the disclaimer.