May 4, 2011

Need a 'Keyword' Filter for Posts | CyberSEO Pro | Support Forum

Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Related Related Topics sp_TopicIcon
Need a 'Keyword' Filter for Posts
Topic Rating: 5 Topic Rating: 5 Topic Rating: 5 Topic Rating: 5 Topic Rating: 5 Topic Rating: 5 (1 votes) 
October 30, 2011
6:26 pm
Avatar
cyber1
Guest
Guests

Hello;

There is one very critical component for myself as an autoblogger when syndicating feeds;option to 'filter' post items on keyword or phrase. I would guess there is this functionality but (hopefully as a global option) but don't see it anywhere:

A. Filter Posts on Phrase/Keyword MUST HAVE; example, : 'dog','cat','pet food','bla bla bla'

B. Filter Posts on Phrase/Keyword CANNOT HAVE; example, : 'food','black','ugly','x x x'

Can you please explain how the above can be implemented (globally if possible)?

Note: If this is only 'code based', can this feature be added into the plug-in as an input box?

Regards,
cyber1

October 30, 2011
8:31 pm
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Here is the solution: Login to see this link

October 30, 2011
10:02 pm
Avatar
cyber1
Guest
Guests

Hi Admin,

thanks, this is a start, but i still need your help;

the basic code is;

Login to see the code

which prevent posting IF the 'bad' keyword matches, okay..

but,  how do i check for any 'array' of bad keywords; "bad word1";bad word2";"bad word3";etc, etc (without looping if possible)?

conversely; how do i check for an 'array' of good keywords that MUST match the post?

ps; this basic feature is VERY IMPORTANT to me (i would guess others).. can please add these 2 (negative & postive) keyword checks as a GLOBAL option (input box) so we don't have to 'hand code' this each time?

Sincerely,
cyber1

October 31, 2011
6:14 am
Avatar
cyber1
Guest
Guests

Hello Admin,

I'm replying to my own post as was able to 'code' good/bad word filter for posts, but this is a really 'flaky' way to run this plug in as it doesn't log nor consistently check (from user to user) for critical keywords that posts need to be filtered on.

Having tried almost every other plug-in on the market,  i can say this:

WE NEED A FEATURE TO 'FILTER' ON KEYWORDS (BOTH NEGATIVE-"ITEM EXCLUSION" AND POSITIVE-"ITEM INCLUSION") FROM OUR XML FEEDS, THAT'S FULLY INTEGRATED INTO CYBERSEO'S PRODUCT. Meaning 2 separate Input fields for user's to enter their selected words/phrases.

This would also 'log' everything when running XML feeds as part of the product so we could see what 'keywords' items are being filtered on. PLEASE PLEASE PLEASE.. consider adding this feature!

Sincerely,
cyber1

October 31, 2011
1:05 pm
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

Use preg_match() function to filter out posts according to the specified list of words. E.g.:

Login to see the code

Login to see the code

Find more info here: Login to see this link

Logging the filtered-out keywords is a very specific task which won't be interested to anybody except you. This is why I can't implement it as a built-in feature (otherwise the feed setting page is risking to be one kilometer long). However it can be easily implemented via PHP code. Thus is you really need such a functionality, you can order the custom coding  (either from me or from any other PHP developer).

February 23, 2016
4:35 pm
Avatar
voltaire
Guest
Guests

Actually this was very useful to me, have been looking all day and finally found it. I'm trying to do a similar thing and learned a lot from this. 

September 30, 2017
8:16 pm
Avatar
cseo89122
New Member
Members
Forum Posts: 2
Member Since:
September 29, 2017
sp_UserOfflineSmall Offline

Is there a limit to the amount of keywords you can use for the preg_match?

October 1, 2017
3:45 am
Avatar
CyberSEO
Admin
Forum Posts: 3913
Member Since:
July 2, 2009
sp_UserOfflineSmall Offline

No, there is no limit. You can also take these words from a file.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 541

Currently Online:
16 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

ninja321: 84

s.baryshev.aoasp: 68

Freedom: 61

Pandermos: 54

MediFormatica: 49

B8europe: 48

Member Stats:

Guest Posters: 337

Members: 2817

Moderators: 0

Admins: 1

Forum Stats:

Groups: 1

Forums: 5

Topics: 1627

Posts: 8280

Newest Members:

igor.buzaev, jeremyboucher, lthompson2709, MAC, duty3canada, backlinkmorocco

Administrators: CyberSEO: 3913