Linux 软件免费装

dlb's Send-A-Link

开发者 DrandLomB
更新时间 2019年10月14日 05:57
PHP版本: 3.5.1 及以上
WordPress版本: 5.2.3
版权: GPLv2 or later
版权网址: 版权信息

标签

email email post link send email send send link

下载

0.4 0.45 0.95 1.0 1.1 1.2

详情介绍:

dlb's Send-A-Link allows visitors to send someone an email containing a link to the post or page. Key features include: dlb's 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. However, 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 plan to release new versions with the following features, in approximately this order:

安装:

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. 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.

屏幕截图:

  • The *Send-A-Link* form
  • The *Send-A-Link* confirmation page

升级注意事项:

1.0 This is the first production release. Please upgrade as soon as possible. Please follow the new installation instructions carefully, and note that the layout of some templates has changed. 0.95 This is the final candidate for release, and will be superceded by version 1.0 after testing is complete, no later than June 25, 2013. 0.45 Minor testing and readme.txt changes only. No need to apply this upgrade. 0.4 Initial developmental release.

常见问题:

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. 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" ) ).

How can I change to wording on the form's submit button?

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.

How can I change the maximum number of characters allowed in names and comments?

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.

How can I change the minimum time between sends?

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.

How can I change the wording in the error messages?

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.

更新日志:

1.2 1.1 1.0 0.95 0.5 0.45 0.4