Login Form






Lost Password?
No account yet? Register
Products arrow Blog arrow How to disable HTML in PLIGG comments
Nov
28
How to disable HTML in PLIGG comments
PDF
Do you have a PLIGG based website and you need to disable HTML in comments because of all these spam comments? Read further

Edit the following file

 

libs/comment.php 

 

at line 34 replace

 

        $comment_content = $db->escape($this->content);
 

 

with 

 

        $comment_content = $db->escape(strip_tags($this->content));

This will do it !

Comments
Add New Search
jasse  - tags     |Guest IP93.72.88.xxx |2009-05-04 15:26:17
How to allow only some users html tags (links and img) in comments?
e.g I
have user "rssbot" set on my site for RSS importing.
How can
I specify this "rssbot" and "admin" to use HTML tags http://file.sh/html+tag+torrent.html i.e. links and img in comments.
Wojtek   |Guest IP90.186.69.xxx |2009-11-10 12:59:56
I am affraid it is not working. I did the changes above but I still can add
http: links in comments. (Sitecache was deleted after changes above).
Write comment
Name:
Email:
 
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 
< Prev   Next >