Google's RSS feeds Title has the title and the author of the feed. However, the introtext and fulltext repeats this information. So it looks like the following:
TITLE - AUTHOR
TITLE (link)
AUTHOR and DATE
introtext.
It should be:
TITLE - AUTHOR
introtext.
I also don't like having the original link in the introtext since it also goes to the original without a target _blank which forces the user to lose the url of my site from which they came from.
When showing these in an article format it looks really redundant and I was wondering if it would be possible to remove this repetition and link if the url includes the word google?
I have found an example from another cms I was using in the past and the code to achieve this is:
| Code: |
// Clean up Googles Description
if (strpos(strtolower($feedsource), 'google') !== false) {
$newdescription = explode('<br>', $rssdescription);
$rssdescription = (strlen($newdescription[3]) > strlen($newdescription[4])) ?
$newdescription[3] : $newdescription[4];
}
|
I guess the idea is that if the url or feed source is Google, to remove the text and links before the two <br> tags at the top of the description.
Maybe with your expertise, you can adapt this code in Feed2Post. If you would like to see the full module, please let me know and I will send you a zip file.