FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Example Pagination Issue - RSS2HTML Pro View next topic
View previous topic
Post new topicReply to topic
Author Message
OLM2



Joined: 03 Oct 2013
Posts: 3

PostPosted: Thu Oct 03, 2013 4:34 pm Reply with quoteBack to top

Hi All,

Firstly pretty pleased with the scripts - been using the standard one for
some years and just bought the Pro Version.

Fixed the errors and got everything working and spent some time with PHP
getting the output how I want it within the restrictions of the feed.

One issue I am having is with pagination - using the provided example.
Got it working no problem and it is showing results where there are
multiple pages.

However if the number of items in the feed results is less than the number
that you have declared per page then it doesn't show the results.

I only noticed this because I was echo'ing the content of
~~~NumberOfFeedItems~~~ to do a "X Number Of Results Found" bit.

So basically I have the number of results per page set at the default 10 -
if there are more than 10 results in the feed then happy days everything
is fine. However if there are 10 results or less then nothing is displayed.

At first I thought that the above might have been a mistake I made whilst
modifying the script - so I created another template just with the
example pagination code in it and the problem is seen.

So as a temporary fix I have hacked it a bit to check the number of
returned results - if it is less than 10 then make the itemsperpage
the same number but minus -1 to create two pages.

However the above is just a hack and would prefer to do it properly -
can't exactly work the code out so wondered if anyone had the same
problem and rectified it - what was the solution?

Thanks in advance for any help.
View user's profile
OLM2



Joined: 03 Oct 2013
Posts: 3

PostPosted: Fri Oct 04, 2013 3:46 pm Reply with quoteBack to top

No one had this issue?

My temporary hack is not great :-(
View user's profile
OLM2



Joined: 03 Oct 2013
Posts: 3

PostPosted: Sun Oct 06, 2013 8:36 am Reply with quoteBack to top

Ok no worries this has now been resolved.

The example pagination code is missing an else statement and
code and also the logic for creating/displaying the pages is slightly
wrong.
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme