| 开发者 | DrandLomB |
|---|---|
| 更新时间 | 2019年10月14日 05:57 |
| PHP版本: | 3.5.1 及以上 |
| WordPress版本: | 5.2.3 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
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.
Customization of dlb's Send-A-Link is further described in the FAQ. Generally, it will be necessary to copy dsl-page.html, dsl-templates.html, and dsl.css from the plugin folder to your theme folder. Modify dsl-page.html to match the structure of your theme's page.php file. Modify dsl-templates.html to reflect the URL of your blog. Modify dsl.css to match the look & feel of your blog.
You need to register at http://captchas.net (It's free!) to obtain your own Username and Secret Key. Copy file dsl-captcha.php from the plugin folder to the theme folder. Change the values of $id and $key from "demo" and "secret" to your own Username and Secret Key respectively.
Finally, insert the shortcode [dsl-link] in your posts/pages wherever you want to show a link or icon to your visitors offering the opportunity to send a message. In your templates, insert the function dslLink(), typically as: if( function_exists('dslLink') ) { echo dslLink(); }. See FAQ to customize it.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.
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.
Yes. The parameters for shortcode [dsl-link] and function dslLink() are as follows: show can be "icon", "text", or "both" to display only the icon, only the text or both; iconfile is the name of your icon file, with a path relative to the plugin folder; text is shown as a tooltip and on the link if show is either "text" or "both". In the shortcode, enter them like this: [dsl-link show="both" text="Your Text" iconfile="myIcon.gif" ]. In the function, enter them like this: dslLink( array( "show" => "both" , "text" => "Your Text" , "iconfile" => "myIcon.gif" ) ).
This can only be changed in file dsl.php. Search for the definition of DSL_SUBMIT_BUTTON_VALUE. This change will need to be made again after an upgrade to a new version.
This can only be changed in file dsl.php. Search for the definitions of DSL_MAX_COMMENT_CHARS, DSL_MAX_NAME_CHARS, and DSL_MIN_NAME_CHARS. These changes will need to be made again after an upgrade to a new version.
This can only be changed in file dsl.php. Search for the definition of DSL_MIN_SEND_INTERVAL. This change will need to be made again after an upgrade to a new version.
In this version of the plugin, 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. These changes will need to be made again after an upgrade to a new version.