Extension talk:FormMailer

From MediaWiki.org
Jump to navigation Jump to search

Can you give an example of this in use with simpleForms? Sj 00:22, 24 July 2007 (UTC)

MW 1.10.1[edit]

It deosnt seem to be working with 1.10.1, Is Simple Forms extension a necessary prerequisite for it ? Thanks Srbnow

It should work for 1.10.1, it doesn't require simple forms to work, but you will need some method of creating the form, since MediaWiki's standard configuration doesn't allow one to create forms. --Nad 22:11, 3 August 2007 (UTC)

Feature to Semantic Forms extension[edit]

Hi Nad, I always wanted something like this to Semantic Forms extension, but i think will need to do some modifications on semantic forms to include your extension functionality. I posted on groups about this, but the SF dev doesn't think this interesting. So i thought if you could add this feature on Semantic forms. Look here to see the request, maybe you can help. It's Leonardo post http://groups.google.com/group/semantic-forms/browse_thread/thread/765220078304d987 What do you think? Lleoliveirabr 23:23, 3 August 2007 (UTC)

Implementing an in-wiki workflow solution is one of our main priorities currently on organic design. We will be using semantic forms as part of this solution but we don't require any modification of semantic forms for our workflow solution. I think that workflow is achieved more effectively by moving work items amongst role's categories rather than emailing them to role's inboxes. --Nad 23:42, 3 August 2007 (UTC)

Parse error: unexpected $ in line 52[edit]


I got an error: Aug 7 23:46:28 localhost apache2: PHP Parse error: syntax error, unexpected '$' in /var/www/atq.ekopedia.org/extensions/FormMailer.php on line 52

Using PHP 5.2.0 on Debian Etch with Mediawiki 1.9.3.

Any idea of that issue?

Thanks, Jluc

There was a typo in the code, it should be working now --Nad 17:27, 8 August 2007 (NZST)
Thanks, it now working! But also, is it normal that the code is not closed? There is no "?>" (as you can see I'm not a PHP dev. sorry if I'm misunderstanding). Jluc

Form exemple[edit]


Can you give us a simple form exemple. I've got difficulties to get it working.

Also, that's may be the reason, I got the following error: PHP Warning: Invalid argument supplied for foreach() in /var/www/atq.ekopedia.org/extensions/FormMailer.php on line 63

Thanks, Jluc

Error solved; thanks to #PHP on IRC :) Now using:
$wgFormMailerRecipients = array('name@domain.com');

instead of:

$wgFormMailerRecipients = 'name@domain.com';


I need an example too :)[edit]

I'm not very familiar with programming, but installed the SimpleForms ext and I can't see the problem with this code:

{{#form:method=post|value=formmailer| {{#input: type=radio | checked=checked | name=Male | value=yes}} Yes {{#input: type=radio |name=Male |value=No}} No {{#input:type=submit|value=Login}} }}

Any suggestions? It's in this page: http://citilab.eu/wiki/index.php/UNTITLED --Esenabre 18:46, 27 March 2008 (UTC)

I can't get it to work, yes I'm probably missing something[edit]

  • I have FormMailer
  • I have FormHandler
  • I've put in a simple form:
<form reset="Reset" submit="Your Query" sender="charles@domain.com" email="Your Email" target="admin@domain.com" method="email" name="test">
    hidden: name="formmailer" value="formmailer"
    text:* name="name" prompt="Your Real Name"
    select: name="category" prompt="Please select problem category" option="Linux Software" option="Linux Hardware"
    text:* name="summary" prompt="Problem summary"
    textarea: name="description" prompt="Problem description" rows="10" cols="50"
    select: name="priority" prompt="Priority" option="Low" option="Medium" option="High" value="Medium"

Then when I try to post I get this error:

Fatal error: Call to a member function toString() on a non-object in /usr/local/mediawiki/includes/UserMailer.php on line 110

--Andy Reed 04:17, 4 May 2008 (CST)

I need help with this[edit]

Running Mediawiki 1.12.0, any help would be greatly appreciated.

Any idea on how to get a specific field required. In other words, to force the user fill out specific filed(s), let's say email?

email {{#input: type = text
 | name = email
 | value = 
Personally I don't use SimpleForms anymore, it has too many problems and is too difficult to maintain, I usually just enable raw HTML and use standard form syntax which allows javascript validation to be used to enforce mandatory fields. --Nad 20:08, 6 January 2009 (UTC)