登錄 注冊 發(fā)新帖 |
whm51whm
|
禁止評論昵稱和內(nèi)容中包含網(wǎng)址的解決辦法找到\twcms\control下的comment_control.class.php
打開之后找到:// 關閉全站評論(大約在63行) 在這句上面加上如下代碼: (stripos($content,'.com') || stripos($content,'.cn') || stripos($content,'.net')|| stripos($content,'.org')|| stripos($content,'.cc')|| stripos($content,'.com.cn')) && $this->message(0, '內(nèi)容不可以留網(wǎng)址!'); (stripos($author,'.com') || stripos($author,'.cn') || stripos($author,'.net')|| stripos($author,'.org')|| stripos($author,'.cc')|| stripos($author,'.com.cn')) && $this->message(0, '昵稱不可以寫網(wǎng)址!'); 保存之后去后臺清除緩存即可.
#1樓
|
|
發(fā)帖時間:2015-3-30 |
查看數(shù):0 |
回復數(shù):3
|
xsmy
|
太謝謝了。前段時間就因為有人總留大量垃圾網(wǎng)址弄得網(wǎng)站排名快速后退
2015-5-2
#2樓
|
xiadao_81
|
這是個辦法,我的也有了,試試看。
2015-8-22
#3樓
|
romeshow
|
太謝謝了。
2021-3-6
#4樓
|
游客組
|
|