[WordPress] 外掛分享: Email Obfuscate Shortcode

WordPress 外掛 Email Obfuscate Shortcode 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Email Obfuscate Shortcode」是 2012-12-23 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前有 1000 個安裝啟用數。
  • 上一次更新是 2016-07-28,距離現在已有 3201 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 16 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

khromov |

外掛標籤

email | obfuscator | spam stopper | email obfuscator |

內容簡介

使用縮短碼(shortcode)將電子郵件地址或其他敏感資訊混淆,以防止資料被蒐集。

2.0 版本使用更好的方式來顯示電子郵件,而不是依賴 JavaScript 的 document.write()。

使用方法

基本用法

[email-obfuscate email=”[email protected]”]

設置自訂連結文字

[email-obfuscate email=”[email protected]” link_title=”Email Bob!”]

*設置自訂 tag title 屬性

[email-obfuscate email=”[email protected]” tag_title=”Email Bob!”]

使用所有可用的設置(此範例顯示它們的預設值)

[email-obfuscate email=”[email protected]” linkable=”1″ link_title=”” use_htmlentities=”1″ use_noscript_fallback=”1″ noscript_message=”Please enable JavaScript to see this field.”]

從範本或外掛中使用

以下是可在任何範本或外掛中使用的片段,以套用與使用縮短碼相同的混淆效果:

if(function_exists(‘eos_obfuscate’))
{
echo eos_obfuscate(array(’email’ => $email, ‘link_title’ => ‘Email Bob!’));
}
else
{
echo $email;
}

如果未啟用外掛,電子郵件地址將以明文通過並輸出。

需求

PHP 5.3 或更高版本
mbstring 擴展

翻譯

瑞典語

待辦事項

更好的 noscript_fallback。透過 CSS 注入空的 span 技術使沒有啟用 JavaScript 的人能夠查看電子郵件地址。
(範例:[email protected]
參考資料:https://wordpress.org/extend/plugins/obfuscate-email/other_notes/)

原文外掛簡介

Obfuscate your email address or other sensitive information with a shortcode to prevent harvesting of your data.
Version 2.0 includes an improved way of displaying the email without relying on JavaScript document.write();
Usage
Basic usage
[email-obfuscate email=”[email protected]”]
Setting custom link text
[email-obfuscate email=”[email protected]” link_title=”Email Bob!”]
*Setting custom link title attribute”
[email-obfuscate email=”[email protected]” tag_title=”Email Bob!”]
Using every available setting (this example shows their default values)
[email-obfuscate email=”[email protected]” linkable=”1″ link_title=”” use_htmlentities=”1″ use_noscript_fallback=”1″ noscript_message=”Please enable JavaScript to see this field.”]
Usage from a template or plugin
Below is a snippet that you can use in any template or plugin to apply the same obfuscation to an email as using the shortcode:
if(function_exists(‘eos_obfuscate’))
{
echo eos_obfuscate(array(’email’ => $email, ‘link_title’ => ‘Email Bob!’));
}
else
{
echo $email;
}
If the plugin is not enabled, the email address will just pass through and output in cleartext.
Requirements

PHP 5.3 or higher
mbstring extension

Translations

Swedish

TODO

Better noscript_fallback. Enable people without JavaScript to see the email address using technique to inject empty spans via css.
(Example: [email protected]
Reference: https://wordpress.org/extend/plugins/obfuscate-email/other_notes/

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Email Obfuscate Shortcode」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0 | 1.1 | 1.2 | 1.3 | 2.0 | 1.3.1 | 1.3.2 | 1.3.3 | trunk |

延伸相關外掛(你可能也想知道)

文章
Filter
Apply Filters
Mastodon