Seite 1 von 3
Team Comparisation v1.6
Verfasst: Do 26. Dez 2024, 11:20
von opsius
I have added the latest version of team comparisation to my LMO. It list all previous meetings, but the total doesn't show correct.
https://sportogspill.online/lmo2/addon/ ... /natemkv25. As you can see the total is six meetings, but the total stats show only four meetings.
Re: Team Comparisation v1.6
Verfasst: Do 26. Dez 2024, 12:25
von DwB
If you could give us the creates .stats-file or post the content.
Otherwise please upload all the .l98-files you use.
What I can see right now is that the games with equal results aren't evaluated.
Trying to create a similiar situation in the meantime to see, if I can find the code this causes
Re: Team Comparisation v1.6
Verfasst: Do 26. Dez 2024, 13:47
von opsius
Re: Team Comparisation v1.6
Verfasst: Do 26. Dez 2024, 14:10
von Henshingly
I just took over your leagues and transferred them to the appropriate folders.
But with the team comparison addon version 1.6 on the example page, everything is displayed to me.
Look here
and click on Sweden vs Germany
The natemkv25.stats looks like this
Code: Alles auswählen
[config]
modus=1
template=standard
tordummy=_
www=lmo8.bplaced.net
bild=logo.png
spieltageminus=
spieltageplus=
pdf_verlinken=0
notizen_verlinken=0
spielberichte_verlinken=0
pdf_symbol=pdf.svg
note_symbol=note.svg
gamereport_symbol=gamereport.svg
[Viewer Ligen]
liga1=natemkv25.l98
liga2=archiv/natkv/natemkv22.l98
liga3=archiv/natkv/natemkv17.l98
liga4=archiv/natkv/natemkv13.l98
liga5=archiv/natkv/natemkv09.l98
liga6=archiv/natkv/natemkv05.l98
liga7=archiv/natkv/natemkv01.l98
liga8=archiv/natkv/natemkv97.l98
liga9=archiv/natkv/natemkv94.l98
liga10=archiv/natkv/natemkv92.l98
liga11=archiv/natkv/natemkv90.l98
liga12=archiv/natkv/natemkv88.l98
liga13=archiv/natkv/natemkv87.l98
liga14=archiv/natkv/natemkv84.l98
Re: Team Comparisation v1.6
Verfasst: Do 26. Dez 2024, 15:59
von opsius
It seems to work right with the standard layout, but not with the one I use (hp), and not with the BigSymbol. Maybe there is something wrong in my layoutfile?
Code: Alles auswählen
<style type="text/css">
body {
background: #c0c0c0;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
scrollbar-face-color: #CED9F9;
scrollbar-highlight-color: #66CCFF;
scrollbar-3dlight-color: #969696;
scrollbar-darkshadow-color: #000099;
scrollbar-shadow-color: #0000CC;
scrollbar-arrow-color: #ffffff;
scrollbar-track-color: #DDDDDD;
}
p {
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 10px;
}
h1 {
background: #CED9F9;
color: black;
font-size: 11px;
}
a:hover {
font-style: none;
bgcolor: blue;
color: white;
}
a:link {
text-decoration: none;
color: blue;
}
a:visited {
text-decoration: none;
color: blue;
}
a span.popup, a:link span.popup{
display: none;
}
a:hover span.popup{
display: inline;
font-size:100%;
position: absolute;
background: white repeat;
width: 10em;
margin: 1.5em 0 0 -4em;
padding: 0.2em;
z-index: 999;
white-space:normal;
text-decoration:none !important;
text-align:center;
border: 1px solid #ffffff;
}
table {
background-color: #3399ff;
color: black;
}
td, th {
font-size: 12px;
vertical-align: middle;
}
tr {
border: 1px solid #ffffff;
}
.vTitle {
font-size: 12px;
line-height: 18px;
color: white;
font-weight: bold;
background-color: #0033cc;
white-space:nowrap;
}
.vZeilenklasse {
background-color:#33ccff;
}
.Zeilenklasse {
background-color:#ffffff;
}
.vFooter {
font-size:9px;
}
</style>
<table width="100%" >
<tr>
<td class="vTitle" align="center" colspan="5">
<p><b><font size=3><!--Text1--></font></b></p>
</td>
</tr>
<tr>
<th align="right"><!--Teama--></th><th><!--IconHeimBig--></th><th><!--Text2--></th><th><!--IconGastBig--></th><th align="left"><!--Teamb--></th>
</tr>
<tr>
<td colspan="5">
<!--Statistik-->
<br>
<table cellspacing="2" align="center">
<tr class="vTitle">
<td align="center" colspan="3">Störste seier</td>
</tr>
<tr class="vZeilenklasse">
<td ><b>Lag</b></td>
<td align="center"><b> Störste hjemmeseier </b></td>
<td align="center"><b> Störste borteseier</b></td>
</tr>
<tr class="Zeilenklasse">
<td><!--Teama--></td>
<td align="center"><!--HeimsiegA--></td>
<td align="center"><!--GastsiegA--></td>
</tr>
<tr class="Zeilenklasse">
<td><!--Teamb--></td>
<td align="center"><!--HeimsiegB--></td>
<td align="center"><!--GastsiegB--></td>
</tr>
</table>
<br>
</table><br>
<!--Statistik-->
<br>
<!--Tabelle-->
<br>
<!--Spiela-->
<br>
<!--Spielb-->
</td>
</tr>
<br>
</table>
<!-- BEGIN Liga -->
<table width=80% align="center">
<tr>
<td class="vTitle" align="center" colspan=7><!--Liganame--></td>
</tr>
<tr>
<td>
<table width=100% cellspacing="0" cellpadding="2">
<!-- BEGIN Inhalt -->
<tr class="Zeilenklasse">
<td><!--Datum--> <!--Uhr--></td>
<td align="right"><!--Heim--></td>
<td align="center"> - </td>
<td align="left"><!--Gast--></td>
<td><!--Tore--></td>
<td><!--Spielbericht--></td>
<td><!--Notiz--></td>
</tr>
<!-- END Inhalt -->
</table>
</td>
</tr>
</table>
<!-- END Liga -->
</td>
</tr>
<br>
</table>
<table width="100%">
<tr>
<td width="40%" class="vFooter"><!--Pdf--></td>
<td width="60%" class="vFooter"><br><!--VERSION--><br><!--VERSIONa--><br><!--SPRACHE--><br><!--Dauer--></td>
</tr>
</table>
Re: Team Comparisation v1.6
Verfasst: Do 26. Dez 2024, 16:07
von opsius
Took a new check now with the standard, komplett as well, but it still didn't show all matches in the totalt stats.
Re: Team Comparisation v1.6
Verfasst: Do 26. Dez 2024, 19:55
von Henshingly
Pkease take these files for the files in the addon/stats folder
Re: Team Comparisation v1.6
Verfasst: Do 26. Dez 2024, 20:39
von Henshingly
opsius hat geschrieben: Do 26. Dez 2024, 15:59
It seems to work right with the standard layout, but not with the one I use (hp), and not with the BigSymbol. Maybe there is something wrong in my layoutfile?
how big are your big icons? pixel x pixel
Re: Team Comparisation v1.6
Verfasst: Fr 27. Dez 2024, 04:12
von opsius
For øyeblikket 20x20, men har også mulighet til å laste opp i størrelse 70x70
Re: Team Comparisation v1.6
Verfasst: Fr 27. Dez 2024, 12:06
von DwB
It might sound curious, burt could you change an equal match between Sweden against Germany from 0:0 to an equal result with goals on each side and habe a look at the "new" statistics?
Also please provide the stats_view.php, if not changed to the one within the zip-file from, Henshingly.
Otherwise we might need the credentials for the server to debug the script files you have stored to get closer to the source of the problem. Send them only via provate message, don't post them on the board!
Re: Team Comparisation v1.6
Verfasst: Fr 27. Dez 2024, 16:04
von opsius
When I changed the result to 1-1 it was added in the total stats. Changed back again to 0-0, and it was not in the total.
Re: Team Comparisation v1.6
Verfasst: Sa 28. Dez 2024, 09:00
von Henshingly
I recently installed another LMO from the
download page.
Then I copied the addon from
this page over it and
replaced the existing files.
Then I inserted a template called hp.tpl.php in the template/stats folder with the code from
your post from Dec 26, 2024, 3:59 p.m.
Then I transferred the league files from your
post from Dec 26, 2024, 1:47 p.m. to the appropriate folders.
Screenshot 2024-12-28 084725.png
Screenshot 2024-12-28 084810.png
Then a .stats file is created.
Screenshot 2024-12-28 at 08-34-22 LMO Admin.png
Then I couldn't find any errors. All 6 matches between Germany and Sweden are displayed.
You can see it here
You can test it yourself is standard access:
Name: admin
Password: lmo
I can't tell you where your mistake is.
Re: Team Comparisation v1.6
Verfasst: Sa 28. Dez 2024, 11:52
von DwB
opsius hat geschrieben: Fr 27. Dez 2024, 16:04
When I changed the result to 1-1 it was added in the total stats. Changed back again to 0-0, and it was not in the total.
So it occurs the used variable $tordummy causes the problem.
Rows 270-274 / 346-350 in the stats_view.php
Code: Alles auswählen
if ($yPartie->hToreString() == $yPartie->gToreString()) {
if ($yPartie->hToreString() != $tordummy) {
$aunentschiedenh = $aunentschiedenh + 1;
}
}
could you give us your used stats_view.php? In the .stats you already delivered this variable is initialized wirh "_", which is correct. But then it should add an euqal game with the result 0:0 as well. With equal <> 0:0 it works, it suggests that your $tordummy is looking for 0 (as well as _).
Also please try once with modus=2 in the .stats-file, which gives you a PDF and have a look in the games with 0:0 are counted or not.
Re: Team Comparisation v1.6
Verfasst: Sa 28. Dez 2024, 15:13
von opsius
Tried modus 2, but it didn't show the draw. I saw I had some different files named statsview.php, so I attached them all in this zip-file:
https://1drv.ms/u/c/f6aff739a556d53a/EW ... A?e=KtL5vN
Re: Team Comparisation v1.6
Verfasst: Sa 28. Dez 2024, 16:38
von DwB
Source could not be found. You can alsoo add a file as an attachement here