infomail plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" unknown
  • 2011-05-25 "Rincewind" yes
  • 2010-11-07 "Anteater" yes

plugin You can send mails directly from your wiki with recommendations for the page viewed.

Last updated on
2011-02-25
Provides
Action
Repository
Source

Similar to recommend

Tagged with email, recommend

Download and Installation

Download and install the plugin using the Plugin Manager using the URL given above. Refer to Plugins on how to install plugins manually.

Changelog

  • Fixed bug preventing template editing if wiki:infomail namespace does not exist (2011-02-25)
  • Initial realease (2010-11-30)

Syntax and Usage

This plugin is a modification of Adrian Langs recommend-Plugin.

Template

To include the “Mailinfo-Button” in your template, include the following code in your templates main.php:

/* Remove the if clause to display the button to anonymous users as well. */
if(isset($_SERVER['REMOTE_USER'])) {
    global $lang;
    $lang['btn_infomail'] = 'Infomail';
    echo html_btn('infomail',$ID,null,array('do' => 'infomail', 'id' => $ID));
 }

Configuration

Vector template

I've integrated this plugin in a box using the following code:

if (file_exists(DOKU_PLUGIN."infomail/action.php") && !plugin_isdisabled("infomail")){
	$_vector_boxes["p-1"]["xhtml"] 	.="	<li id=\"t-infomail\"><a href=\"".wl(cleanID(getId()), array("do" => "infomail", 'id' => $ID))."\" rel=\"nofollow\">".hsc($lang["btn_infomail"])."</a></li>\n";
        }

You will need to add btn_infomail to your lang.php or else replace ”.hsc($lang[“btn_infomail”]).” with some text. — Theo-KTheo-K

Emmen, Nederland
2010/12/22 11:31

Discussion

confirmation text

If you wish to change the confirmation-text change following lines:

action.php (line 38): echo $this→getLang('confirmation');

lang.php (at the bottom): $lang['confirmation'] = “Ihre Anfrage wurde gerade versendet.”; (when you speek German)

(deshi 25.5.2011)

multiple default email addressess

Is it possible to assign default email addresses, default email text etc?
This would be really helpful :)
Yes, you can add multiple addresses separated by a pipe (“|”) to the configuration manager: foo@bar.de|foo1@bar.de|…
plugin/infomail.txt · Last modified: 2012/04/01 19:34 by lupo49
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate