By John O Connor on Monday, 16 December 2013
Posted in General Issues
Replies 3
Likes 0
Views 499
Votes 0
Hello,

I would like to know how can I prevent a subscriber from posting a url in the comments section of a blog post.

Thanks,
JohnO
Hello John,

You can prevent the URL from being shown by edit this file ..\components\com_easyblog\helpers\comment.php on line 711 from this,


$text = str_ireplace( $match , '<a href="' . $match . '">' . $match . '</a>' , $text );

to this:

$text = str_ireplace( $match , 'URL is not allowed' , $text );


Hope this helps.
·
Monday, 16 December 2013 16:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank You.
·
Monday, 16 December 2013 16:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello John,

You're welcome.
·
Monday, 16 December 2013 16:55
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post