====== Infomail Plugin ====== ---- plugin ---- description: You can send mails directly from your wiki with recommendations for the page viewed author : Frank Schiebel, Andreas Gohr email : frank@linuxmuster.net type : action lastupdate : 2020-11-18 compatible : 2018-04-22 "Greebo", 2010-11-07, 2011-05-25, 2012-01-25, 2012-10-13, 2020-07-29 depends : conflicts : addnewpage, hidden, copypage, sortablejs similar : recommend tags : recommend email downloadurl: https://github.com/OpenSchulportfolio/dokuwiki-plugin-osp-infomail/archive/master.zip bugtracker : https://github.com/OpenSchulportfolio/dokuwiki-plugin-osp-infomail/issues sourcerepo : https://github.com/OpenSchulportfolio/dokuwiki-plugin-osp-infomail donationurl: https://openschulportfolio.de/about ---- [[https://openschulportfolio.de|{{ https://openschulportfolio.de/_media/wiki:logo:logo.png}}]] ===== Download and Installation ===== Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ==== Conflicts ==== It seems that in ''Hrun'' and ''Ponder Stibbons'' (I am not sure about older versions), infomail give a conflict with [[plugin:sortablejs|Sortablejs]]. Infomail will work but Sortablejs will not sort the tables anymore.\\ Any solutions are welcome. --- //[[florinko@gmail.com|Florin]] 2014/11/25 08:27// ===== Changelog ===== * Major update for compatibility with DW "greebo". Older versions are not supported anymore because the plugin now makes use of JQuery. * 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 [[plugin:recommend|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"] .="
  • "infomail", 'id' => $ID))."\" rel=\"nofollow\">".hsc($lang["btn_infomail"])."
  • \n"; }
    You will need to add btn_infomail to your lang.php or else replace ''".hsc($lang["btn_infomail"])."'' with some text. --- [[user>Theo-K]] //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|... ==== Button similar to DW2PDF and predefined subject ==== Hello, great plugin. I use the next trick to put a button to send via mail
    But can not set lang, instead I modify template.txt I want assign a predefined subject... for example the the name of the page, how I can make that?