I need someone to make an easy change on a PHP script

dgfalk

Power Member
Joined
Apr 26, 2010
Messages
687
Reaction score
95
I have this script that pulls articles off an RSS feed and posts it to my website. It will post the first part of the article then it says "to read the rest of the article click here"

What I dont like about it is that sometimes it will post the first 10 words of the article or sometimes it will post the first 50 words (never seen it more than 50) I want it to post at least the first 100-150 words of the article so i keep the user on my page longer. Ive looked at the script but I dont know shit about PHP and couldn't find where to change it.

Anyone willing to look at it for me real quick?
 
The fact that it is randomly changing the intro length would make me guess it is not actually limiting the length, but rather just pulling the full intro provided in your rss feed. I know of many CMS systems that allow the user to manually copy and paste there own "Intro" from the original article to be used in there rss feeds. Easy way to check is to look at your raw rss feed and see if it matches what is making it to your site. If it turns out that the rss feed does have a lot more info that is getting cut short then let me see your script and I'd be glad to help you normalize the output.
 
The fact that it is randomly changing the intro length would make me guess it is not actually limiting the length, but rather just pulling the full intro provided in your rss feed.

Ah ha, you are right on here. It is posting the full RSS feed, and the RSS feed is the into/first paragraph of the article. Doesn't look like theres anyway around this.
 
There is a way around it, but labor wise it is not always very cost effective. You could make a spider that looks at the rss feed then goes to the site and pulls more of the article then chops it down to an even amount. I've had several customers that it bothered them that much lol.
 
Back
Top