Thread: new filter
View Single Post
#1
03-28-2009, 12:15 PM
Senior Member
From Fort Worth, Texas
Joined in Dec 2008
762 posts
john_smith
I think there is got to be a news filter (anti-m blocker) in the front page because sometime it violates the guidelines of the site, by listing anti-immigrant news articles. It should be easy.... as easy as adding 3 lines of code...
inside the news loop..
PHP Code:
if(strpos("amnesty",strtolower($data)) !== false && strpos("illigal alliens",strtolower($data) )!==false  || strpos("fairus",$data) !== false  ){
 continue;

Basically what this does is, it blocks an article that contains the words "amnesty" and "illigal Alliens" both on the same articles, or anything that mentions the position's site
__________________
Sent 01/23/18 Bio 02/28/18 Approved 03/7/18
Sent 05/27/15, Approved 07/22/15
Sent 6/10/13 Bio: 7/23/13 Approved: 9/10/2013
Last edited by john_smith; 03-28-2009 at 12:49 PM..
Post your reply or quote more messages.