Register   Login
     
  Latest Posts  
RE: News Article css
by smcculloch on 12/02/2008 3:34 PM
RE: Integration with UserProfile StoryFeed
by smcculloch on 12/02/2008 3:32 PM
RE: Multi currency
by Astaroth on 12/02/2008 3:32 PM
RE: SUMMARY tag
by smcculloch on 12/02/2008 3:31 PM
RE: JQuery Error in IE6
by smcculloch on 12/02/2008 3:31 PM
RE: Was create new album always in add photo?
by smcculloch on 12/02/2008 3:30 PM
RE: Multi currency
by smcculloch on 12/02/2008 3:12 PM
RE: Multi currency
by Astaroth on 12/02/2008 3:03 PM
RE: File Links in feeds
by smcculloch on 12/02/2008 1:53 PM
Was create new album always in add photo?
by crocklobster on 12/02/2008 1:41 PM
  Forums  
Subject: Random vs. Sequential Quotes
Prev Next
You are not authorized to post a reply.

Author Messages
Bruce HeadUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:1

5/29/2005 5:41 PM  
A possible enhancement for this module would be giving an option to display quotes randomly or sequentially. 

With random display, even if you have a lot of quotes, you'll see a fair bit of repetition because of how randomness works (theoritically, the same quote could appear multiple times in a row).   For example, if you have 20 quotes, quote #12 could appear five times in a row.  The only way to prevent this is to insert the same quotes multiple time (e.g., 20 quotes repeated 4 times = 80 quotes) reducing the chance the same quote would be repeated twice in a row.

With sequential display, the quotes would appear in sequence, so you'd only get repetition after the last quote has been displayed.  You'd never have the same quote appearing twice in sequence.  Sequential display could be achieved fairly easily with a session cookie.
 
I might try a mod to the source at some point but I don't have Visual Basic/Studio so it's a little more work.
 
Bruce
Scott McCullochUser is Online
Administrators
Nuke Master
Nuke Master
Posts:12556


5/30/2005 1:00 AM  
I agree, with a small number of quotes repetition is high, the trick is too build a large number up!
 
I could add some smarts to help out, but I think more quotes is better

Scott McCulloch
Site Administrator
Rodney JoyceUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:301


6/03/2005 4:54 AM  
Hi Scott/et all


Unfortunately it seems we both ended up with a Quotes module (mine was
a result of a legacy site and I was trialling censorship in my
UserProfile module)


Anyway - may as well share some stuff with you


I have 2 settings on mine - Random and Least Shown - each time it is
viewed I increment a counter and then the sp does an order by this
within the user's censorship - you may want to do something similair -
really quick and easy and ensures new quotes are shown often.


I alo

Thanks
Rodney
Smart-Thinker & The DotNetNuke Directory
PokerDIY - Free tools and leagues for home poker players
Scott McCullochUser is Online
Administrators
Nuke Master
Nuke Master
Posts:12556


6/03/2005 6:51 AM  
Ahh good idea!

Scott McCulloch
Site Administrator
You are not authorized to post a reply.
Forums > Modules > Quotes > Random vs. Sequential Quotes



ActiveForums 3.7