Previous Thread
Next Thread
Print Thread
Rate Thread
#274664 06/03/2004 9:14 PM
Joined: Mar 2000
Posts: 180
Member
Member
Offline
Joined: Mar 2000
Posts: 180
I have a counter on my home page...before long it's gonna roll over 1,000,000. Is there a way to track which user is the 1,000,000th hit, for like a prize or something? Any and all ideas appreciated...

Sponsored Links
Joined: Mar 2000
Posts: 180
Member
Member
Offline
Joined: Mar 2000
Posts: 180
Anyone??

Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
Really depends. If it's a counter where you have access to the code then you could probably add some code to check if the counter is at 1 million. If so, then you could grab their userid from their cookie and write it to a file or a database. Then you'd just need to lookup their username from the userid that you would have.


UBB.threads Developer
Sally #274667 06/05/2004 11:39 AM
Joined: Mar 2000
Posts: 180
Member
Member
Offline
Joined: Mar 2000
Posts: 180
Yep, I could code it in, if I just knew WHAT to add...!

Joined: Mar 2000
Posts: 180
Member
Member
Offline
Joined: Mar 2000
Posts: 180
Just now thought of it, but the counter is actually on our home page, which is a static HTML page...nothing fancy, with just a link to our BB. That probably changes everything...

Sponsored Links
Joined: Mar 2000
Posts: 180
Member
Member
Offline
Joined: Mar 2000
Posts: 180
Someone suggested this, sound about right?

"You can track the 1,000,000 person easily using PHP. Start the counter at whatever you are at now, and then increment every time someone enters your site. That way, you can then so a SELECT * FROM table etc etc, and then call the variable, test it to see if it is 1,000,000, and if so, echo a message / open a new file."

Joined: Mar 2000
Posts: 180
Member
Member
Offline
Joined: Mar 2000
Posts: 180
Don't know if this will help or not, but here is the HTML for my coutner:

Code
<!--webbot bot="HitCounter" u-custom="57chevy.gif" i-digits="7" i-image="5"<br />      PREVIEW="&lt;strong&gt;[Hit Counter]&lt;/strong&gt;" i-resetvalue="972300" startspan<br />      --><img src="_vti_bin/fpcount.exe/C:/My%20Documents/My%20Webs/Supercar%20Registry/?Page=index.htm|Custom=57chevy.gif|Digits=7" alt="Hit Counter"><!--webbot bot="HitCounter" endspan<br />      --><br />


I still haven't thought of a way to do it...popups are no good, but maybe a redirect or load a completely different page when the counter rolls over?


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)