mammo
Mitglied
Dabei seit: 17.01.04
Beiträge: 24
Herkunft: Hamburg Forenversion: WBB 2.3.2
|
|
Hallo zusammen,
ich hoffe es kann mir jemand helfen. Ich möchte den (Text)Link des Admin Control Panels (AdminCP) mit einer Grafik, sozusagen mit einem Button, hinterlegen. Leider kommt nachdem ich den Link zur Grafik in das Header-Template eingebaut habe eine Fehlermeldung.
Habe schon alles probiert. Kann mir jemand sagen wo der Fehler liegt.
Hier das Head-Template:
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:
|
<if($offline==1)><then> <span class= "highlight" ><span class="bigfont"> <b>Das Forum ist im Wartungsmodus</b></span><br>
$offlinemessage</span></then></if>
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="logobackground" align="center" colspan="2">
<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="background-image:url({$style['logoimage']}); background-repeat:no-repeat; background-position:left;height:200px;" align="center">
</tr>
</table>
</td>
</tr>
<tr>
<td class="mainpage" valign="top">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
</tr>
<tr>
<td align="left" background-repeat: repeat-x;">
<span class="smallfont">
<img src="{$style['imagefolder']}/subnavi.gif" border="0" width="119" height="19" align="middle" alt="" title="" />
<a href="portal.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/portal.gif" border="0" alt="User Portal" title="User Portal" /></a><br />
<a href="index.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/forum.gif" border="0" alt="Forum" title="Forum" /></a><br />
<a href="memberslist.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/mitglieder.gif" border="0" alt="Mitglieder" title="Mitglieder" /></a><br />
<a href="team.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/team.gif" border="0" alt="Team" title="Team" /></a><br />
<a href="calendar.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/kalender.gif" border="0" alt="Kalender" title="Kalender" /></a><br />
<a href="search.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/suche.gif" border="0" alt="Suche" title="Suche" /></a><br />
<a href="misc.php?action=faq&sid=$session[hash]{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/faq.gif" border="0" alt="FAQ" title="FAQ" /></a><br />
</td>
</tr>
<tr>
<td>
<img src="{$style['imagefolder']}/menue_<if($wbbuserdata[userid])><then>userbox</then><else>gaestebox</else></if>.gif" border="0" width="119" height="19" align="middle" alt="" title="" />
</td>
</tr>
<tr>
<td align="left" style="background-image: url({$style['imagefolder']}/menu_shadow.gif); background-repeat: repeat-x;">
<span class="smallfont">
<if($wbbuserdata[userid])><then>
<a href="usercp.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/usercp.gif" border="0" alt="User CP" title="User CP" /></a><br />
<a href="pms.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/postfach.gif" border="0" alt="Postfach" title="Postfach" /></a><br />
<a href="usercp.php{$SID_ARG_1ST}?action=favorites&sid=$session[hash]"><img src="{$style['imagefolder']}/favoriten.gif" border="0" alt="Favoriten" title="Favoriten" /></a><br />
<a href="profile.php{$SID_ARG_1ST}?userid={$wbbuserdata['userid']}&sid=$session[hash]"><img src="{$style['imagefolder']}/profile.gif" border="0" alt="Profil" title="Profil" /></a><br />
<a href="logout.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/abmelden.gif" border="0" alt="Abmelden" title="Abmelden" /></a><br />
</then>
<else><br />
<a href="register.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/registrieren.gif" border="0" alt="Registrierung" title="Registrierung" /></a><br />
<a href="login.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/einloggen.gif" border="0" alt="Einloggen" title="Einloggen" /></a><br />
<b>»</b> <a style="text-decoration: none" href="register.php{$SID_ARG_1ST}">Registrieren</a><br />
<b>»</b> <a style="text-decoration: none" href="login.php{$SID_ARG_1ST}">Einloggen</a><br />
</else></if><br /></span>
</td>
</tr>
<tr>
<td>
<img src="{$style['imagefolder']}/menue_spezielles.gif" border="0" width="119" height="19" align="middle" alt="" title="" />
</td>
</tr>
<tr>
<td align="left" style="background-image: url({$style['imagefolder']}/menu_shadow.gif); background-repeat: repeat-x;">
<span class="smallfont">
<a href="wiw.php{$SID_ARG_1ST}"><img src="{$style['imagefolder']}/weristwo.gif" border="0" alt="Wer ist wo" title="Wer ist wo" /></a><br />
<br/ ><br>
</td>
</tr>
<tr>
</tr>
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1) || ($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then>
<tr>
<td>
<img src="{$style['imagefolder']}/menue_adminpanels.gif" border="0" width="119" height="19" align="middle" alt="" title="" />
</td>
</tr>
<tr>
<td align="left" style="background-image: url({$style['imagefolder']}/menu_shadow.gif); background-repeat: repeat-x;">
<span class="smallfont">
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then> <b>»</b> <a style="text-decoration: none" href="acp/index.php" target="_blank"><span class="prefix">Admin CP</span></a></then></if><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then> <b>»</b> <a style="text-decoration: none" href="acp/index.php" target="_blank"><span class="prefix">Mod CP</span></a></then></if><br/><br>
</td>
</tr>
</then></if>
<tr>
<td>
<img src="{$style['imagefolder']}/menue_partner.gif" border="0" width="119" height="19" align="middle" alt="" title="" />
</td>
</tr>
<tr>
<td align="center" style="background-image: url({$style['imagefolder']}/menu_shadow.gif); background-repeat: repeat-x;">
<span class="smallfont"><br /><br />
</span>
</td>
</tr>
</table>
</td>
<td class="mainpage" align="center" valign="top" style="width:100%" >
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td style="background-image: url({$style['imagefolder']}/content_shadow.gif); background-repeat: repeat-x; height:25px;"> </td></tr></table> |
|
Und an dieser Stelle muss ich die Grafiken mit den Links verbinden:
code: |
1:
|
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then> <b>»</b> <a style="text-decoration: none" href="acp/index.php" target="_blank"><span class="prefix">Admin CP</span></a></then></if><if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then> <b>»</b> <a style="text-decoration: none" href="acp/index.php" target="_blank"><span class="prefix">Mod CP</span></a></then></if><br/><br> |
|
Das habe ich so gemacht:
code: |
1:
2:
|
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/admincp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_ACP']}" title="{$lang->items['LANG_GLOBAL_ACP']}" /></a></then></if>
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then><a href="acp/index.php" target="_blank"><img src="{$style['imagefolder']}/modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" /></a></then></if> |
|
Dann kommt aber diese Fehlermeldung:
code: |
1:
|
Parse error: syntax error, unexpected '%', expecting ']' in /www/htdocs/w0065a88/wbb2/global.php(213) : eval()'d code on line 9 |
|
Weiß jemand Rat ?
Danke mammo
|
|
23.01.07 11:54 |
E-Mail
Finden
Als Freund hinzufügen
|
|
| |
|
mammo
Mitglied
Dabei seit: 17.01.04
Beiträge: 24
Herkunft: Hamburg Forenversion: WBB 2.3.2
Themenstarter
|
|
Zitat: |
Original von Bräke
Poste mal das Template, was den Fehler verursacht komplett. |
Hi Bräke,
also das ist das komplette Template ... ist das "header-Template".
Sonst noch Infos ?
Gruß mammo
|
|
23.01.07 23:46 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Nero.X
Mitglied
Dabei seit: 09.11.06
Beiträge: 57
Forenversion: 2.3; Lite 1.0
|
|
innem Forum von einem Freund war mal so ein ähnlicher Fehler, wenn nicht sogar der gleiche.
Bei ihm wurden irgendwie alle "[" oder "]" aus irgendeinem Grund mit einem "%XY" ersetzt. Statt XY war halt noch irgendwas, überprüf das mal in dem Teamplate
|
|
23.01.07 18:26 |
E-Mail
Finden
Als Freund hinzufügen
|
|
Bräke
Mitglied
Dabei seit: 01.01.04
Beiträge: 8.189
|
|
Also ich habs jetzt 3 mal in einem Testboard mit dem Template versucht und keine Fehlermeldung erhalten.
|
|
26.01.07 16:08 |
Finden
Als Freund hinzufügen
|
|
|
mammo
Mitglied
Dabei seit: 17.01.04
Beiträge: 24
Herkunft: Hamburg Forenversion: WBB 2.3.2
Themenstarter
|
|
Danke Bräke .... ich habe aber selbst keine Ahnung woran es liegt.
|
|
27.01.07 10:07 |
E-Mail
Finden
Als Freund hinzufügen
|
|
|