Hallo, Gast! (Registrieren)

Wir wünschen allen Besuchern frohe Ostern!

Letzte Ankündigung: MyBB 1.8.37 veröffentlicht (04.11.23)


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste
Template-Änderung vs. Anzeige im Frontend
#1
Hallo,

ich habe etwas entdeckt, das mich nervös macht, da ich den Grund nicht logisch nachvollziehen kann.

es geht um folgendes:

ich habe für die Darstellung des Profils einen Code in einer Seite bekommen, der einfach das vorhandene Template komplett ersetzt und dann einfach passende CSS-Abfragen sollte.

also hatte ich das "member_profile" template im ACP herausgesucht und den folgenden Code eingetragen, der den originalinhalt ersetzen sollte ..

verbaute Elemente "RPG-Relations und Inplaytracker"

der Code:
Code:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>
</head>
<body>
{$header}
<center>
  <div class="atodwprofwrapper">
    <div class="atodwproftopwrap">
      <div class="atodwproflefttop">
        <div class="atodwprofcharname"><div
style="margin-bottom: -5px;"><div
class="profh">{$formattedname}</div></div></div>
          <div class="atodwprofavatar">{$avatar}</div>
        <div class="atodwprofavabot">
          <div class="profh">
            Registriert am
          </div>
          {$memregdate}
        </div>

        <div class="atodwprofavabot">
         <div class="profh">
            Zuletzt online
          </div>
          {$memlastvisitdate}
        </div>
        <div class="atodwprofavabot">
         <div class="profh">
            Zuletzt online
          </div>
          {$memlastvisitdate}
        </div>

                    <div class="atodwprofavabotshare">
            <div class="profhsmol"> Beiträge</div>
           <a href="search.php?action=finduser&amp;uid={$uid}">{$memprofile['postnum']}</a>
          </div>
        <div class="atodwprofavabotshare">
            <div class="profhsmol">Themen</div>
        <a href="search.php?action=finduserthreads&amp;uid={$uid}">{$memprofile['threadnum']}</a>
          </div>
          <div class="atodwprofavabotshare">
            <div class="profhsmol"> Status</div>
            {$online_status}
            </div>
            <div class="atodwprofavabotshare">
           <div class="profhsmol">PN senden</div>
        {$sendpm}
          </div>
<if $userfields['fidICON'] then> <div
class="atodwproficon">{$userfields['fidICON']}</div><else></if>
      </div>
      <div class="atodwprofwrapleft">
        <div class="atodwproftextfieldswrap">
          <div class="atodwproftextfield">
            <div class="profhsmol">Name</div>
            <div class="atodwproftextscroll">{$userfields['fid1']}</div>
            </div>
          <div class="atodwproftextfield">
            <div class="profhsmol">Kurzbeschreibung</div>
            <div class="atodwproftextscroll">{$userfields['fid4']}</div>
        </div>
        <div class="atodwproflowerwrap">
        <div class="atodwprofsmallinfowrap">
          <div class="atodwprofsmallinfo">
            <div class="profhsmol">
              Rasse</div>
              <if $userfields['fid3'] then> {$userfields['fid3']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
            <div class="profhsmol">
              Status</div>
            <if $userfields['fid5'] then> {$userfields['fid5']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
            <div class="profhsmol">
              Beruf</div>
            <if $userfields['fid6'] then> {$userfields['fid6']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
             <div class="profhsmol">
              Herkunft</div>
            <if $userfields['fid7'] then> {$userfields['fid7']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
              <div class="profhsmol">
              Spieler</div>
            <if $userfields['fid2'] then> {$userfields['fid2']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
              <div class="profhsmol">
              Zeichen</div>
            <if $userfields['fid9'] then> {$userfields['fid9']}<else>Keine Angabe</if>
          </div>
         </div>
        <div class="atodwproftextfield">
          <div class="profhsmol">Fähigkeiten</div>
          <div class="atodwproftextscrollsmol"><if
$userfields['fid8'] then> {$userfields['fid8']}<else>Keine
Angabe</if></div>
          </div>
          <div class="atodwprofsignature"><div class="profh">Signatur</div>
            {$memprofile['signature']}</div>
      </div>
    </div>
  </div>
                        </center></div>
                       {$inplaytracker}  
{$show_relation}<center><div style="width:
860px;">{$add_relation}</div></center>
{$footer}
</body>
</html>

Das entsprechende CSS:
Code:
.atodwprofwrapper{
width: 860px;
  box-sizing: border-box;
  font-family: calibri;
font-size: 13px;
  color:#363735;
text-transform: uppercase;
}
.atodwproftopwrap{
 
}
.atodwproflefttop{
 
  display: inline-block;
  width: 250px;
}
.atodwprofcharname{
 
}
.atodwprofavatar{
 
  border: 2px #363735 solid;
}
.atodwprofavabot{
  height: 50px;
}
.atodwprofavabotsharewrap{
 
}
.atodwprofavabotshare{
  display: inline-block;
  width: 112px;
  height: 50px;
  overflow: hidden;
}
.atodwproficon{
 
  border: 2px #363735 solid;
  width: 220px;
  height: 100px;
}
.atodwprofwrapleft{
 
  display: inline-block;
  width: 580px;
  float: right;
}
.atodwproftextfieldswrap{
 
  display: inline-block;
  width: 100%;
}
.atodwproftextfield{
  display: inline-block;
  width: 272px;
}
.atodwprofsmallinfowrap {
    display: inline-block;
    width: 280px;
    float: left;
    margin-left: 12px;
    margin-right: -13px;
    height: 150px;
    overflow: hidden;
}
.atodwprofsmallinfo{
  display: inline-block;
  width: 48%;
  overflow: hidden;
  min-height: 42px;
}
.atodwproflowerwrap{
 
}
.atodwprofsignature {
    width: 100%;
    margin-top: 2px;
    height: 310px;
}
.atodwproftextscroll{
  height: 160px;
  overflow:auto;
  text-align: justify;
  padding-left: 10px;
  padding-right: 10px;
}
.atodwproftextscrollsmol{
  height: 106px;
  overflow:auto;
  text-align: justify;
  padding-left: 10px;
  padding-right: 10px;
}
.atowdprof18{
 
}

.profh{
text-transform: uppercase;
font-size: 15px;
color: #353535;
border-bottom: 2px #363735 solid;
text-align: center;
margin-right: 15px;
margin-left: 15px;
margin-bottom: 3px;
font-family: 'Fjalla One', sans-serif;
}

.profh::first-letter{
  color:#7494c0;
}
.profhsmol::first-letter{
  color:#7494c0;
}
.profhsmol{
text-transform: uppercase;
font-size: 15px;
color: #353535;
border-bottom: 2px #363735 solid;
text-align: center;
margin-bottom: 3px;
font-family: 'Fjalla One', sans-serif;
}

Das Ding warum ich das melden muss ist folgendes:

ich habe, da die Zeilen
Code:
        <div class="atodwprofavabot">
         <div class="profh">
            Zuletzt online
          </div>
          {$memlastvisitdate}
        </div>
        <div class="atodwprofavabot">
         <div class="profh">
            Zuletzt online
          </div>
          {$memlastvisitdate}
        </div>

doppelt im Template auftauchen und die Darstellung im Profil damit murks aussieht, diese Beiden Zeilen entfernt und mehrfach "cache (Aktualisieren & erneut laden) im Cache-Manager durchgeführt und auch mehrfach "Neu zählen & aktualisieren" und den Browser-cache mehrfach überschreiben lassen trotzdem bleiben die beiden Zeilen stur in der Anzeige im Profil stehen, mal ganz davon abgesehen, das die CSS angepasst werden müsste damit die Darstellung mit der in der Beschreibung für die Anwendung des Codes übereinkommen würde .. verstehe ich nicht, wie eine oder mehrere Zeilen die aus dem Template weg sind, im Frontend angezeigt werden können?

ich habe wie gesagt browsercache und mybb-intern cachemanager mehrfach neu schreiben lassen ... die beiden Zeilen bleiben stur drin als wäre die Verbindung zwischen ACP und Frontend nicht mehr gegeben

kann mir das bitte jemand verraten, warum die Anzeige so stur sein kann?

Link zur Problemseite: https://castleofglass.de/member.php?acti...file&uid=2

das member_profile-template:
Code:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/report.js?ver=1804"></script>
</head>
<body>
{$header}

<center>
  <div class="atodwprofwrapper">
    <div class="atodwproftopwrap">
      <div class="atodwproflefttop">
        <div class="atodwprofcharname"><div style="margin-bottom: -5px;"><div class="profh">{$formattedname}</div></div></div>
          <div class="atodwprofavatar">{$avatar}</div>
        <div class="atodwprofavabot">
          <div class="profh">
            Registriert am
          </div>
          {$memregdate}
        </div>
       
                    <div class="atodwprofavabotshare">
            <div class="profhsmol"> Beiträge</div>
           <a href="search.php?action=finduser&amp;uid={$uid}">{$memprofile['postnum']}</a>
          </div>
        <div class="atodwprofavabotshare">
            <div class="profhsmol">Themen</div>
        <a href="search.php?action=finduserthreads&amp;uid={$uid}">{$memprofile['threadnum']}</a>
          </div>
         
          <div class="atodwprofavabotshare">
            <div class="profhsmol"> Status</div>
            {$online_status}
            </div>
            <div class="atodwprofavabotshare">
            <div class="profhsmol">PN senden</div>
        {$sendpm}
          </div>
       
       
<if $userfields['fidICON'] then> <div class="atodwproficon">{$userfields['fidICON']}</div><else></if>
       
      </div>
     
      <div class="atodwprofwrapleft">
        <div class="atodwproftextfieldswrap">
          <div class="atodwproftextfield">
            <div class="profhsmol">Name</div>
            <div class="atodwproftextscroll">{$userfields['fid1']}</div>
            </div>
          <div class="atodwproftextfield">
            <div class="profhsmol">Kurzbeschreibung</div>
            <div class="atodwproftextscroll">{$userfields['fid4']}</div>
        </div>
       
        <div class="atodwproflowerwrap">
        <div class="atodwprofsmallinfowrap">
          <div class="atodwprofsmallinfo">
            <div class="profhsmol">
              Rasse</div>
              <if $userfields['fid3'] then> {$userfields['fid3']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
            <div class="profhsmol">
              Status</div>
            <if $userfields['fid5'] then> {$userfields['fid5']}<else>Keine Angabe</if>
          </div>
                       
                    <div class="atodwprofsmallinfo">
            <div class="profhsmol">
              Beruf</div>
            <if $userfields['fid6'] then> {$userfields['fid6']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
             <div class="profhsmol">
              Herkunft</div>
            <if $userfields['fid7'] then> {$userfields['fid7']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
              <div class="profhsmol">
              Spieler</div>
            <if $userfields['fid2'] then> {$userfields['fid2']}<else>Keine Angabe</if>
          </div>
                    <div class="atodwprofsmallinfo">
              <div class="profhsmol">
              Zeichen</div>
            <if $userfields['fid9'] then> {$userfields['fid9']}<else>Keine Angabe</if>
          </div>
         </div>
        <div class="atodwproftextfield">
          <div class="profhsmol">Fähigkeiten</div>
          <div class="atodwproftextscrollsmol"><if $userfields['fid8'] then> {$userfields['fid8']}<else>Keine Angabe</if></div>
          </div>
       
          <div class="atodwprofsignature"><div class="profh">Signatur</div>
            {$memprofile['signature']}</div>
      </div>
    </div>
  </div>
                        </center></div>

                        {$inplaytracker}   {$show_relation}<center><div style="width: 860px;">{$add_relation}</div></center>

{$footer}
</body>
</html>

ich habe die Seite auf 2 getrennten Server liegen und beide geben das gleiche Ergebnis, egal wie oft ich die cache-manager-Funktion nutze den Browsecache leere, es bleibt so stehen

was ich aber noch nicht versucht habe, muss ich dazu sagen, die "cookies" ggf. mit platt zu machen, die sind erhalten geblieben, wenn es daran liegen sollte, hab ich zumindestens wieder was dazu gelernt, aber normal ist das, denke ich, so nicht?
Zitieren
#2
Hast du einmal versucht das Template aufs Original zurückzusetzen und deine Änderung erneut einzupflegen?
[Bild: banner.png]

Bitte die Foren-Regeln beachten und im Profil die verwendete MyBB-Version angeben.
Zitieren
#3
das hatte ich noch nicht versucht, ich hatte aber ohnehin eine Neusinstallation vor extra wegen diesem Fehler um ihn genauer zu betrachten, da in der oben angegebenen Seite bereits zuviel verbaut ist, um festzustellen woher der Knoten evtl. kommt

ich werde das mal mit den originalen Testen, das Ergebnis wie immer melden und wenn das dann erforderlich wird, mache ich das mit der neu Installation ausdrücklich für diesen Fehler

Danke schon mal für den Tipp

sooo es ist wieder original, jetzt muss ich die Änderungen für Inplaytracker und Relations von Hand einfummeln, aber das wird schon Wink

ok die Änderung hat gezogen, wenn ich ihm dann das Template ändere mit 1 Zeile begreift er wieder das es 1 sein muss Wink einzig die Inplayszenen hab ich offenbar verloren, die werden nun nicht mehr angezeigt, aber da werd ich den Plugin-Entwickler fragen warum das so ist

Vilen Dank für die Hilfe, das Thema hier ist erledigt
Zitieren


Möglicherweise verwandte Themen…
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Frontend Fehleranzeige UweJ 2 1.407 30.09.2023, 13:13
Letzter Beitrag: UweJ
  Fehlermeldung im Frontend - sydication.php KarinB 51 3.809 24.09.2023, 12:22
Letzter Beitrag: KarinB
  Fehlermeldung - Frontend - showthread.php KarinB 13 4.118 10.09.2023, 14:07
Letzter Beitrag: StefanT
  Fehlermeldungen im Frontend KarinB 10 2.969 15.06.2023, 14:15
Letzter Beitrag: KarinB
  Noch 5 Fehlermeldungen im Frontend KarinB 11 1.739 06.06.2023, 18:50
Letzter Beitrag: bv64