nukeSEO.com - PHPNuke SEO Search engine optimization, professional tools including nukeSEO, nukeSPAM, nukeFEED, nukePIE, nukeWYSIWYG and more

 

. Welcome to nukeSEO.com  ! 
.
.
.


.
nukeSEO.com: Forums


 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Number of lines of content returned
 
 
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukePIE (tm), nukeREADER (tm)
View previous topic :: View next topic  
Author Message
moosus
Newbie
Newbie


Joined: Jun 10, 2008
Posts: 2

PostPosted: Tue Jun 10, 2008 11:42 pm    Post subject: Number of lines of content returned Reply with quote

Hi guys,

I have installed nukePIE ( it is a great bit of code thanks).

Just wondering if there is way to limit the amount of content returned ie. ... the latest 5 items

Cheers
moosus
  
Back to top
View user's profile Send private message
moosus






PostPosted: Wed Jun 11, 2008 12:20 am    Post subject: Re: Number of lines of content returned Reply with quote

thanks to fkelly notes in another thread I figured it out...
for anybody who is looking to do the same thing

in mainfile.php look for the first
Code:
}

else
{


under that you will see
Code:
 foreach($feed->get_items() as $item) {


you need to replace this line with
Code:
$start = 0;

          $end = X;
      foreach($feed->get_items($start,$end) as $item) {


where X = the number of entries you want returned

NB: once you change this it changes the number of entries returned on ALL feeds

cheers (don't thank me thank fkelly)
  
Back to top
montego
webmaster


Joined: Dec 26, 2005
Posts: 254

PostPosted: Wed Jun 11, 2008 6:03 am    Post subject: Re: Number of lines of content returned Reply with quote

BTW, for you RavenNuke'ers, fkelly has also modified the blocks administration in the upcoming release to add a new field to configure this number of entires by feed! Way to go fkelly!
  
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    nukeSEO.com Forum Index -> nukePIE (tm), nukeREADER (tm) All times are GMT - 5 Hours
 
 Page 1 of 1

 

Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001-2008 phpBB Group


Page Generation: 0.03 Seconds