- Posts: 13
COMMUNITY FORUM
- Forum
- Free Joomla Extensions & Templates
- Simple RSS Feed Reader
- Retrieve all RSSfeeds except those containing THAT
Retrieve all RSSfeeds except those containing THAT
- huki
- Topic Author
- Offline
- New Member
Less
More
10 years 4 months ago - 10 years 4 months ago #55906
by huki
Retrieve all RSSfeeds except those containing THAT was created by huki
Hi!
I am using your module to retrieve post from a twitter account and I would like to display only the tweets that don't contain the profil name "@that".
@that is always at the start of the$ feedItemTitle and of the $feedItemDescription.
I guess I have to add an exception rule inside this :
but my knowledge of php is very limited so I couldn't find a solution.
Thanks a lot for your help!
I am using your module to retrieve post from a twitter account and I would like to display only the tweets that don't contain the profil name "@that".
@that is always at the start of the$ feedItemTitle and of the $feedItemDescription.
I guess I have to add an exception rule inside this :
<?php foreach($output as $key=>$feed): ?>
but my knowledge of php is very limited so I couldn't find a solution.
Thanks a lot for your help!
Last edit: 10 years 4 months ago by huki.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #55915
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Retrieve all RSSfeeds except those containing THAT
Hi. Try this:
<?php foreach($output as $key=>$feed): ?>
<?php if(strpos($feed->itemTitle, '@that') === false): ?>
....
....
....
<?php endif; ?>
<?php endforeach; ?>
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- huki
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
10 years 4 months ago #55925
by huki
Replied by huki on topic Retrieve all RSSfeeds except those containing THAT
Thanks Lefteris! This is working great!
- question 1: I have set up the feed items limit to 5 and if there are two post with @that in the rss feeds, then the module will only display 3 feeds.
is there a way to apply the feed items limit after the exclusion of @that?
- question 2: I wonder if it's possible to add others exception. If for example I am trying to remove all the post for @that, @this and/or @those, how should I then change the code?
Thanks a lot for your help!
- question 1: I have set up the feed items limit to 5 and if there are two post with @that in the rss feeds, then the module will only display 3 feeds.
is there a way to apply the feed items limit after the exclusion of @that?
- question 2: I wonder if it's possible to add others exception. If for example I am trying to remove all the post for @that, @this and/or @those, how should I then change the code?
Thanks a lot for your help!
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #55927
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Retrieve all RSSfeeds except those containing THAT
Regarding your new questions:
1. No. The only thing you can do is set the limit higher.
2. Yes you can the exact same way. You can add an AND to the condition:
1. No. The only thing you can do is set the limit higher.
2. Yes you can the exact same way. You can add an AND to the condition:
...
<?php if(strpos($feed->itemTitle, '@that') === false && strpos($feed->itemTitle, '@this') === false ): ?>
...
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- huki
- Topic Author
- Offline
- New Member
Less
More
- Posts: 13
10 years 4 months ago #55929
by huki
Replied by huki on topic Retrieve all RSSfeeds except those containing THAT
Thanks so much!
1. Too bad! But it's ok, I was pushing it a bit
2 That's awesome!
Thanks a lot for your great support and your fast answer!
1. Too bad! But it's ok, I was pushing it a bit
2 That's awesome!
Thanks a lot for your great support and your fast answer!
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 4 months ago #55931
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Retrieve all RSSfeeds except those containing THAT
You are welcome.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Forum
- Free Joomla Extensions & Templates
- Simple RSS Feed Reader
- Retrieve all RSSfeeds except those containing THAT