[Wbblite] (Wechsel)header wird nicht angezeigt

Daisy Maria
Header wird nicht angezeigt |Wechselheader & Templatehack
Spiegelmagie

Mitglied
Dabei seit: 20.06.2010


Suchfunktion
Boardregeln

USERINFORMATIONEN
» E-Mail an Spiegelmagie senden
» Beiträge von Spiegelmagie suchen
» Nehmen Sie Spiegelmagie in Ihre Freundesliste auf
» Spiegelmagie eine private Nachricht senden


POSTINFORMATIONEN
» Auf diesen Beitrag antworten
» Beitrag zitieren
» Beitrag editieren
» Beitrag melden

» Fenster schliessen

Ich bins mal wieder xD

ausführliche Problembeschreibung:
Also, im Forum wird kein Header mehr angezeigt.

letzte Änderungen oder eingebaute Hacks:
Den letzten Hack den ich eingebaut habe ist der Templatehack von SNap mit der Erweiterung von Windkind (- MEHRERE Styles mit VERSCHIEDENEN wechselnden Headern)

Der Hack von SNap funktioniert soweit, deswegen denke ich esliegt an dem erweiterungscode und hab einfach mal die global.php angehängt


code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
/* BEGINN WECHSELHEADER */
$headerimages_moonlight = array("http://i50.tinypic.com/2wejdcj.png","http://i50.tinypic.com/2wejdcj.png","http://i50.tinypic.com/2wejdcj.png", "http://i50.tinypic.com/2wejdcj.png", "http://i50.tinypic.com/2wejdcj.png"); 
/* Kann beliebig erweitert werden! Einfach jede Adresse in "" setzen und mit , abtrennen! */

srand((double)microtime()*1000000); 
$zufall = rand(0,4); 
/* Die 4 ersetzen mit der Anzahl der Header - 1 (PHP-Arrays zählen das erste Element als 0. Darum auch oben: URL0 */

$imagelogo_moonlight = "<img src="".$headerimages_moonlight[$zufall]."" border="0" />";


$headerimages_blumenfest = array("http://sevilla.square7.ch/ani/blumen/elaine.png", 
"http://sevilla.square7.ch/ani/blumen/gareth.png", 
"http://sevilla.square7.ch/ani/blumen/paar1.png",
"http://sevilla.square7.ch/ani/blumen/paar2.png",
"http://sevilla.square7.ch/ani/blumen/paar3.png",
"http://sevilla.square7.ch/ani/blumen/morgan.png",
"http://sevilla.square7.ch/ani/blumen/morgan2.png",
"http://sevilla.square7.ch/ani/blumen/lancelot.png",
 "http://sevilla.square7.ch/ani/blumen/uther.png");
/* Kann beliebig erweitert werden! Einfach jede Adresse in "" setzen und mit , abtrennen! */

srand((double)microtime()*1000000); 
$zufall_blumenfest = rand(0,8); 
/* Die 5 ersetzen mit der Anzahl der Header - 1 (PHP-Arrays zählen das erste Element als 0. Darum auch oben: URL0 */

$imagelogo_blumenfest = "<img src="".$headerimages_blumenfest[$zufall_blumenfest]."" border="0" />";



$headerimages_camelot = array("http://i47.tinypic.com/311qs74.png", 
"http://i47.tinypic.com/311qs74.png", 
 "http://i47.tinypic.com/311qs74.png");
/* Kann beliebig erweitert werden! Einfach jede Adresse in "" setzen und mit , abtrennen! */

srand((double)microtime()*1000000); 
$zufall_camelot = rand(0,2); 
/* Die 5 ersetzen mit der Anzahl der Header - 1 (PHP-Arrays zählen das erste Element als 0. Darum auch oben: URL0 */

$imagelogo_camelot = "<img src="".$headerimages_camelot[$zufall_camelot]."" border="0" />";
/* ENDE WECHSELHEADER */

eval ("\$header = "".$tpl->get("header")."";");


Dankeschön schonmal <3
Oli
Hi,

ich sehe in dem Code so erstmal keine Fehler. Poste mal bitte die zugehörigen Templates Augenzwinkern .

LG,
Oli
Daisy Maria
Welche wären das?
Oli
Zitat:
Original von Daisy Maria
Welche wären das?

header.tpl
Daisy Maria
code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
<table width="{tableoutwidth}" cellpadding=0 cellspacing=1 align="center" border=0 bgcolor="{tableoutbordercolor}">
 <tr>

  <td bgcolor="{mainbgcolor}" align="center">

<table width="100%">
<tr align="center">
<td width="23%" valign="top">


<br>
<table cellpadding=4 cellspacing=1 border=0 bgcolor="{tableinbordercolor}" width="90%" align="center">
<tr bgcolor="{tabletitlecolor}" id="tabletitle" align="center">
   <td><normalfont color="{fontcolorsecond}"><img src="{imagefolder}/kats/willkommen.png" border="0"></font>
</td>
</tr>
<tr bgcolor="{tablecolora}" id="tablea">
   <td><smallfont><center><font size="2"><b>The beginnig ...</b></font>,<br> 
„When you are king,  what then?"<br>
„I'd do all the things that you told me; I build a golden city, to votet the peace and chariot!“<br>
„What the world leads is justice and passion, still camelot sounds like a dream, deep in a king.“<br>
„Camelot, it's a new beginning!“</center></font>
</td>
</tr>
<tr bgcolor="{tablecatcolor}" id="tablecat" align="center">
   <td><normalfont color="{fontcolorthird}"><img src="{imagefolder}/kats/mirror.png" border="0"></font>
</td>
</tr>
<tr bgcolor="{tablecolora}" id="tablea">
   <td><smallfont>
<center>$useravatar</center></font>
</td>
</tr>
<tr bgcolor="{tablecatcolor}" id="tablecat" align="center">
   <td><normalfont color="{fontcolorthird}"><img src="{imagefolder}/kats/navi.png" border="0"></font>
</td>
</tr>
<tr bgcolor="{tablecolora}" id="tablea">
   <td><smalfont>
<b>x| </b><a href="index.php?sid=$session[hash]"><smallfont>Start</font></a><br>          
<b>x| </b><a href="usercp.php?sid=$session[hash]"><smallfont>Profil</font></a><br>        
<b>x| </b><a href="memberslist.php?sid=$session[hash]"><smallfont>Charaktere</font></a><br>      
<b>x| </b><a href="search.php?sid=$session[hash]"><smallfont>Suche</font></a><br>      
$header_acp 
</font>
</td>
</tr>
<tr bgcolor="{tablecatcolor}" id="tablecat" align="center">
   <td><normalfont color="{fontcolorthird}"><img src="{imagefolder}/kats/plot.png" border="0"></font>
</td>
</tr>
<tr bgcolor="{tablecolora}" id="tablea">
   <td><smallfont><center><object width="220" height="170"><param name="movie" value="http://www.youtube.com/v/zQHFVOdJbXU&hl=de_DE&fs=1&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/zQHFVOdJbXU&hl=de_DE&fs=1&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="220" height="170"></embed></object></center></font>
</td>
</tr>
<tr bgcolor="{tablecatcolor}" id="tablecat" align="center">
   <td><normalfont color="{fontcolorthird}"><img src="{imagefolder}/kats/erg.png" border="0"></font>
</td>
</tr>
<tr bgcolor="{tablecolora}" id="tablea">
   <td><smallfont>
Das Design steht unter dem © von <a href="http://inqui.square7.ch/wbblite/profile.php?userid=23&sid=">Uther Pendragon</a>, dem Admin. Die Graphiken für die Designs stammen von ebenfalls von Uther. Die Bilder hier zu stammen aus diversen Fangallerien.
Die Designs sind für Mozilla Firefox ausgelegt und optimiert, in anderen Foren kann es also zu Abweichungen kommen.
Für den Inhalt und die Sets der Charaktere sind die User - und somit auch das Team - verantwortlich. </font><br>
<br>
<hr>
$style_case
</td>
</tr>
<tr bgcolor="{tablecatcolor}" id="tablecat" align="center">
   <td><normalfont color="{fontcolorthird}"><img src="{imagefolder}/kats/sisters.png" border="0"></font>
</td>
</tr>
<tr bgcolor="{tablecolora}" id="tablea">
   <td><smallfont>
<marquee direction="left" scrollamount="2" scrolldelay="5" " onmouseover="this.stop()" onmouseout="this.start()"  width="230">
<smallfont><a href="http://www.badfairytale.de/"><img src="http://i48.tinypic.com/2ilboyg.jpg" border=0></a> <a href="http://chocolateday.kilu.de/wbblite/"><img src="http://img815.imageshack.us/img815/4650/2ilboyg.jpg" border=0></a> <a href="http://www.petitprincess.kilu.de/wbblite"><img src="http://www.petitprincess.kilu.de/wbblite/button3.jpg" border=0></a></font>
</font>
</marquee></td>
</tr>
</table>




</td>



<td width="100%" valign="top">



  <table width="{tableoutwidth}" cellpadding=0 cellspacing=1 align="center" 
border=0 bgcolor="{tableoutbordercolor}">
<tr>
<td bgcolor="{mainbgcolor}" align="center">

<a href="index.php?sid=$session[hash]"><center>$imagelogo</center></a><br><br>
<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}">
<tr valign="middle">
<td id="tabletitle" bgcolor="{tabletitlecolor}" align="center"><img src="{imagefolder}/kats/zeit.png" border="0"></td>
<td id="tabletitle" bgcolor="{tabletitlecolor}" align="center"><img src="{imagefolder}/kats/news.png" border="0"></td>
<td id="tabletitle" bgcolor="{tabletitlecolor}" align="center"><img src="{imagefolder}/kats/team.png" border="0"></td>
</tr>
<tr valign="middle">
<td id="tableb" bgcolor="{tablecolora}" align="center"><smallfont>Wir schreiben das Jahr <b>489</B><br><img src='http://i46.tinypic.com/296n30m.png'><br>
<br>In Camelot ist der Frühling eingezogen. Die warmen Brisen locken die Menschen aus ihren Häusern und regen sie zur Arbeit an. Überall singen die Vögel und in dieser Idylle kommen die ersten Frühlingsgefühle auf.</b><br><br></td>


<td id="tablea" bgcolor="{tablecolora}" align="center"><smallfont>
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=489&sid="><smallfont>Storyline</font></a><bR>
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=500&sid="><smallfont>Regelwerk</font></a><bR>
<a href="http://inqui.square7.ch/wbblite/thread.php?sid=&postid=7170#post7170"><smallfont>Bilingual?</font></a><bR>
<a href="http://inqui.square7.ch/wbblite/board.php?boardid=123&sid="><smallfont>Support</font></a><p>
<a href="http://inqui.square7.ch/wbblite/board.php?boardid=125&sid="><smallfont>Gesuchtes</font></a><bR>
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=486&sid="><smallfont>Vergebene Avatare</font></a><bR>
<a href="http://inqui.square7.ch/wbblite/memberslist.php?sid="><smallfont>Vergebene Charaktere</font></a><p>
<a href="http://inqui.square7.ch/wbblite/board.php?boardid=148&sid="><smallfont>Partner</font></a><bR>
<br><br></td>


<td id="tableb" bgcolor="{tablecolora}" align="center"><smallfont>Nissy | Sanna | Claudia | Freddy | <b>Daisy</b> 
</font><br><img src='http://inqui.square7.ch/wbblite/images/team5.png'><br>
 <a href="http://inqui.square7.ch/wbblite/profile.php?userid=72&sid="><smallfont>Gareth</font></A> <smallfont>|</font> <a href="http://inqui.square7.ch/wbblite/profile.php?userid=99&sid="><smallfont>Morgan</font></a> <smallfont>|</font>   <a href="http://inqui.square7.ch/wbblite/profile.php?userid=83&sid="><smallfont>Igraine</font></a> <smallfont>|</font> <a href="http://inqui.square7.ch/wbblite/profile.php?userid=90&sid="><smallfont>Arthur</font></a> <smallfont>|</font>  
<a href="http://inqui.square7.ch/wbblite/profile.php?userid=23&sid="><b><smallfont>Uther</font></b></a> 
<p>
<smallfont><b>Wanted - Dead or Alive</font><br>
<marquee direction="left" scrollamount="2" scrolldelay="5" " onmouseover="this.stop()" onmouseout="this.start()"  width="180">
<smallfont><a href="http://inqui.square7.ch/wbblite/thread.php?threadid=559&sid="><img src="http://inqui.square7.ch/wbblite/images/grace.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=626&sid="><img src="http://inqui.square7.ch/wbblite/images/nimue.png" border=0></a>
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=525&sid="><img src="http://inqui.square7.ch/wbblite/images/nixe1.png" border=0></a>
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=578&sid="><img src="http://inqui.square7.ch/wbblite/images/guinevere.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=582&sid="><img src="http://inqui.square7.ch/wbblite/images/merlin.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=525&sid="><img src="http://inqui.square7.ch/wbblite/images/nixe2.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=535&sid="><img src="http://inqui.square7.ch/wbblite/images/leana.png" border=0></a>
 <a href="http://inqui.square7.ch/wbblite/thread.php?threadid=627&sid="><img src="http://inqui.square7.ch/wbblite/images/rose.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=576&sid="><img src="http://inqui.square7.ch/wbblite/images/jack.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=522&sid="><img src="http://inqui.square7.ch/wbblite/images/mab.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=542&sid="><img src="http://inqui.square7.ch/wbblite/images/sizma.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=532&sid="><img src="http://inqui.square7.ch/wbblite/images/morgause.png" border=0></a>
 <a href="http://inqui.square7.ch/wbblite/thread.php?threadid=535&sid="><img src="http://inqui.square7.ch/wbblite/images/tamina.png" border=0></a> 
<a href="http://inqui.square7.ch/wbblite/thread.php?threadid=541&sid="><img src="http://inqui.square7.ch/wbblite/images/jonas.png" border=0></a></font></marquee>



</b></td>
    </tr>
    $userchangebit
   </table>
<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}">
Oli
Das hier ist das Stück Code, das die Headergrafik darstellt:
code:
1:
<a href="index.php?sid=$session[hash]"><center>$imagelogo</center></a><br><br>


Wie du siehst, wird die Variable $imagelogo genutzt, in dieser sich das Bild befinden muss. Der PHP-Code dagegen erzeugt andere Variablen:

php:
1:
$imagelogo_moonlight "<img src="".$headerimages_moonlight[$zufall]."" border="0" />";
php:
1:
$imagelogo_blumenfest "<img src="".$headerimages_blumenfest[$zufall_blumenfest]."" border="0" />";
php:
1:
$imagelogo_camelot "<img src="".$headerimages_camelot[$zufall_camelot]."" border="0" />";


Du müsstest jetzt also entweder im PHP den anzuzeigenden Header in $imagelogo ablegen - oder das Template entsprechend anpassen.
Daisy Maria
Ich habe es inder jeweiligen header.tpl in die PHP angegebene Variable geändert.
Wird aber immer noch nicht angezeigt.
Oli
Hm... Kannst du mal einen Link zum Forum posten? Falls du hier nicht posten möchtest, bitte per PN.. würde gerne mal in den generierten Code schauen, was da so dabei rauskommt, weil so seh ich da erstmal keine Fehler.
Daisy Maria
klick

Hab das im Design Camelot versucht, wie du es gesagt hast. in den andern beiden ist noch nix umgestellt.
Oli
Das hier ist der erzeugte Code - du siehst, es fehlt genau das Headerbild, wo die Variable hätte ersetzt worden sein sollen:

code:
1:
<a href="index.php?sid="><center></center></a><br><br>


EDIT: In dem Template für Camelot steht aber auch $imagelogo und nicht $imagelogo_camelot!
Daisy Maria
Ne?!

in der header.tpl für Camelot steht
code:
1:
 <a href="index.php?sid=$session[hash]"><center>$headerimages_camelot</center></a><br><br> <table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}"> <tr valign="middle">



Kannst du mir bitte sagen welchen Code ich in was ändern muss? Dann kapiere ich es vielleicht. Baby
Oli
Okay. Also:
php:
1:
2:
3:
$headerimages_camelot = array("http://i47.tinypic.com/311qs74.png""http://i47.tinypic.com/311qs74.png", 
 "http://i47.tinypic.com/311qs74.png");
Die Variable $headerimages_camelot ist ein Array (stells dir als Zusammenfassung vor) der Bildadressen.

php:
1:
2:
srand((double)microtime()*1000000); 
$zufall_camelot rand(0,2);
Hier wird eine Zufallszahl von 0 bis 2 ermittelt und in $zufall_camelot gespeichert.

php:
1:
$imagelogo_camelot "<img src="".$headerimages_camelot[$zufall_camelot]."" border="0" />";
Hier ($imagelogo_camelot) wird der HTML-Code für das Bild mit dem Index der Zufallszahl gespeichert. Das ist also die Variable, die im Template stehen muss - schließlich beinhaltet diese den HTML-Code.


Jetzt verständlich? Wenn nicht verrat ichs dir - aber versuchs erstmal, so kriegst du auch gleich ein wenig Verständnis für das, was du eigentlich eingebaut hast Augenzwinkern
Daisy Maria
Nein nicht wirklich -.-

Ich weiß nicht was ich ändern soll / muss.
Oli
Zitat:
Original von Daisy Maria
code:
1:
 <a href="index.php?sid=$session[hash]"><center>$headerimages_camelot</center></a><br><br> <table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}"> <tr valign="middle">


Das müsste $imagelogo_camelot heißen Augenzwinkern

code:
1:
 <a href="index.php?sid=$session[hash]"><center>$imagelogo_camelot</center></a><br><br> <table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}"> <tr valign="middle">


Das müsste dann eigentlich auch schon alles gewesen sein.
Daisy Maria
Ähm gut habs geändert, aber es wird immer noich nicht angezeigt.
Ich geb dir mal die FTP Daten smile
Oli
Zitat:
Original von Daisy Maria
Ähm gut habs geändert, aber es wird immer noich nicht angezeigt.
Ich geb dir mal die FTP Daten smile


Ich verstehs langsam auch nicht mehr.. Aber ja, ich schau mal rein. Nur die FTP-Daten stimmen nicht..