Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jan 2000
Posts: 60
Member
Member
Offline
Joined: Jan 2000
Posts: 60
Counter hacked: "You're visitor number:" add-in!

See it in action: http://www.vietmart.net/cgi-bin/boards/CountBoards.cgi (the link is not a permanent url)


Well well, this hack will display "You're visitor number: ###" under 'You last visited:'. I wrote a small counter script and add it into the Ultimate.cgi! It's very easy to use. Note: This is a beta hack, i am not responsible for any damages on your UBB. But i think its will work fine.

Tested on v5.42a


Ok, now create a "Count.txt" and place it in your ubb directory. Chmod it to 0777.

You may insert any number(this format: |1243) in the Count.txt to begin with or else leave it along.


Open up the Ultimate.cgi

Find:

#combine date/time line
$LastLoginTime = ("You last visited: $FormatDate $FormatTime");
} else {
$LastLoginTime = "";
}



add this code right below it:
Code
code:


Find:

$LastLoginTime

replace it with:

$LastLoginTime
$CounterLine



Noted: $LastLoginTime is appearing two time, so search twice and replace the new code above.


I am so tire working on this hack. I've decided to make it show the count in graphic too, but too lazy [Linked Image]! So if anyone have a little time, please do that for me. Or else, i'll do it then.

Oh, you may notice that when you refresh your page, your counter is changing too. I'll fix it later on. [Linked Image]

***Reminder: Reinstall the Ultimate.cgi will cause the 'Count' to start over again. If that's happen, just go into the Count.txt and put in any number you want to begin with. (this format: |1243)


PS: I am not good in cgi/perl, so it took me the whole day to hack this thing. I hope you might need it/like it. And if you have found a bug or two, please post your re-code here for other to use. Thanks! [Linked Image]

See it in action: http://www.vietmart.net/cgi-bin/boards/CountBoards.cgi (the link is not a permanent url)


<FONT COLOR="blue">
Free UBB Instalation

Contact on AIM: vmnweb
</FONT c>
Sponsored Links
Entire Thread
Subject Posted By Posted
Counter hacked: "You're visitor number:" add-in! Anonymous 01/22/2000 2:56 PM
Re: Counter hacked: "You're visitor number:" add-in! Anonymous 01/23/2000 12:22 AM
Re: Counter hacked: "You're visitor number:" add-in! Jon 03/04/2000 7:18 AM
Re: Counter hacked: "You're visitor number:" add-in! Mutt 03/04/2000 2:55 PM
Re: Counter hacked: "You're visitor number:" add-in! Jon 03/05/2000 12:41 AM
Re: Counter hacked: "You're visitor number:" add-in! Grim*Talez 03/06/2000 11:18 PM
Re: Counter hacked: "You're visitor number:" add-in! t-c-i 03/06/2000 11:26 PM
Re: Counter hacked: "You're visitor number:" add-in! Arie 03/12/2000 3:39 PM
Re: Counter hacked: "You're visitor number:" add-in! cal 03/12/2000 3:55 PM
Re: Counter hacked: "You're visitor number:" add-in! Anonymous 03/22/2000 7:37 AM
Re: Counter hacked: "You're visitor number:" add-in! The Team 04/13/2000 3:53 PM
Re: Counter hacked: "You're visitor number:" add-in! The Team 04/14/2000 3:23 PM

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
badfrog
badfrog
somewhere on the coast of Maine
Posts: 94
Joined: March 2007
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)