 |
 |
 |
 |
#155516 - 08/28/04 12:10 PM
[6.3.x] [beta] Recent Visitors Stats
|
Member
Registered: 09/11/01
Posts: 667
Loc: MI
|
Modification Name: *Recent Visitors Stats Author: havoq Description: Displays PNTF stats in summary category Demo: Demo Download Link: Download Note: This works in conjunction with Ians Hidden User Hack located here If this isnt installed then you will not get the hidden users stats. Also this version isn't worditezed. That can be done as well if one so inclined 2nd Note: This hack probably will work on 6.7 if the code is equivalent. In fact I encourage anyone to port it over. I just didn't wanna post it in there and have the code be possibly wrong. However, consider this a 6.7 hack really... 
_________________________
-Jon I have a measly [img]http://www.ubbdev.com/ud/?u=chugger93&s=1[/img] points, it's weak, I know Where I continue to hack, even though it's a state of mind
|
|
Top
|
|
|
|
 |
 |
 |
 |
 |
 |
 |
 |
#155524 - 10/31/04 07:57 PM
Re: [6.3.x] [beta] Recent Visitors Stats
|
Enthusiast
Registered: 10/10/02
Posts: 391
Loc: Toronto
|
hm...not quite, you can't replace that, you will end up with the same routine twice, but I got it. Here, this is the whole Ian's Invisible Mod for 6.3x. Just in case someone else running absolete versions, like us, would need it:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x In public_pntf_summary.pl x
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
FIND:
if($r->{"overflow"} > 0) {
if($userstring[0] =~ m/d{8}/) {
push(@userstring, qq($r->{"overflow"} $vars_wordlets_pntf{pntf_more_logged_in_users}));
} else {
push(@userstring, qq($r->{"overflow"} $vars_wordlets_pntf{pntf_logged_in_users}));
} # end if
} # end if
ADD AFTER:
if($r->{"hidden"} > 0) {
if($r->{"hidden"} == 1) {
push(@userstring, qq~$r->{'hidden'} $vars_wordlets_pntf{pntf_hidden_one}~);
} else {
push(@userstring, qq~$r->{'hidden'} $vars_wordlets_pntf{pntf_hidden_more}~);
}
}
xxxxxxxxxxxxxxxxxxxxxxxx
x In ubb_lib_pntf.cgi x
xxxxxxxxxxxxxxxxxxxxxxxx
FIND:
$results->{"overflow"} = 0;
$results->{"guests"} = 0;
ADD AFTER:
$results->{"hidden"} = 0;
FIND:
if (($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[0] =~ m/^d{8}$/) && (($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[2] == 0) && ($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[1] == 0)) && (!exists $users{$self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[0]})) {
$users{$self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[0]} = $uniqs{$uniq};
} else {
$results->{"guests"}++;
}
} # end foreach
REPLACE WITH:
if (($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[0] =~ m/^d{8}$/) && (($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[2] == 0) && ($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[1] == 0)) && (!exists $users{$self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[0]})) {
$users{$self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[0]} = $uniqs{$uniq};
} elsif (
($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[0] =~ m/^d{8}$/)
&& (
($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[2] == 1)
&& ($self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[1] == 0)
)
&& (!exists $users{$self->{DATA}->{'uniq'}->{'logins'}->{$uniq}->[0]})
&& ($main::vars_pntf{AllowHidden} ne "no")
) {
$results->{"hidden"}++;
} else {
$results->{"guests"}++;
}
} # end foreach
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
x In vars_wordlets_pntf.cgi x
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
FIND:
q!pntf_guests! => q!guest(s)!,
ADD AFTER:
q!pntf_hidden_one! => q!hidden user!,
q!pntf_hidden_more! => q!hidden users!,
#############
# End Hack #
############# as far as your Mod is concerned, good job I only had to change, in this line: <font face="$vars_style{FontFace}" size="1" color="%%SPANTCOLOR%%"><b>
$title $vars_wordlets_pntf{pntf_simple_title} $r->{'raw_total'} with size="$vars_style{TextSize}" and get rid of . Thanks Jon Felix
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|