Extension talk:ContactPage/Archive

Sender Name
I don't get a sender's name in the emails I recieve from this contact form. I've tested it myself, making sure to put a name in the form. Is there something else I need to configure to make this part of it work? Otherwise very nice extension. Thankyou--Rovo 20:07, 16 February 2007 (UTC)


 * Hm... the sender name is only used when the sender also supplies an email address (then it is shown in the reply-to header of the mail). That's kind of silly, i guess. it should also be present in the subject line. I'll fix that, thanks for the hint. -- Duesentrieb 21:37, 16 February 2007 (UTC)


 * Fixed in revision 19973. -- Duesentrieb 22:21, 16 February 2007 (UTC)

are you thinking about extending this? maybe different additional fields as option, or spam prevention? btw for me, the "send copy to me" does not work. But great extension so far, I am using it on two wikis and it works good so far ;-)


 * I have thought about additional fields, but that makes things complicated - translatable labels, limits on field input, selection boxes, etc... For spam prevention, I am planning to use Captcha-functions of the ConfirmEdit extension - but i havn't figured out how to do that yet.
 * Anyway, "send me a copy" should work... i'll check it again. -- Duesentrieb ⇌ 00:46, 19 February 2007 (UTC)


 * "send me a copy" works for me. check your logs for errors - and look in your junk mail :P -- Duesentrieb ⇌ 11:52, 20 February 2007 (UTC)

Not working on 1.10.1
I am using MW 1.10.1 and the mainpage shows up blank. Are you planning to release it for 1.10.1 too ?
 * Should work find with 1.10.1 - enabled error reporting and check the error logs. -- Duesentrieb ⇌ 20:25, 6 August 2007 (UTC)

weird
updated to latest version and now I get this:

Warning: require_once(./extensions/ContactPage/ContactPage.php) [function.require-once]: failed to open stream: Permission denied in /var/www/web15/html/LocalSettings.php on line 161

Fatal error: require_once [function.require]: Failed opening required './extensions/ContactPage/ContactPage.php' (include_path='.:/var/www/web15/html:/var/www/web15/html/includes:/var/www/web15/html/languages') in /var/www/web15/html/LocalSettings.php on line 161

using latest mediawiki, html is my mediawiki folder. i have no idea what the script wants form the languages folder.
 * It wants nothing from the languages folder, that's just part of the include path. The actual error is "Failed opening required './extensions/ContactPage/ContactPage.php'" which indicates a problem with file permissions. Make sure PHP is able to read the files and directory of the ContactPage extension. -- Duesentrieb ⇌ 12:21, 25 April 2008 (UTC)

after quadruple-checking, I finally noticed (why do I always work late nights) that the ContactPage folder itself didn't have X permissions. so now it works. Thanks a bunch. really like this extension. thanks (spaghetti-western.net)

question
the email I receive, only gives me the values I set in the localsettings.php file. But that makes it impossible to easily reply to the messages I get from visitors, because when I click "reply" in my email program, it creates a reply to, for example admin@mysite.com, and not the email address supplied by the visitor.

HOW DO I: a) make sure the visitor has to enter ALL fields and b) have his email address in the FROM field of the email I get, as well as the name he supplied, what are the variables for this?

thanks


 * ContactPage puts the visitor's email address into the Reply-To field, so when you hit "reply", that's where your email will go -- if that doesn't work, please post a copy of a test mail with all the headers (but any private info scrambled).
 * Using the From header for this will not work with a standard mail setup, since most MTAs will refuse to send out mail with a From address that does not correspond to an account on the local machine. As far as I know there are ways around that, but frankly, I don't know how to do it. I suppose it involves special configuration in the MTA.
 * Anyway, requiring visitors to supply an email address is not yet supported, but could be added easily enough. I'll look into that. -- Duesentrieb ⇌ 10:21, 5 July 2008 (UTC)
 * Actually, there's a switch called $wgUserEmailUseReplyTo that controlls if the From-Field is to be treated as strict. I guess I'll update ContactPage to respect that setting. -- Duesentrieb ⇌ 12:47, 5 July 2008 (UTC)

Ok, the latest version now obeys $wgUserEmailUseReplyTo and has an option $wgContactRequireAll to require user name and address -- Duesentrieb ⇌ 21:35, 5 July 2008 (UTC)

Capture submitter's IP address?
First off, GREAT EXTENSION. Thanks very much!

It may be useful (at least to me) to be able to capture a submitter's IP address. Perhaps automagically placed into the body of the message, or a separate field? Switches for visible/invisible /editable/non-editable? Maybe add the info to the showSuccess function?

Thanks.

AnotherYellow 19:36, 19 August 2008 (UTC)
 * Hi, I really would to like to see IP's too. Hope you add this on next version. Thanks for the extension.

Localisation of extension
This extension is part of the extensions included on translatewiki.net for localisation. I assume that when the extension is in use the contact page will appear in whatever language the (logged-in) user has set in preferences, and not in the default content language of the wiki. If so, then this could be misleading to a user wanting to use the contact page, because it could imply that you could send an e-mail composed in that user-preference language! Or does this special page only appear in the wiki content language? If my first assumption is correct, then is it possible to add a message along the lines of 'Please write your e-mail in the content language of the wiki.' Or is it possible to create a customisable message along the lines of 'E-mails written in the following languages are understood:'? Lloffiwr 13:02, 1 January 2009 (UTC)
 * All parts of the user interface are customizable, as with all interface text in mediawiki. The best choice would probably be editing MediaWiki:contactpage-pagetext on your wiki. This is the text that will be shown at the top of Special:ContactPage. -- Duesentrieb ⇌ 17:32, 2 January 2009 (UTC)
 * Fair enough. I guess common sense should tell a user that they are more likely to get a reply if they write an e-mail in the wiki content language. :-) Lloffiwr 00:34, 4 January 2009 (UTC)

/** Portuguese (Brasil) $messages['pt-br'] = array(	'contactpage-desc'              => 'FormulÃ¡rio de contato para visitantes',	'contactpage-title'              => 'Contato',	'contactpage-pagetext'           => 'Por favor, use o formulÃ¡rio abaixo para entrar em contato conosco.',	'contactpage-defsubject'         => 'Mensagem de Contato',	'contactpage-subject-and-sender' => '$1 (de $2)',	'contactpage-fromname'           => 'o seu nome *',	'contactpage-fromaddress'        => 'o seu email **',	'contactpage-formfootnotes'      => '* opcional
 * @author Plugado

** opcional mas necessÃ¡rio se quiser uma resposta', 'contactpage-captcha'           => "Para enviar a mensagem, por favor, resolva o captcha (mais informaÃ§Ã£o)", 'contactpage-captcha-failed'    => 'Teste captcha falhou! (mais informaÃ§Ã£o)', ); to add into ContactPage.i18n.php for brazilian portuguese.