Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic User_Counter_Mod max # of users problem (Read 2544 times)
oob
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Feb 2nd, 2002
User_Counter_Mod max # of users problem
Feb 2nd, 2002 at 4:04am
Print Post  
hey,
I was trying to get a mod to work and was unable to. The User_Counter_Mod for YaBB SP1 won't work in that the max # of users ever online never changes- I checked chmod and all so I was wondering if you guys might be able to help me. If it would be of any help here's the code directly from my BoardIndex.pl file:

    ## WHOSON MOD START- OOB ##
    if ( $guestaccess != 0 ) {
          $countonl = $numusers + $guests;
    } else {
          $countonl = $numusers;
    }
    if ( $guests == 1 ) { $uguest = qq~$guests $txt{'28'},~; }
    else { $uguest = qq~$guests $txt{'141'},~; }
    if ( $numusers == 1 ) { $uuser = qq~$numusers $who{'103'}~; }
    else { $uuser = qq~$numusers $txt{'142'}~; }
    open( FILE, "$vardir/mostuser.txt" );
    @onlcount = <FILE>;
    close( FILE );
    if ( $countonl > $onlcount[0] ) {
          fopen( FILE, ">$vardir/mostuser.txt" );
          print FILE "$countonl\n";
          print FILE "$date";
          fclose( FILE );
    }
    if ( $username ne 'Guest' ) {
          $onlcount[1] = &timeformat( $onlcount[1] );
          if ( $onlopt == 1 ) {
                if ( $countonl == 1 ) {
                      $uwhoonline .= qq~&#187; <a href="$scripturl?action=who">$who{'99'} ($countonl) $who{'100a'}</a> &#171;<br>~;
                }
                else {
                      $uwhoonline .= qq~&#187; <a href="$scripturl?action=who">$who{'98'} ($countonl) $who{'100b'}</a> &#171;<br>~;
                }
          }
          if ( $Show_MostUsers == 1 ) {
                $uonline .= qq~<BR>$mosttxt{'01'} $onlcount[1] $mosttxt{'02'} $onlcount[0] $mosttxt{'03'}~;
          }
    }
    ## WHOSON MOD END ##



thanks.
« Last Edit: Feb 8th, 2002 at 10:08pm by oob »  

Come visit my cell group's message boards:
http://oob.starwarssource.net/cgi-bin/mb/YaBB.pl- advice, chats, fun and alot more- by teens, for teens...
Back to top
 
IP Logged
 
oob
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Feb 2nd, 2002
Re: User_Counter_Mod max # of users problem
Reply #1 - Feb 8th, 2002 at 5:15am
Print Post  
*fidgets while he waits...*
  

Come visit my cell group's message boards:
http://oob.starwarssource.net/cgi-bin/mb/YaBB.pl- advice, chats, fun and alot more- by teens, for teens...
Back to top
 
IP Logged
 
oob
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Feb 2nd, 2002
Re: User_Counter_Mod max # of users problem
Reply #2 - Feb 14th, 2002 at 5:42am
Print Post  
anyone there ???
  

Come visit my cell group's message boards:
http://oob.starwarssource.net/cgi-bin/mb/YaBB.pl- advice, chats, fun and alot more- by teens, for teens...
Back to top
 
IP Logged
 
Spam
Full Member
***
Offline


I love Spam's HTTP

Posts: 159
Joined: Sep 18th, 2001
Re: User_Counter_Mod max # of users problem
Reply #3 - Feb 14th, 2002 at 7:41am
Print Post  
Hi

this code writes the information's in the file mostuser.txt:

Code
Select All
if ( $countonl > $onlcount[0] ) {
	     fopen( FILE, ">$vardir/mostuser.txt" );
	     print FILE "$countonl\n";
	     print FILE "$date";
	     fclose( FILE );
     }
 



It seems that YaBB can't write to that file... make sure that CHMOD is set at least to 755...

Cheers
Spam Wink
  

I do not spam you... even when i'm Spam Wink

[glow=yellow,2,300]Spam's HTTP [/glow]
Back to top
WWW  
IP Logged
 
oob
New Member
*
Offline


I love YaBB 1G - SP1!

Posts: 10
Joined: Feb 2nd, 2002
Re: User_Counter_Mod max # of users problem
Reply #4 - Feb 14th, 2002 at 11:38pm
Print Post  
I'm pretty sure I covered that...
*checks it*
yup, 777, lol...
it did change to 2 users one time when there were like 3 on (but it doesn't change to 3 when there are 4 or more on), so I'm confused.... But thanks.
  

Come visit my cell group's message boards:
http://oob.starwarssource.net/cgi-bin/mb/YaBB.pl- advice, chats, fun and alot more- by teens, for teens...
Back to top
 
IP Logged
 
Deskdirect
Senior Member
****
Offline


"Living Drama Free!"

Posts: 498
Joined: Jul 1st, 2001
Re: User_Counter_Mod max # of users problem
Reply #5 - Feb 15th, 2002 at 6:13pm
Print Post  
The problem I'm having may be related

This all happened all of a sudden to my Gold Board - it was working fine 10 mins. ago and I haven't made any changes.
PLEASE HELP ASAP!


Untrapped Error:
[Fri Feb 15 09:36:46 2002] YaBB.cgi: cannot open user file at /www/m/mitchryder/cgi-bin/yabb/Sources/BoardIndex.pl line 401. 

This is my line 401 - 
open(FILE, "$memberdir/$usernames.dat") || die "cannot open user file";

That error brought on this one -
cannot open user file at whoson.pl line 435.

This is my line 435 -
open(FILE, "$memberdir/$usernames.dat") || die "cannot open user file";
  

Classic Rock Rocks!
http://www.mitchryder.com
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint