Elcan Software

Small software, big solutions.

Home arrow Support Forum
Support Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Remove Title & Author Repeat in Google Text (1 viewing) (1) Guest
Requests for feed2post
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Remove Title & Author Repeat in Google Text
#758
Sept_de_Neuf (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Remove Title & Author Repeat in Google Text 5 Months, 2 Weeks ago Karma: 1  
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#809
movilla (Admin)
Admin
Posts: 279
graph
User Online Now Click here to see the profile of this user
Re:Remove Title & Author Repeat in Google Text 5 Months ago Karma: 1  
Thank you for the help, we are glad to have contributions like yours, we'll analyze the code and incorporate it with the proper credit for you if the code is proved to be useful and stable.

Best regards,
Mario
 
Report to moderator   Logged Logged  
 
Best regards,
Mario - Feed2post coder
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Sponsors

Your Ad Here
Joomla Templates by Joomlashack