Part of the EllisLab Network
pMachine Pro has been replaced by ExpressionEngine, our full featured web publishing solution. Please consider upgrading.
You can download pMachine Pro here: Download pMachine Pro  |  Download Language Packs
   
 
Changing the length of RSS feed items
Posted: 28 May 2004 02:17 PM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  536
Joined  2003-02-25

How is it possible to change the length of the RSS news item? I would like to shorten the current output. Not the count, but an item’s length (word or letter count).

Thanks,

dombi

Profile
 
 
Posted: 31 May 2004 12:56 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  7534
Joined  2002-08-05

You will have to modify the script, since the string length of the RSS items content is limited to 500.  Open up rss.cp.php and find the following around line 230:

if (strlen($body) >500)
{
     $body
= substr("$body", 0, 500);


Change the 500’s to the maximum string length that you desire.

 Signature 
Profile
 
 
Posted: 01 June 2004 08:59 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  536
Joined  2003-02-25

Excellent! Thank you very much, that is exactly what I was looking for.

dombi

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 233, on December 18, 2007 12:04 AM
Total Registered Members: 64968 Total Logged-in Users: 0
Total Topics: 81989 Total Anonymous Users: 0
Total Replies: 440672 Total Guests: 19
Total Posts: 522661    
Members ( View Memberlist )
Active Members: