php forum
php mysql forum
php mysql smarty
 
Page 17 of 18 < 1 2 ... 15 16 17 18 >
Topic Options
#41207 - 12/10/01 07:35 PM Re: Who's Currently Online
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
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 frown

Top
#41208 - 12/10/01 08:37 PM Re: Who's Currently Online
Pagemakers Offline
Member

Registered: 04/01/01
Posts: 47
Loc: UK
Yes, but what do I need to add to display the most visits to the board on any single day?

Top
#41209 - 12/10/01 10:49 PM Re: Who's Currently Online
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
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 frown

Top
#41210 - 12/10/01 11:42 PM Re: Who's Currently Online
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">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"?</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

Look in online.cgi and search for "Record Book" and you'll find it where you can replace it with that you want.

Top
#41211 - 12/10/01 11:52 PM Re: Who's Currently Online
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
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 frown

Top
#41212 - 12/10/01 11:56 PM Re: Who's Currently Online
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Sorry about that BassTeQ, I was dumb enough not to read the whole thread. *Bangs head*

Top
#41213 - 12/11/01 02:15 AM Re: Who's Currently Online
Pagemakers Offline
Member

Registered: 04/01/01
Posts: 47
Loc: UK
Thanks guys - I thought someone may have thought of this already.

Top
#41214 - 12/11/01 04:18 PM Re: Who's Currently Online
BassTeQ Offline
Moderator / Code Fixer

Registered: 10/14/00
Posts: 891
Loc: Australia
</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by Lord Dexter:
Sorry about that BassTeQ, I was dumb enough not to read the whole thread. *Bangs head*</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

Nps, I made the same mistake at first too <img src="smile.gif" border="0" alt="" />

</font><blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr /><font size="2" face="Verdana, Helvetica, sans-serif">Originally posted by Pagemakers:
Thanks guys - I thought someone may have thought of this already</font><hr /></blockquote><font size="2" face="Verdana, Helvetica, sans-serif">

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 frown

Top
#41215 - 12/11/01 07:13 PM Re: Who's Currently Online
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Yeah I can help too. I'm having a look at the code in online.cgi as we speak.

Top
#41216 - 12/14/01 06:15 AM Re: Who's Currently Online
Pagemakers Offline
Member

Registered: 04/01/01
Posts: 47
Loc: UK
How are you getting on Dexter?

Top
#41217 - 12/14/01 06:04 PM Re: Who's Currently Online
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
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.

Top
#41218 - 12/15/01 05:41 AM Re: Who's Currently Online
Pagemakers Offline
Member

Registered: 04/01/01
Posts: 47
Loc: UK
My record book is not reset when I update threads

Top
#41219 - 12/15/01 06:20 PM Re: Who's Currently Online
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Has it ever resetted for you before?

Top
#41220 - 12/16/01 08:26 AM Re: Who's Currently Online
Metallifukinca Offline
Member

Registered: 08/21/00
Posts: 620
Loc: Toronto, Ont
# 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("<A HREF="$online_url">$Forum</A>");
}

I'm lost, how do you comment it out ?

Top
#41221 - 12/16/01 06:27 PM Re: Who's Currently Online
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
I thought the WOL did that and just had "Private topic" in Private Forum, or something like that I can't remember.

Top
#41222 - 12/17/01 12:05 PM Re: Who's Currently Online
Pagemakers Offline
Member

Registered: 04/01/01
Posts: 47
Loc: UK
No it hasn't resetted before Dexter

Top
#41223 - 12/20/01 04:05 PM Re: Who's Currently Online
svr Offline
Member

Registered: 09/28/01
Posts: 189
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.

Top
#41224 - 12/20/01 06:10 PM Re: Who's Currently Online
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
Yeah thats a bug. The record book was still in beta when this hack was released.

Top
#41225 - 12/22/01 05:17 AM Re: Who's Currently Online
Pagemakers Offline
Member

Registered: 04/01/01
Posts: 47
Loc: UK
Dexter, did you or anyone else manage to add a "guests visited today" total to the who's online page?

Top
#41226 - 12/22/01 06:29 PM Re: Who's Currently Online
Lord Dexter Offline
Member

Registered: 05/25/01
Posts: 6503
Loc: Melbourne, Australia
No I couldn't figure it out...

Top
Page 17 of 18 < 1 2 ... 15 16 17 18 >


Who's Online
0 registered (), 24 Guests and 8 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
Yesterday at 10:54 AM
How to hide sub forums from summary page
by blaaskaak
12/03/08 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks