#41207
12/10/2001 8:35 PM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Quite easily, just find the string in the code, search for "record book" or something, and change it as you requite. Note anything that starts with a $ means its a variable.
I can't afford a good signature editor
|
|
|
#41208
12/10/2001 9:37 PM
|
Joined: Apr 2001
Posts: 47
Member
|
Member
Joined: Apr 2001
Posts: 47 |
Yes, but what do I need to add to display the most visits to the board on any single day?
|
|
|
#41209
12/10/2001 11:49 PM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Ahh so you want to count a total for each day. Hmmmm idea is simple, but I dont have time to code an example for you sorry. In simple terms what you need to do it open a file, read in a number and + 1 to it with each visitor you get. At the end of the day you could reset that file to 0. But before resetting in you would need to check it against the 'best days total' and if its bigger overwrite it, otherwise leave it. Id use a pipe dimilted file for an example. current ppl online | most visitors on any given day might be 5|34 Sorry I cant be of much more help, but if you are semi familiar with perl you'll be fine. You only need to do basic file open/read functions, simple arithmatic, and number comparisons. Give it a go and if you get stuck I may be able to lend you a hand.
Cheers
I can't afford a good signature editor
|
|
|
#41210
12/11/2001 12:42 AM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
quote: Originally posted by Pagemakers: Is it possible to change the total visitor count of Who's online from "Current & Record Book", to "Current and most board visitors in a day"?
Look in online.cgi and search for "Record Book" and you'll find it where you can replace it with that you want.
|
|
|
#41211
12/11/2001 12:52 AM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
He want a little more functionality then that Lord, thats what I initially thought. But he would like to add the functionality to add up how many people hit the board a day and display the 'Best Day' total.
I can't afford a good signature editor
|
|
|
#41212
12/11/2001 12:56 AM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Sorry about that BassTeQ, I was dumb enough not to read the whole thread. *Bangs head*
|
|
|
#41213
12/11/2001 3:15 AM
|
Joined: Apr 2001
Posts: 47
Member
|
Member
Joined: Apr 2001
Posts: 47 |
Thanks guys - I thought someone may have thought of this already.
|
|
|
#41214
12/11/2001 5:18 PM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
quote: Originally posted by Lord Dexter: Sorry about that BassTeQ, I was dumb enough not to read the whole thread. *Bangs head*
Nps, I made the same mistake at first too
quote: Originally posted by Pagemakers: Thanks guys - I thought someone may have thought of this already
So are you going to give this a go yourself? We are here to help if you get stuck!
I can't afford a good signature editor
|
|
|
#41215
12/11/2001 8:13 PM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Yeah I can help too. I'm having a look at the code in online.cgi as we speak.
|
|
|
#41216
12/14/2001 7:15 AM
|
Joined: Apr 2001
Posts: 47
Member
|
Member
Joined: Apr 2001
Posts: 47 |
How are you getting on Dexter?
|
|
|
#41217
12/14/2001 7:04 PM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
What you could do is Update your Threads and look at the Record Book. It usually resets after you do that so test for me please.
|
|
|
#41218
12/15/2001 6:41 AM
|
Joined: Apr 2001
Posts: 47
Member
|
Member
Joined: Apr 2001
Posts: 47 |
My record book is not reset when I update threads
|
|
|
#41219
12/15/2001 7:20 PM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Has it ever resetted for you before?
|
|
|
#41220
12/16/2001 9:26 AM
|
Joined: Aug 2000
Posts: 569
Member
|
Member
Joined: Aug 2000
Posts: 569 |
# Note this will not log people in PRIVATE forums... if you want it to do that, # comment out the line with the "if" statement and the line with the "}" $online_url = "$CGIURL/forumdisplay.cgi?action=topics&forum=$ForumCoded&number=$number&DaysPrune=$DaysPrune&LastLogin=$LastLogin&site=$SiteCoded"; if ($LWA ne "private") { &WriteUserSession(" $Forum"); } I'm lost, how do you comment it out ?
|
|
|
#41221
12/16/2001 7:27 PM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
I thought the WOL did that and just had "Private topic" in Private Forum, or something like that I can't remember.
|
|
|
#41222
12/17/2001 1:05 PM
|
Joined: Apr 2001
Posts: 47
Member
|
Member
Joined: Apr 2001
Posts: 47 |
No it hasn't resetted before Dexter
|
|
|
#41223
12/20/2001 5:05 PM
|
Joined: Sep 2001
Posts: 194
Member
|
Member
Joined: Sep 2001
Posts: 194 |
I wanna know why the record (max number of users) does not stay forever until it hasn't been crossed? The thing keeps on resetting on its own.
|
|
|
#41224
12/20/2001 7:10 PM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
Yeah thats a bug. The record book was still in beta when this hack was released.
|
|
|
#41225
12/22/2001 6:17 AM
|
Joined: Apr 2001
Posts: 47
Member
|
Member
Joined: Apr 2001
Posts: 47 |
Dexter, did you or anyone else manage to add a "guests visited today" total to the who's online page?
|
|
|
#41226
12/22/2001 7:29 PM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
No I couldn't figure it out...
|
|
|
#41227
12/23/2001 4:45 PM
|
Joined: Oct 2000
Posts: 743
Moderator / Code Fixer
|
Moderator / Code Fixer
Joined: Oct 2000
Posts: 743 |
Pagemakers, have yo uput together any code yet? Or aren't you going to give it a go?
I can't afford a good signature editor
|
|
|
#41228
12/23/2001 7:28 PM
|
Joined: May 2001
Posts: 6,708
Member
|
Member
Joined: May 2001
Posts: 6,708 |
My guess is you'll have to Modify the record book so it resets daily.
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|