|
|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
Hmm, I've been meaning to post this for some time, but never got around to it. I have noticed on my site the spotlight isn't very random. I am on my page quite a bit throughout the day, and I can easily see the same profile come up in the same day. Also, even from day to day, its always the same ones it seems.
So I'm just wondering how you do the random thing? Is it just like a rand() function with a seed? I'd just like a way to make it more random than it is now, because it seems to favor certain profiles and only pull those ones the most.
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Do you have it set to require certain fields? If you check too many boxes and require lots of fields to be complete... then there typically aren't very many users to pull from. I think you'll get the most random selection by not checking any of the field boxes. 
|
|
|
|
Joined: Feb 2002
Posts: 1,759
Addict
|
Addict
Joined: Feb 2002
Posts: 1,759 |
Hmm, I'm braindead. lol, I totally forgot there was a setting to adjust what things it looked for to include it in the spotlight. I reduced it from 5 things to 2, should make a huge difference. Thanks Josh 
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
Yes, exactly. 
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
The rand() function isn't available in all mysql versions so I have avoided it and select a random numbered row out of how ever many rows there are to select from. Lowering the number of required fields will give it a greater number to select from as Josh pointed out. 
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
|
|
Forums63
Topics37,575
Posts293,931
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|