Added some coding (well basically copy pasted some original with separate variables) in order to make separate catagorie viewers start listing in the catagory sections... did I word that right? oh well, been bugging me that people just sit in the catagories and don't show up as viewers, here is a mishmash of what I did:
Backup your files first, I am new to yabb coding and 6 years out of coding C++ and UNIX shell script like I used to do.
I am mostly picking this up as I am adding mods.
admin/ManageTemplates.pl
find:
$templateblock =~ s/({|<)yabb boardviewers(}|>)/$boardviewers/g;
add after:
$templateblock =~ s/({|<)yabb catviewers(}|>)/$catviewers/g;
Sources/BoardIndex.pl
find:
my %bvusers = ();
add after:
my %cvusers = ();
find:
($name, $date1, $last_ip, $last_host, undef, $boardv, undef) = split(/\|/, $_, 7);
replace with this:
($name, $date1, $last_ip, $last_host, undef, $boardv, $catv undef) = split(/\|/, $_, 8);
find this:
$bvusers{$boardv}++;
add after:
$cvusers{$catv}++;
find another:
$bvusers{$boardv}++;
and add another after:
$cvusers{$catv}++;
find:
$templatecat =~$catname;
add after:
my $catviewers;
if ($cvusers{$catid}) { $catviewers = qq~ ($cvusers{$catid} $boardindex_txt{'bviews'})~;}
$templatecat =~ s/({|<)yabb catviewers(}|>)/$catviewers/g;
Sources/Subs.pl
find:
print LOG rd|" . ((!$action && $INFO{'num'} && $currentboard) ? "display" : ((!$action && $ENV{'SCRIPT_FILENAME'} =~ /\/AdminIndex\.(pl|cgi)/) ? "admincenter" : $action)) . "|$INFO{'username'}|$curnum\n", @new_log);
replace with this:
print LOG rd|$currentcat|" . ((!$action && $INFO{'num'} && $currentboard) ? "display" : ((!$action && $ENV{'SCRIPT_FILENAME'} =~ /\/AdminIndex\.(pl|cgi)/) ? "admincenter" : $action)) . "|$INFO{'username'}|$curnum\n", @new_log);
I have monkied with my BoardIndex.template but see if you can find this spot in yours:
{yabb catlink}
and replace with this:
{yabb catlink} {yabb catviewers}
Perhaps it only works on my board but I think I stripped out almost all my dangling fixtures.