Page Index Toggle Pages: 1 ... 3 4 [5] 6 7  Send TopicPrint
Very Hot Topic (More than 25 Replies) Users Online Counter for SP 1.3.1 (Read 45156 times)
xtrasweetgirl
Senior Member
****
Offline



Posts: 496
Joined: Oct 8th, 2002
Gender: Female
Re: Users Online Counter for SP 1.3.1
Reply #60 - Feb 5th, 2004 at 10:04pm
Print Post  
user today and Users Online Counter are 2 separate mods..

  I dont see the point for the user today to count the guests too 
  (user today) get it ?.. not guests today... Tongue


  
Back to top
 
IP Logged
 
caliman
God Member
*****
Offline


Swanky

Posts: 1220
Location: Pt. Richmond
Joined: Mar 20th, 2002
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #61 - Feb 5th, 2004 at 10:25pm
Print Post  
That's harsh.

I think it looks better to have guests too.

For example, I have 30 users a day or so but hundreds of guests. It would be nice to post that number.

Some people probably look at it and get the wrong idea that only 30 people came by today.

  
Back to top
WWW  
IP Logged
 
BillBSET
God Member
*****
Offline


Ignorance can be fixed,
Stupid is Forever

Posts: 698
Location: Monkey Island
Joined: Sep 19th, 2003
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #62 - Feb 15th, 2004 at 9:38am
Print Post  
I very interested in understanding this so here goes...

now this gets called every time ...  right...

and does the second one take

1. A Little more HorsePower
2. Some More horsepower
3. A lot more horsepower


this is the original code....  Subs.pl

These are right from the MOD...

Code
Select All
      fclose(LOG);
      fopen(LOG, ">$vardir/log.txt", 1);
      print LOG "$field|$date\n";
      foreach $curentry (@online) {
            $curentry =~ s/\n//g;
            ($name, $date1) = split(/\|/, $curentry);
            $date2 = $date;
            chomp $date1;
            chomp $date2;
            &calctime;
            if($name ne $field && $result <= 15 && $result >= 0 && $name ne $user_ip) { print LOG "$curentry\n"; }
      }
 



Replacement code...

Code
Select All
## WHOSON MOD START ##
      fopen(LOG, "$vardir/log.txt");
      my @online = <LOG>;
      fclose(LOG);
      fopen(LOG, ">$vardir/log.txt");
      print LOG rname'}\|$INFO{'num'}|$user_ip\n";
      foreach $curentry (@online) {
            $curentry =~ s/\n//g;
              ($name, $value, $name1, $name2, $name3, $name4, $name5, $name6, $ipinfo) = split(/\|/, $curentry);
            $date1 = "$value";
            $date2 = "$logdate";
            &calctime;
            if($name ne $field && $result <= 5 && $result >= 0 && $name ne $user_ip) { print LOG "$curentry\n"; }
      }
      fclose(LOG);
      ## WHOSON MOD END ## 

  


After you eliminate all of the possibilities,
whatever is left, no matter how seemingly impossible,
must be the truth.


Back to top
WWW  
IP Logged
 
BillBSET
God Member
*****
Offline


Ignorance can be fixed,
Stupid is Forever

Posts: 698
Location: Monkey Island
Joined: Sep 19th, 2003
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #63 - Feb 15th, 2004 at 9:45am
Print Post  
And could a switch be set that selected the extended version
or the first version...

So you could turn it on if you wanted ...

I was looking through the mod and that was the only
block of code, that amounted to anything,  other than the .pl

Just learning...
  


After you eliminate all of the possibilities,
whatever is left, no matter how seemingly impossible,
must be the truth.


Back to top
WWW  
IP Logged
 
sam
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 26
Joined: Feb 1st, 2004
Re: Users Online Counter for SP 1.3.1
Reply #64 - Feb 15th, 2004 at 12:44pm
Print Post  
Hi,
I need a help. My user online work great. now I add user today.
It show up only users. I want to add Guest also. how can I do?
my code

<td valign="top" align="left"><font size="1">
                   $uwhoonline$uguest $uuser<BR>$users<BR>$uttxt{'1'} $usertodaycount $uttxt{'2'} $usertoday $uonline
           </font></td>
  
Back to top
 
IP Logged
 
Jazhawk
God Member
*****
Offline


I'm not always right but
I'm never wrong

Posts: 799
Location: Las Vegas
Joined: Mar 11th, 2002
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #65 - Mar 31st, 2004 at 2:57pm
Print Post  
Oristo

In my YaBB.cgi, I don't have the line:
elsif ($action eq 'usersrecentposts') { require "$sourcedir/Profile.pl"; &usersrecentposts; }

at all.

Any ideas?

-Jazhawk
  
Back to top
IP Logged
 
borbor
New Member
*
Offline



Posts: 25
Location: Calgary
Joined: Sep 12th, 2002
Gender: Female
Re: Users Online Counter for SP 1.3.1
Reply #66 - Apr 6th, 2004 at 8:09pm
Print Post  
Quote:
ah... a little more information...

I think the people have to go to the BoardIndex.pl in
order for the UsersOnLineTody to get updated...

bill


That's exactly right.  Took me a while to figure that out too.

For the record, I have both these mods working on mine.  Took a lot of tweeking for me (and I don't count guests) but I eventually got both to work together on my board.
  

--------------------
ParentsWorld.com  Log on with username: test password: test
Back to top
WWW  
IP Logged
 
thecaretaker
Junior Member
**
Offline


I am thecaretaker

Posts: 87
Location: 1066 Country
Joined: Dec 5th, 2002
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #67 - Jun 19th, 2004 at 11:10pm
Print Post  
Can someone/anyone confirm one thing for me. I have installed this mod on older forums and now on 1.3.1 and I have always found the same problem....

It does not record 'the day with the most users online' as it says it does in the read me, on my forum it has always recorded 'the day with the most members using the forum at the same time'

Is this correct or something I'm doing stupid each time I install this mod? (I've always amended the line in the english file to read correctly).

See attached file to see how I've changed the layout and wording.

PS: I took this screenshot just after midnight, that's why there are no long lists of users. That's my excuss and I'm sticking to it Grin
  

info.JPG ( 35 KB | Downloads )
info.JPG

Growing old is mandatory. Growing up is optional!
Back to top
WWW  
IP Logged
 
xtrasweetgirl
Senior Member
****
Offline



Posts: 496
Joined: Oct 8th, 2002
Gender: Female
Re: Users Online Counter for SP 1.3.1
Reply #68 - Jun 19th, 2004 at 11:29pm
Print Post  
thecaretaker wrote on Jun 19th, 2004 at 11:10pm:
Can someone/anyone confirm one thing for me. I have installed this mod on older forums and now on 1.3.1 and I have always found the same problem....

It does not record 'the day with the most users online' as it says it does in the read me, on my forum it has always recorded 'the day with the most users on the forum at the same time'

Is this correct or something I'm doing stupid each time I install this mod?


Yup  you're doing stupid... LOL I am only kidding

This mod only counts the most  users ever online at the same time.. I think BillBSET is working on a mod that will actually counts all the members and guests who visit your site n daily  basics.
  
Back to top
 
IP Logged
 
thecaretaker
Junior Member
**
Offline


I am thecaretaker

Posts: 87
Location: 1066 Country
Joined: Dec 5th, 2002
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #69 - Jun 20th, 2004 at 12:08am
Print Post  
Hay, thank you for that very quick reply.

I was even thinking of trying to work something simple out myself. It has a variable for the total daily count (from the other mod installed), it shouldn't be too difficult to use that in a simular way to get a maximum running total and save that to the file instead.

But I shall wait for the expert to do it better for me. What would take him 5 minutes would prbably take me 5 weeks Grin Grin

Thanks again!
  

Growing old is mandatory. Growing up is optional!
Back to top
WWW  
IP Logged
 
tenl
Full Member
***
Offline



Posts: 174
Location: The Matrix
Joined: Jan 31st, 2003
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #70 - Jun 20th, 2004 at 4:19am
Print Post  
Quote:
user today and Users Online Counter are 2 separate mods..

 I dont see the point for the user today to count the guests too  
 (user today) get it ?.. not guests today... Tongue





Call me crazy but I can't seem to find that "user today" mod for the life of me..

Can someone provide me a link to teh file or thread please..i would love to get my board looking like yours "thecaretaker"

Thanks for any help possible...
  
Back to top
 
IP Logged
 
thecaretaker
Junior Member
**
Offline


I am thecaretaker

Posts: 87
Location: 1066 Country
Joined: Dec 5th, 2002
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #71 - Jun 20th, 2004 at 6:18am
Print Post  
I must admit, I get confused by the names. These are the ones I used, I think (but I did change a few bits myself)
Users Today mod
Users Online Counter mod
and Recent Users List mod

Look through the forum threads for the odd fix needed. I hope that's a help Wink
  

Growing old is mandatory. Growing up is optional!
Back to top
WWW  
IP Logged
 
tenl
Full Member
***
Offline



Posts: 174
Location: The Matrix
Joined: Jan 31st, 2003
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #72 - Jun 22nd, 2004 at 11:45pm
Print Post  
Appreciate the help caretaker...can you possibly provide a link to the thread?..i dont know if im doing it wrong or what...i still can't find the thread...lol

P.S. I also have a problem with it...look at the pic....
Im assuming thats the fix that you were mentioning..

Any suggestions..

P.S. couldnt attach for some reason..
basically...
it says exactly this...

These 5 users were on the board today:

As you can see..it displays no names...
  
Back to top
 
IP Logged
 
tenl
Full Member
***
Offline



Posts: 174
Location: The Matrix
Joined: Jan 31st, 2003
Gender: Male
Re: Users Online Counter for SP 1.3.1
Reply #73 - Jun 24th, 2004 at 10:32pm
Print Post  
Anybody?.. Cry
  
Back to top
 
IP Logged
 
xtrasweetgirl
Senior Member
****
Offline



Posts: 496
Joined: Oct 8th, 2002
Gender: Female
Re: Users Online Counter for SP 1.3.1
Reply #74 - Jun 24th, 2004 at 10:38pm
Print Post  
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 ... 3 4 [5] 6 7 
Send TopicPrint