Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic BoardViewers V1.2 for YaBB 2.4 (Read 4826 times)
Jeff
God Member
*****
Offline


There are no bugs there
are only features

Posts: 2552
Joined: Jan 14th, 2005
Gender: Male
BoardViewers V1.2 for YaBB 2.4
Apr 18th, 2009 at 4:12pm
Print Post  
Hello YaBBer,   Cheesy

deti and I update the Boardviewer mod for YaBB 2.4

----------------------------------------------------------
Boardviewer V1.1
----------------------------------------------------------


Description:
=============
This mod allows guests/users to see the number of users actually being in each Boards on the BoardIndex.

Screenshot:
=============


Mod Package:
=============
- Boardviewers_V1_2-yabb24.mod
- Boardviewers_V1_2-yabb24-BoardPass-compatible.mod
- Boardviewers_V1_2-yabb24-WiW-compatible.mod**
- Boardviewers_V1_2-yabb24-WiW-BoardPass-compatible.mod**
- Boardviewers_V1_2-German.mod
- Boardviewers_V1_2-German_Du.mod

**WiW = 'Who is Where?' Mod Compatible

Installation:
=============
1) Modify YaBB files using BoardMod or manually.
2) Load modified files to your server in ASCII mode.

YaBB.pl
Admin/ManageTemplates.pl (ASCII)
Admin/ModList.pl (ASCII)
Languages/English/BoardIndex.lng (ASCII)
Sources/BoardIndex.pl (ASCII)
Sources/Subs.pl (ASCII) (If no 'Who is Where' Mod is installed)
Templates/default/BoardIndex.template (ASCII)

Mod History:
=============
Status Boardviewer V12 ( April 18th, 2009 )
- Updated for YaBB 2.4

Download:
=============
- BoardViewers V1.2
« Last Edit: Jan 1st, 2011 at 10:59am by Jeff »  

greetings
Jeff
Back to top
WWW  
IP Logged
 
Simps
Junior Member
**
Offline


Gruellered!!!

Posts: 60
Location: Midlands, UK
Joined: Dec 24th, 2007
Re: BoardViewers V1.2 for YaBB 2.4
Reply #1 - Apr 19th, 2009 at 6:44am
Print Post  
Cheers.
  
Back to top
WWW  
IP Logged
 
BloodyRue
New Member
*
Offline


The Sea Organization will
rot your brain.

Posts: 31
Location: Martha's Vineyard
Joined: Oct 9th, 2011
Gender: Male
Re: BoardViewers V1.2 for YaBB 2.4
Reply #2 - Dec 4th, 2011 at 4:03pm
Print Post  
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:
Code
Select All
$templateblock =~ s/({|<)yabb boardviewers(}|>)/$boardviewers/g; 



add after:
Code
Select All
$templateblock =~ s/({|<)yabb catviewers(}|>)/$catviewers/g; 




Sources/BoardIndex.pl

find:
Code
Select All
my %bvusers = (); 



add after:
Code
Select All
my %cvusers = (); 



find:
Code
Select All
($name, $date1, $last_ip, $last_host, undef, $boardv, undef) = split(/\|/, $_, 7); 



replace with this:
Code
Select All
($name, $date1, $last_ip, $last_host, undef, $boardv, $catv undef) = split(/\|/, $_, 8); 



find this:
Code
Select All
$bvusers{$boardv}++; 



add after:
Code
Select All
$cvusers{$catv}++; 



find another:
Code
Select All
$bvusers{$boardv}++; 



and  add another after:
Code
Select All
$cvusers{$catv}++; 




find:
Code
Select All
$templatecat =~$catname; 



add after:

Code
Select All
my $catviewers;
if ($cvusers{$catid}) { $catviewers = qq~&nbsp;($cvusers{$catid}&nbsp;$boardindex_txt{'bviews'})~;}
$templatecat =~ s/({|<)yabb catviewers(}|>)/$catviewers/g; 



Sources/Subs.pl
find:
Code
Select All
	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:
Code
Select All
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:

Code
Select All
{yabb catlink} 



and replace with this:
Code
Select All
{yabb catlink} {yabb catviewers} 



Perhaps it only works on my board but I think I stripped out almost all my dangling fixtures.
  

   
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint