FeedbackForm - customizing e-mail subject and from fields?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Nexia

FeedbackForm - customizing e-mail subject and from fields?

Post by Nexia »

Hi,

I just installed the FeedbackForm module for the first time, and have one question.  In the help documentation it mentions that there is a special "Email From Field" input option, yet as hard as I look I can't seem to find this option when adding a field.

I want to have a very simple form which takes in the user's name, e-mail address, subject, and message.  I would like the e-mail messages to automatically set the 'From' address to the e-mail address entered by the user, and I'd also like to change the subject so that it reflects that of what the user entered.  Am I missing something obvious here? TIA.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: FeedbackForm - customizing e-mail subject and from fields?

Post by sjg »

Hi. Well, you found yet another of my stupid bugs.

If you edit the file FeedbackForm.module.php, at lines 90-91, it has the repeated line:

Code: Select all

           $this->Lang('field_type_country')=>'CountryInput',
            $this->Lang('field_type_country')=>'CountryInput',
Replace the second country input line, so those two lines look like this instead:

Code: Select all

           $this->Lang('field_type_country')=>'CountryInput',
            $this->Lang('field_type_email_from')=>'EmailFromInput',
And then it should work as advertised.

Sorry!
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
benn

Re: FeedbackForm - customizing e-mail subject and from fields?

Post by benn »

Thanks, this has done the trick but the form has two input boxes. The first input box doesn't work but the second input box does.

Here is the link
http://www.movie-mogul.tv/index.php?page=contact

Here is the html

Code: Select all

<tr>
	<td class="required" align="right" valign="top">Email *</td>
	<td align="left" valign="top"><input name="m2ffemail[]" id="m2ffemail[]" value="" size="25" maxlength="255" type="text"><
				  <input name="m2ffemail[]" id="m2ffemail[]" value="" size="25" maxlength="255" type="text">>
	</td>
</tr>
I'm using cmsms 1.0.2
FeedbackForm 0.9.14
Last edited by benn on Thu Nov 09, 2006 12:36 pm, edited 1 time in total.
Locked

Return to “Modules/Add-Ons”