plugin:contact
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | plugin:contact [2009-12-21 13:44] – 79.203.85.36 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Plugin - Contact Form ====== | ||
+ | |||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : bob@bobbaddeley.com | ||
+ | type : syntax | ||
+ | lastupdate : 2008-04-26 | ||
+ | compatible : | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : form, email | ||
+ | ---- | ||
+ | |||
+ | I wanted to have a contact page that would allow someone to contact the author or some other responsible person, so I created this contact page. I used the usermanager plugin and the discussion plugin as help in creating this. | ||
+ | |||
+ | Download the plugin here: http:// | ||
+ | |||
+ | === Installation instructions: | ||
+ | |||
+ | - Unzip the plugin and put it in your plugins folder of your wiki | ||
+ | - Add some entries in your / | ||
+ | - To use the plugin, on any page just enter the code:< | ||
+ | |||
+ | It's that easy! | ||
+ | |||
+ | ==== In action: ==== | ||
+ | http:// | ||
+ | |||
+ | |||
+ | ==== How it works: ==== | ||
+ | Basically, it uses the same mail function that the rest of the wiki uses, so it requires no extra server configuration (although you do have to add a line in your local.php to specify some TO addresses). When the form is submitted, it will post back to the same page, but set a variable so it knows to send an email. It will send an email TO the address specified and FROM that same address (so that it doesn' | ||
+ | |||
+ | === Comments: === | ||
+ | Here is another update version. **Tested on DokuWiki-2008-05-05.**\\ | ||
+ | - modify verify method | ||
+ | - support multi-language defined for JavaScript messages | ||
+ | |||
+ | * download here : [[http:// | ||
+ | * real demo : (zh-tw version) [[http:// | ||
+ | |||
+ | --- // | ||
+ | |||
+ | ---- | ||
+ | |||
+ | I've made some updates to this script that added another layer of security (it has a regular expression check to make sure their email address is valid), and also changed the CAPTCHA aspect so that the question and answer are configured through ADMIN-Plugin Configuration, | ||
+ | **Tested on DokuWiki-rc2008-04-11.**\\ | ||
+ | //Mario Lurig April 25, 2008 [[http:// | ||
+ | |||
+ | This could be easily used for spam relays... you should hide the email address somehow. | ||
+ | > Spam relays should be impossible now. Hiding the email address is a different problem and I'll look into it, but the solution just below seems to work well. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | | ||
+ | |||
+ | | ||
+ | $to = $conf[' | ||
+ | |||
+ | and added the following to conf/ | ||
+ | |||
+ | // Contact form profiles | ||
+ | $conf[' | ||
+ | $conf[' | ||
+ | //........ | ||
+ | // add as many profiles as you need | ||
+ | //........ | ||
+ | |||
+ | Now I can use the same command syntax, but without specifying an email directly in the page: | ||
+ | {{contact> | ||
+ | |||
+ | This solves the problem described in the previous comment. | ||
+ | |||
+ | Dec 15, 2005 - AS www.sabetta.com | ||
+ | >> | ||
+ | > Just an FYI, the JavaScript function can be placed in its own file, '' | ||
+ | >> done. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | **mailguard** | ||
+ | |||
+ | This configures if and how email addresses will be obfuscated against harvesting bots. Possible options are: | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | * Type: String | ||
+ | * Default: '' | ||
+ | |||
+ | The above from mailguard is given in the [[config: | ||
+ | |||
+ | Daya Kiran dkdude4f at the rate of gmail dot com | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Just downloaded the plugin, thanks, it saved me time writing my own. But isn't that a bug? Quoting: | ||
+ | "if (mail_send($to, | ||
+ | I guess it should be: | ||
+ | "if (mail_send($to, | ||
+ | You can delete this comment when the bug (if it's a bug) will be fixed. | ||
+ | Regards, Webmaster. | ||
+ | > | ||
+ | ---- | ||
+ | |||
+ | I'd like to suggest to move to the lang file the following bits of text in syntax.php: | ||
+ | "Mail sent successfully", | ||
+ | |||
+ | ---- | ||
+ | |||
+ | I suggest to implement body option that fill < | ||
+ | It's simple ad usefull if you want extend the form. | ||
+ | {{contact> | ||
+ | [..] < | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | I've made two modifications to syntax.php | ||
+ | < | ||
+ | $comment = $_SESSION[DOKU_COOKIE][' | ||
+ | </ | ||
+ | < | ||
+ | $ret .= "< | ||
+ | </ | ||
+ | |||
+ | This sets the name sent in the email to the name of the logged user. It's useful in authenticated wiki's like the one I manage. | ||
+ | \\ | ||
+ | Thanks for your plugin.\\ | ||
+ | Francisco Castanheiro | ||
+ | < | ||
+ | |||
+ | ---- | ||
+ | There was a small error on this page: The profile name showed up as PROFILEA some places, and should be PROFILE_NAME. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | I have not been able to get this to work for me. I've installed it, tried all of the configurations, | ||
+ | |||
+ | ---- | ||
+ | |||
+ | There is a little bug in the french lang.php. | ||
+ | To remove it, change the line : | ||
+ | < | ||
+ | $lContact Formang[' | ||
+ | </ | ||
+ | to | ||
+ | < | ||
+ | $lang[' | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | I've put an updated french file here : http:// | ||
+ | --- // | ||
+ | ---- | ||
+ | **Array-Bug**: | ||
+ | |||
+ | **Array-Bug**: | ||
+ | |||
+ | |||
+ | :?: What can't I get this to work? | ||
+ | I am using Debian sid, exim4, and latest DokuWiki. | ||
+ | |||
+ | I can send email from CLI. I have all permissions set to 777. I installed content.zip, | ||
+ | |||
+ | Every time I try to send an email, I get the error message: " | ||
+ | |||
+ | ---- | ||
+ | |||
+ | This plugin is outdated and won't work out of the box with the newer versions of dokuwiki. My version is 2009-02-14. This reason is the way of getting the settings from the conf/ | ||
+ | < | ||
+ | if (isset($_REQUEST[' | ||
+ | $to = $conf[' | ||
+ | } | ||
+ | else{ | ||
+ | $to = $conf[' | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | to | ||
+ | |||
+ | < | ||
+ | if (isset($_REQUEST[' | ||
+ | // !!I didn't actually test this alternative!! | ||
+ | $to = $this-> | ||
+ | } | ||
+ | else{ | ||
+ | $to = $this-> | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | I suggest the author updates this asap. This fixes the problem of the last comment. | ||
+ | |||
+ | --- // | ||
+ | > I've updated my dokuwiki to the 2009-02-14 version (because of the security hole) and my contact plugin doesn' | ||
+ | >> ~ ~ NOCACHE ~ ~ does the magic. //(klem @ dokuwiki-2009-02-14b)// | ||
+ | ---- | ||
+ | **Help:** I do not need the safety-line "ENTER HUMAN" | ||
+ | |||
+ | ---- | ||
+ | \\ | ||
+ | **HINT**: \\ | ||
+ | To get the contact-plugin working with dokuwiki-rc2009-12-02, | ||
+ | Thank you all \\ | ||
+ | // Ronny// | ||
+ | |||
+ | |||
+ | Nope, it's enough just to add ~ ~ NOCACHE ~ ~. Works without any further hacks.\\ | ||
+ | cheers, \\ | ||
+ | //flo// | ||
plugin/contact.txt · Last modified: 2023-12-17 21:26 by Aleksandr