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.42aOk, 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:
Find:$LastLoginTimereplace it with:
$LastLoginTime
$CounterLineNoted:
$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]](https://ubbdev.com/ubb/smile.gif)
! 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]](https://ubbdev.com/ubb/smile.gif)
***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]](https://ubbdev.com/ubb/smile.gif)
See it in action:
http://www.vietmart.net/cgi-bin/boards/CountBoards.cgi (the link is not a permanent url)