Team Comparisation v1.6

In diesem Forum werden Probleme oder Fragen zu Addons des LMO's behandelt.
Benutzeravatar
opsius
LMO-Neuling
LMO-Neuling
Beiträge: 20
Registriert: So 8. Dez 2024, 23:11

Team Comparisation v1.6

Beitrag 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.
Zuletzt geändert von Henshingly am Do 26. Dez 2024, 14:09, insgesamt 3-mal geändert.
Benutzeravatar
DwB
Fortgeschrittener LMO-Benutzer
Fortgeschrittener LMO-Benutzer
Beiträge: 348
Registriert: Mi 9. Sep 2020, 13:53

Re: Team Comparisation v1.6

Beitrag 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
Zuletzt geändert von Henshingly am Do 26. Dez 2024, 12:51, insgesamt 1-mal geändert.
Benutzeravatar
opsius
LMO-Neuling
LMO-Neuling
Beiträge: 20
Registriert: So 8. Dez 2024, 23:11

Re: Team Comparisation v1.6

Beitrag von opsius »

Lastet opp *.stat fil, samt alle ligafilene. https://1drv.ms/u/c/f6aff739a556d53a/Ed ... g?e=ZlswFz
Benutzeravatar
Henshingly
Administrator
Administrator
Beiträge: 600
Registriert: Sa 1. Sep 2018, 14:21
Wohnort: Dortmund

Re: Team Comparisation v1.6

Beitrag 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
Kein Support über PN oder eMail.
Support gibt es nur im Forum.

Test LMO mit Standardzugang
(ist immer die aktuelle Github Version)

Test für zukünftige Eintragung nach Github
(ist die Testumgebung bevor es ein Commit gibt)
Benutzeravatar
opsius
LMO-Neuling
LMO-Neuling
Beiträge: 20
Registriert: So 8. Dez 2024, 23:11

Re: Team Comparisation v1.6

Beitrag 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&ouml;rste seier</td>
        </tr>
        <tr class="vZeilenklasse">
          <td ><b>Lag</b></td>
          <td align="center"><b>&nbsp;St&ouml;rste hjemmeseier&nbsp;</b></td>
          <td align="center"><b>&nbsp;St&ouml;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">&nbsp;&nbsp;-&nbsp;&nbsp;</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>
Benutzeravatar
opsius
LMO-Neuling
LMO-Neuling
Beiträge: 20
Registriert: So 8. Dez 2024, 23:11

Re: Team Comparisation v1.6

Beitrag 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.
Benutzeravatar
Henshingly
Administrator
Administrator
Beiträge: 600
Registriert: Sa 1. Sep 2018, 14:21
Wohnort: Dortmund

Re: Team Comparisation v1.6

Beitrag von Henshingly »

Pkease take these files for the files in the addon/stats folder
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Henshingly am Do 26. Dez 2024, 19:55, insgesamt 1-mal geändert.
Kein Support über PN oder eMail.
Support gibt es nur im Forum.

Test LMO mit Standardzugang
(ist immer die aktuelle Github Version)

Test für zukünftige Eintragung nach Github
(ist die Testumgebung bevor es ein Commit gibt)
Benutzeravatar
Henshingly
Administrator
Administrator
Beiträge: 600
Registriert: Sa 1. Sep 2018, 14:21
Wohnort: Dortmund

Re: Team Comparisation v1.6

Beitrag 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?

Code: Alles auswählen

<style type="text/css">
........
how big are your big icons? pixel x pixel
Kein Support über PN oder eMail.
Support gibt es nur im Forum.

Test LMO mit Standardzugang
(ist immer die aktuelle Github Version)

Test für zukünftige Eintragung nach Github
(ist die Testumgebung bevor es ein Commit gibt)
Benutzeravatar
opsius
LMO-Neuling
LMO-Neuling
Beiträge: 20
Registriert: So 8. Dez 2024, 23:11

Re: Team Comparisation v1.6

Beitrag von opsius »

For øyeblikket 20x20, men har også mulighet til å laste opp i størrelse 70x70
Benutzeravatar
DwB
Fortgeschrittener LMO-Benutzer
Fortgeschrittener LMO-Benutzer
Beiträge: 348
Registriert: Mi 9. Sep 2020, 13:53

Re: Team Comparisation v1.6

Beitrag 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!
Zuletzt geändert von DwB am Fr 27. Dez 2024, 12:08, insgesamt 1-mal geändert.
Benutzeravatar
opsius
LMO-Neuling
LMO-Neuling
Beiträge: 20
Registriert: So 8. Dez 2024, 23:11

Re: Team Comparisation v1.6

Beitrag 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.
Benutzeravatar
Henshingly
Administrator
Administrator
Beiträge: 600
Registriert: Sa 1. Sep 2018, 14:21
Wohnort: Dortmund

Re: Team Comparisation v1.6

Beitrag 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.
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
Zuletzt geändert von Henshingly am Sa 28. Dez 2024, 10:04, insgesamt 1-mal geändert.
Kein Support über PN oder eMail.
Support gibt es nur im Forum.

Test LMO mit Standardzugang
(ist immer die aktuelle Github Version)

Test für zukünftige Eintragung nach Github
(ist die Testumgebung bevor es ein Commit gibt)
Benutzeravatar
DwB
Fortgeschrittener LMO-Benutzer
Fortgeschrittener LMO-Benutzer
Beiträge: 348
Registriert: Mi 9. Sep 2020, 13:53

Re: Team Comparisation v1.6

Beitrag 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.
Benutzeravatar
opsius
LMO-Neuling
LMO-Neuling
Beiträge: 20
Registriert: So 8. Dez 2024, 23:11

Re: Team Comparisation v1.6

Beitrag 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
Benutzeravatar
DwB
Fortgeschrittener LMO-Benutzer
Fortgeschrittener LMO-Benutzer
Beiträge: 348
Registriert: Mi 9. Sep 2020, 13:53

Re: Team Comparisation v1.6

Beitrag von DwB »

Source could not be found. You can alsoo add a file as an attachement here
Antworten