Startpage >> Plog >> ScriptEmailEncode

Script Email Encode

<< 文章評分功能 | Plog.HomePage | 讓迴響支援 BBcode >>


把 迴響使用者的 Email 加密

請依照下面的步驟,將 E-Mail Encryption Plugin 的功能增加到你的 pLog 上面:

  1. 下載 Mark 精心調製的 E-Mail Encryption Plugin
  2. 將檔案解壓縮後上傳到 /your-blog 的目錄下
  3. 到設定>>外掛程式中心,看看 emailencryption 是否安裝成功
  4. 修改你的模版。

以 Mark's Place 為例子,是採用 grey 這個模版,所以必須修改 /your-blog/templates/grey 中的 header.template 與 postandcomments.template 這兩個模版。起將下面兩段程式自行安排在適當位置。

 在 header.template 的 <head></head> 後面,加入:
 <script type="text/javascript" src="js/emailhider/emailHider.js"></script>

 在 postandcomments.template 中,將
 {$comment->getUsername()} | {$locale->formatDate($commentDate, "%d/%m/H:%M")}
 這一段程式,置換為:
 <{if $comment->getUserEmail()}
 <script type="text/javascript">
 {assign var="email" value=$comment->getUserEmail()}
 {$emailencryption->getEmailEncryptionImageLink($email,"/imgs/aemail.gif")}
 </script>
 {/if}
 {if $comment->getUserUrl()}
 <a href="{$comment->getUserUrl()}">{$comment->getUsername()}</a> |
{$locale->formatDate($commentDate, "%d/%m/H:%M")} {else} {$comment->getUsername()} | {$locale->formatDate($commentDate, "%d/%m/H:%M")} {/if}

感謝: A javascript powered by Mark(80)


<< 文章評分功能 | Plog.HomePage | 讓迴響支援 BBcode >>

頁面最後更新於 2005 年 01 月 11 日,11:01 PM