位於【個人網誌設定】左邊邊欄裡的「防制垃圾干擾管理

主要是要遠離網路機器人胡亂利用迴響的功能,在你的網站大量貼上廣告。啟動此項功能後,再到「網誌模版編輯器」修改你的模版。

這次,你要改的模版名稱是:commentform.template,要加入的語法如下:

{if
$authimage->isEnabled()}
<div><label
for="authImage">
請輸入驗證碼:</label><input
type="text" name="authImage" id="authImage"
value="" /> {$authimage->show()}</div>
{/if}

要加在哪裡呢?有個好方法就是請你對照一下你的迴響頁面和commentform.template的語法內容,接著,你會發現,其實沒那麼難懂,譬如你可以看到usernameemail,或是comment_url等等(如下),那就是相對於你的網頁上輸入這些資料的地方,所以你可以把上述的語法,貼在這些東西都後面,然後,就可以預期在輸入所有資料的最後一行,就會多出現一行輸入驗證碼的項目了。

舉例:我的Dabu模版,有一段原來的語法如下:

{$locale->pr("comment_topic&quot";)"}<br/><input
type="text" name="commentTopic" value=""/><br/>
{$locale->pr("comment_text&quot";)"}*
<br/><textarea rows="10" cols="37"
name="commentText"></textarea><br/>
{$locale->pr("comment_username&quot";)"}*<br/>
<input type="text" name="userName"
value=""/><br/>
{$locale->pr("comment_email&quot";)"}<br/>
<input type="text" name="userEmail"
value=""/><br/>
{$locale->pr("comment_url&quot";)"}<br/>
<input type="text" name="userUrl"
value=""/><br/>

把你要加入的新語法放到這段後面就對啦!

個人認為這項功能很重要,因為我曾經在BP升級Plog
1.0
之後的八小時內(剛好是聖多美的上班時間),發生出現了二十多篇的垃圾留言,落得一個個刪除,頗累人。

也有其他阻擋垃圾信件的方法,譬如「迴響隱藏欄位設定(Hideden
input)
(我一直沒試用成功)、「迴響網址阻絕(DNS
Anti-Spam)
」、「迴響阻隔設定(Moderate)(提供你阻隔訪客的迴響,要等到你檢查確認後迴響才會張貼在網誌上面)、「No
Flow
協議」(讓google, Yahoo不要搜尋編入index)、引用網址驗證(Validate
Trackback)
等等。其中的DNS
Anti-Spam, Moderate, No flow
Validate
Trackback
只要打開Plug-in,不需要修改模版,這些都可以參考中文的Plog wiki說明。

Leave a comment

I’m Quintin

A clinical doctor trained in Taiwan before and a current physician in the US industry. This is my cozy corner of the internet, where I collect sweet home sweet home memories. I also share my personal comments on news, books, movies, and TV series. Has been blogging for long time and pick it up again in the US. Let’s blog!

Recent posts

Category

Tags

Alice Emily Immigration jolie Ladakh PGY Rowing WHO wordpress 人權 人道援助 保育 公益 國際志工 基層醫療 外交替代役 外籍勞工 女性 安寧療護 宜蘭 家醫 小兒科 政治 教育 新港 旅遊 環保 生命 精神醫療 結婚 經濟 網路 網路科技 老人醫學 老婆 聖多美普林西比 自由軟體 衛教 貓咪 醫療人權 醫療化 醫療商品化 長期照護 電影 預防醫學

Archives

Click to open archives