Previous Thread
Next Thread
Print Thread
Rate Thread
#234011 01/24/2003 11:16 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
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.

Sponsored Links
palmen #234012 01/24/2003 11:21 PM
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.

Daine #234013 01/24/2003 11:35 PM
Joined: Feb 2002
Posts: 1,759
Addict
Addict
Offline
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

palmen #234014 01/24/2003 11:39 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, exactly.

palmen #234015 01/25/2003 12:21 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
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.

Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)