Hi,

I'm using your module, but I would like to modify it: I need to filter feed's items based on tags, not on the content of the post.

I've seen that basically this module search for the "filter words" in the $item->description field.
I tried to modify that to $item->options->tags, to search inside tags, but it doesn't seems to work. (I never get any post filtered even if there are posts with the searched tags).

Anyone has some idea of what I'm doing wrong? Is $item->options->tags cointaining the list of tags or not?

Vito

CommentFileSizeAuthor
#5 category-filter.patch14.13 KBdarksatanic
#4 tag_filter.zip3.14 KBmomper

Comments

vitozzo’s picture

I solved the problem: just changing the feed parser from "Common syndication parser" to "SimplePie parser" provided by FeedAPI.
The problem was due to the fact that the tags weren't imported correctly with "Common syndication parser".

momper’s picture

@vitozzo

i'm trying this for 6 - it's still working for you?

thanks momper

momper’s picture

o.k. we will only make the small modifications to use it with tags and upload this ...
@milosh: i would be glad, if you put it into your package :)

i don't know anything about packating - so only a zip ...

momper’s picture

StatusFileSize
new3.14 KB

we modified the behavior a little bit:

- no positive keyword: all items are included
- positive keywords: only tags marked as positive are included

- negative keywords are overstriking everything

it made most sense to us ...

greetings momper

darksatanic’s picture

StatusFileSize
new14.13 KB

Here's a complete submodule for doing the same tag-based filtering.

momper’s picture

excellent - thanks ...

bubsy119’s picture

Version: 5.x-1.x-dev » 6.x-1.1

Thx for this feature, it works perfect.
Is it possible to load the tags from a custom table so i can use this always as the default value for filtering the feeds on tags?

tamerzg’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.