pagination and orderby-random
Posted: 16 May 2008 08:42 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  141
Joined  08-07-2007

I just noticed a little bug when I use paginate="bottom" and orderby="random".

Basically what is happening is I have over 50 entries in a particular weblog.
Now when I test the pagination each time I click to get a new page I get random results. Then I can only run through a total of 25 entires before the pagination stops with no more results.

Is there some kind of way to randomize the list once and then paginate through them?

Profile
 
 
Posted: 16 May 2008 10:04 PM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  5958
Joined  08-04-2002

Not that I’m aware of standard but maybe using a query or php.

Profile
 
 
Posted: 16 May 2008 11:21 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  13075
Joined  05-15-2004

No, there is no built-in way to use pagination and orderby="random" together easily. These two threads shed some light on the issue. Your best bet would be to support the existing feature request, I guess.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
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 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60973 Total Logged-in Users: 16
Total Topics: 73686 Total Anonymous Users: 17
Total Replies: 397489 Total Guests: 462
Total Posts: 471175    
Members ( View Memberlist )