=== dlb's Send-A-Link === Contributors: DrandLomB Donate link: Tags: email, send, link, send link, send email, email post Requires at least: 3.5.1 Tested up to: 3.5.1 Stable tag: 0.45 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html dlb's Send-A-Link allows visitors to send someone an email containing a link to the post or page. == Description == *dlb's Send-A-Link* allows visitors to send someone an email containing a link to the post or page. This is a preliminary, developmental release, and will be replaced by the first full release no later than June 30, 2013. Key features include: - A shortcode can be put in your template(s) to show visitors an icon or text link to send an email. - The input form, confirmation page, and email message are all based on easily modifiable HTML templates. - *Send-A-Link* loads fast because code is compact and does not use jQuery. - *Send-A-Link* uses Javascript/AJAX for fast, inobtrusive form handling. - Built and tested on WordPress v3.5.1; although it might work on earlier versions, it has not been test on them. The *Send-A-Link* code is heavily commented, especially regarding WordPress plugin interfaces and AJAX features. This makes it a suitable starting point for novice developers to explore their own programming interests. I have attempted to make the code very understandable, but I do not claim this to be *model* code because I am not an experienced developer myself. In fact, I would greatly appreciate constructive criticism. In the future, I will release new versions with the following features, in approximately this order: - Privacy reassurance that email addresses are not stored, but IP's are - Log mail sent with user's IP address to a file - Throttle sends to some number per time period from a given IP - Provide full functionality without Javascript - Localize to be ready for translation, including delivery of po and mo files and some instruction on how to use POEDIT to customize the wording, regardless of language. This could especially apply to the error messages. - Rewrite using class construction - Add admin screens to modify things now defined as constants and templates - Move logging into database - Make it easy to turn CAPTCHA off or on - Make it easy to use other CAPTCHAs == Installation == The easiest method is to use `Plugins > Add New` in your blog's Administration menu. Search for "dlb" and click on the `Install now` link under *dlb's Send-A-Link*. Then click the `Activate Plugin` link. The manual method requires several steps: (1) Download the zip file to your computer. (2) Unzip the file. (3) Upload the `dlbs-send-a-link` folder to your `wp-content/plugins` directory. (4) Go to `Plugins > Installed Plugins` in your blog's Administration menu and click the `Activate` link under *dlb's Send-A-Link*. Either way, you simply insert the shortcode `[dsl-link]` in your posts and pages wherever you want to show a link or icon to your visitors offering the opportunity for them to send a message. In your templates, you can insert the code: `if( function_exists('dslShortcode') ) { echo dslShortcode( array('show'=>'both') ); }` Optionally, you can customize *dlb's Send-A-Link* as described in the FAQ. == Frequently Asked Questions == = How can I change the wording and styles in the email message and on the *Send-A-Link* pages? = Most of the visible elements are defined in the template and CSS files. You can make your modifications to a *copy* of them stored in your theme folder so that they are retained when you upgrade to a new version of *Send-A-Link*. = What are the template and style file names? = The input form template is `dsl-page.html`. The confirmation page and email message templates are in file `dsl-templates.html`. The CSS styles are in file `dsl.css`. = Can I change the icon and text in the link? = Yes, by using these parameters in the shortcode or in the template code: `[dsl-link show="both" iconfile="Your-Icon.gif" text="Your Text" ]`. The value of `show` can be one of "icon", "text", or "both" to display only the icon, only the text or both. The value of `iconfile` must be the name of your file with a path relative to the plugin folder. The value of `text` will be the title which is typically shown as a tooltip, and will be displayed if `show` is either "text" or "both". = How can I change the wording in the error messages? = In this version the error messages must be changed by editing file `dsl.php`, which is heavily commented to make it easier to navigate and alter the code. A future release will make this easier by using the WordPress localization system. == Screenshots == 1. The *Send-A-Link* form 2. The *Send-A-Link* confirmation page == Changelog == = 0.45 = * Added to the WordPress.org Plugin Directory * Improved the installation instructions in readme.txt = 0.4 = Initial release: * Allows visitors to send someone an email containing a link to the post or page. * Visitor can optionally include comments in the message. * Provides a shortcode to put into templates to show an icon or text link to send an email. * The input form, confirmation page, and email message are based on HTML templates * Customized CSS styles and templates can be stored in the theme * Uses Javascript/AJAX for fast, inobtrusive form handling. * Loads fast, based on compact code that does not use jQuery. * Code is heavily commented, especially regarding WordPress plugin interfaces and AJAX features. * Built and tested on WordPress v3.5.1; might work on earlier versions, but has not been test on them. == Upgrade Notice == = 0.45 = Minor testing and `readme.txt` changes only. No need to apply this upgrade. = 0.4 = Initial release.