FR: orderby=random and pagination having ‘memory’ (weblog entries)
Posted: 30 January 2007 11:37 AM   [ Ignore ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1067
Joined  03-22-2006

If ordering entries by random along with pagination the likelyhood of displaying duplicate views of each entry across several pages is quite high (dependant on pagination limit, number of entries etc...) as opposed to impossible.

This isn’t a bug as such i.e. the pagination function works correctly, offsetting the entries query by that given amount.

What would be handy, and this is just a whim, is if the original query results were cached and the pagination offset would affect this dataset rather than running the query again on each ‘page’.

Having searched the forums i don’t see much discussion relating to these two features so understandably this is a very small request, not a matter of life or death!

- Dan

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 31 January 2007 12:16 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  135
Joined  10-21-2005

Oooh!  Seconded.  I like the idea for a portfolio because it gives older entries a chance to shine (not always being stuck at the very end).  smile

Of course...that may just be my bass-ackwards way of thinking…

Still, I second!  :D

 Signature 

1.6.2 | 20080129 | business | pleasure

Profile
 
 
Posted: 20 September 2007 07:28 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  214
Joined  01-14-2006

I’m in for this one too…

needing this feature badly for a large activity directory, would like to give each activity equal exposure.

Iain.

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 20 September 2007 08:39 AM   [ Ignore ]   [ # 3 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  4900
Joined  04-15-2006

I have to agree with you all on this too.

I recently worked on a site and thought it would be nice to randomise the entries. There were a lot of them so I decided to paginate them but didn’t want them to always be in the same order so tried the ‘random’ feature on them. Alas it did exactly what is being talked about here the entries would show up again and again on other pages when I had just viewed them!! :-(

Admittedly it is all working correctly but it would be nice if there was a way around this. Not really sure how this could be accomplished but would make for a nice neat little feature. The only other way I can think of doing it would be with a query to find all the entry numbers and then pass on the entry numbers viewed to the next page so that they can then be taken out of the weblog tag parameter!! grin

Phew that would take a little work but would probably do it for now though although if the EE crew could find a way around this then that would be much better.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!!
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 20 September 2007 10:03 AM   [ Ignore ]   [ # 4 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1067
Joined  03-22-2006

Mmmm, a persistent session ‘cache’ for modules to store variables across page-loads? I’m getting this overwhelming feeling of deja-vu ;]

 Signature 

(a.k.a the_butcher)

Profile
 
 
Posted: 06 November 2007 05:37 AM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  214
Joined  01-14-2006

bah…

how about a custom creating a custom field which contains a ‘seed’, and a daily cron to whip through all the entries and assign each ‘seed’ field a random character - a to z… then ordering results by that field/character…

Has this got legs?

My entry count is getting big and displaying 100+ entries on a page (for fairness) is bordering on sillyness…

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 22 April 2008 12:43 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  214
Joined  01-14-2006

Thought I’d bump this again with an added “Developer’s Eye View” reference:

I’m implementing a lot of business directory type sites, sometimes mini directories within larger sites that can contain between 5 to 150 listings.

Problem is, the agencies that are engaging me to do the work want to equally promote all listings within the directory. (A fair enough request).

In order to do this, they request listings be displayed in a random order for each visitor.

So, I’m crying like a small child who’s had their favourite toy run over by a steam roller, watching a page with 150 listings load on a single page with each image popping open and my scrollbar having a fit for 25 seconds before coming to rest.

please, for the love of EE, can we have randomised, paginated results…

Iain.

 Signature 

Weblog | New Zealand Web Design Agency

Profile
 
 
Posted: 17 May 2008 12:06 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  141
Joined  08-07-2007

Hell, Ill bump this again. I am also having a fit with a product listing which is getting well over 50 and to show them all on one page is just excruciatingly painful.

Please EE, hook us up.

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 1149, on July 16, 2007 10:33 AM
Total Registered Members: 60727 Total Logged-in Users: 17
Total Topics: 73186 Total Anonymous Users: 15
Total Replies: 394712 Total Guests: 434
Total Posts: 467898    
Members ( View Memberlist )