Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic "Advanced forum log analysis" mod (Read 436 times)
..:X.T.C:..
Forum Administrator
*****
Offline


I love YaBB Forum!

Posts: 656
Location: Spittal
Joined: Dec 22nd, 2002
Gender: Male
"Advanced forum log analysis" mod
Jun 5th, 2003 at 7:42am
Print Post  
Hi @All

Note: I Post this here, since it gives no more support from the author of this "mod".

I have Changed the "Advanced forum log analysis" mod for my Board (Y1G 1.3.1) ...... mod runs; -)

But two sups are not logged in the |View forum access log|:

  • Top Threads
  • Top Profiles


Can someone say ... why this two "Sups" not go?  What is changed from "Y1G 1.1" to "Y1G 1.3.1" ?

Code
Select All
# start top threads
$yymain .= qq~
    </font></td>
  </tr><tr>
    <td bgcolor="$color{'catbg'}" class="catbg">
    <font size=2><center><B>$showclicktxt{'2'}</B>
    </td>
  </tr><tr>
    <td bgcolor="$color{'windowbg2'}" class="windowbg2"><font size="2">
~;


for($i = 0; $i < @newmsglist; $i++) {
	if($newmsglist[$i]->[0] =~ /\S+/) {
		if( index($newmsglist[$i]->[0], "board=") > -1 && index($newmsglist[$i]->[0], "num=") > -1 && index($newmsglist[$i]->[0], "title=") == -1 && index($newmsglist[$i]->[0], "start=") == -1)
		   {
			 my @tmpmsgname2 = split(/num=/,$newmsglist[$i]->[0]);
			 my $tmpmsgname = $tmpmsgname2[1];

		  if(-e("$datadir/$tmpmsgname.txt")) {
		fopen(FILE, "$datadir/$tmpmsgname.txt");
		@boardsettings = <FILE>;
		fclose(FILE);
		    $tmpmsgname = substr($boardsettings[0],0,index($boardsettings[0], "|"));

				 }
			 $tmpmsglink = substr($newmsglist[$i]->[0],index($newmsglist[$i]->[0], "?"),length($newmsglist[$i]->[0]));
			 $yymain .= "<a href=\"$cgiurl$tmpmsglink\" target=\"_blank\">$tmpmsgname</a>  (<i>$newmsglist[$i]->[1]</i>)<BR>\n"; }
#			 $yymain .= "<a href=\"$cgiurl$tmpmsglink\" target=\"_blank\">$tmpmsgname</a>  (<i><b>$newmsglist[1]</b></i>)<BR>\n"; }
						     }
}

# Top Profiles

$yymain .= qq~
    </font></td>
  </tr><tr>
    <td bgcolor="$color{'catbg'}" class="catbg">
    <font size=2><center><B>$showclicktxt{'5'}</B>
    </td>
  </tr><tr>
    <td bgcolor="$color{'windowbg2'}" class="windowbg2"><font size="2">
~;

for($i = 0; $i < @newproflist; $i++) {
	if($newproflist[$i]->[0] =~ /\S+/) {
		if( index($newproflist[$i]->[0], "action=viewprofile") > -1 && index($newproflist[$i]->[0], "board=") == -1)
		   {
			 my @tmpprofname2 = split(/username=/,$newproflist[$i]->[0]);

			 $tmpprofname = $tmpprofname2[1];
			 $tmpproflink = substr($newproflist[$i]->[0],index($newproflist[$i]->[0], "?"),length($newproflist[$i]->[0]));

		   if(-e("$memberdir/$tmpprofname.dat")) {
			  fopen(FILE, "$memberdir/$tmpprofname.dat");
			  @clicksettings = <FILE>;
		    fclose(FILE);
		     $clicksettings[0] =~ s/[\n\r]//g;
			 $yymain .= "<a href=\"$cgiurl$tmpproflink\" target=\"_blank\">$clicksettings[1]</a>  (<i>$newproflist[$i]->[1]</i>)<BR>\n"; }
			   }

		   }
} 



The complete ShowClicks.pl is in the Attach

mfg XTC
  

ShowClicks_XTC.txt ( 24 KB | Downloads )

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