<else> befehl

TSA
Dies ist eine vorgefertigte Schablone.
Bitte fülle soviel aus, wie dir nur Möglich ist, du kannst auch gerne noch mehr Angaben machen.


Problembeschreibung:

wenn ich im header das eingeben kommt dieser fehler über mein forum wo der header ist
<else>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="register.php?sid=$session[hash]">Registrieren</a>
</else>


Fehlermeldung:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/web28/html/bwd/global.php(211) : eval()'d code on line 22

Link zum Forum oder Screenshot:

http://www.white-dragon.web-4-free.com/bwd/index.php

ich habe zurückgesetzt

Was wurde zuletzt geändert oder eingebaut?

header.tpl

ein else befehl
KleenMicha
Der else Befehl muss innerhalb einer Schleife also:
code:
1:
<if($blub)><then>nun passiert dass</then><else>ach ne doch lieber nicht</else></if>
TSA
nein geht nicht es kommt diesmal kein fehler sondern nicht nur die gäste auch die user sehen das
KleenMicha
Dass war ja auch nurn BSp von mir Augenzwinkern .

Erklär mal vbitte wer da was sehen bzw nicht sehen sollen, oder häng gleich das Template mal hier an.
TSA
ich möchte das die gäste registrieren und login sehen können.


hier header.tpl

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:
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td style="background-image: url({$style['imagefolder']}/border_links.gif);width: 5px;"></td>
<td align="center">
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
 <tr>
  <td class="mainpage" align="center">
   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 





<td class="logobackground" align="center" colspan="17"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>

<tr>
<td align="left" background-repeat: repeat-x;">
<span class="smallfont"><br />
<center><b>




 <if($wbbuserdata['userid'])><then>
 &nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="usercp.php?sid=$session[hash]">User CP</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="logout.php?sid=$session[hash]">Abmelden</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="pms.php?sid=$session[hash]">Priv. Nachrichten</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="usercp.php?action=favorites&amp;sid=$session[hash]">Favoriten</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="profile.php?userid={$wbbuserdata['userid']}&amp;sid=$session[hash]">Eigenes Profil</a>
</then></if>
<if($blub)><then>nun passiert dass</then><else>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="register.php?sid=$session[hash]">Registrieren</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="login.php?sid=$session[hash]">Einloggen</a><br/>
</else></if>



<tr>
<td align="center" style="background-image: url({$style['imagefolder']}/menu_shadow.gif); background-repeat: repeat-x;">
<span class="smallfont">
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="index.php?sid=">Startseite</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="search.php?sid=">Suche</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="thread.php?threadid=2&sid=&amp;sid=b96362be535cf9d5aa92d8738c1bba19">Board Regeln</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="misc.php?action=faq&amp;sid=b96362be535cf9d5aa92d8738c1bba19">F.A.Q</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="team.php?sid=">Team</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="memberslist.php?sid=">Mitglieder</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="calendar.php?sid=">Kalender</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="hmportal.php?sid=">Startseite</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="calendar.php?sid=">Kalender</a> | 
</td>
</tr>
<tr>
<td align="right" 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) || ($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then>
<tr>
</tr>
<tr>
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then>&nbsp;&nbsp;<b>&raquo;</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>&nbsp;&nbsp;<b>&raquo;</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>

</span> 
</b></center>
</td>
</tr>
 </tr>
       </table>



<BR>
<BR>
<BR>
















Ghostmaster
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:
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td style="background-image: url({$style['imagefolder']}/border_links.gif);width: 5px;"></td>
<td align="center">
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
 <tr>
  <td class="mainpage" align="center">
   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 





<td class="logobackground" align="center" colspan="17"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>

<tr>
<td align="left" background-repeat: repeat-x;">
<span class="smallfont"><br />
<center><b>




 <if($wbbuserdata['userid'])><then>
 &nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="usercp.php?sid=$session[hash]">User CP</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="logout.php?sid=$session[hash]">Abmelden</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="pms.php?sid=$session[hash]">Priv. Nachrichten</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="usercp.php?action=favorites&amp;sid=$session[hash]">Favoriten</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="profile.php?userid={$wbbuserdata['userid']}&amp;sid=$session[hash]">Eigenes Profil</a>
</then><else>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="register.php?sid=$session[hash]">Registrieren</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="login.php?sid=$session[hash]">Einloggen</a><br/>
</else></if>




<tr>
<td align="center" style="background-image: url({$style['imagefolder']}/menu_shadow.gif); background-repeat: repeat-x;">
<span class="smallfont">
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="index.php?sid=">Startseite</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="search.php?sid=">Suche</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="thread.php?threadid=2&sid=&amp;sid=b96362be535cf9d5aa92d8738c1bba19">Board Regeln</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="misc.php?action=faq&amp;sid=b96362be535cf9d5aa92d8738c1bba19">F.A.Q</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="team.php?sid=">Team</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="memberslist.php?sid=">Mitglieder</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="calendar.php?sid=">Kalender</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="hmportal.php?sid=">Startseite</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="calendar.php?sid=">Kalender</a> | 
</td>
</tr>
<tr>
<td align="right" 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) || ($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then>
<tr>
</tr>
<tr>
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then>&nbsp;&nbsp;<b>&raquo;</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>&nbsp;&nbsp;<b>&raquo;</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>

</span> 
</b></center>
</td>
</tr>
 </tr>
       </table>



<BR>
<BR>
<BR>


Bitte schön smile
TSA
danke klappt super!!!! großes Grinsen
KleenMicha
Da war wohl wer schneller, dennoch würde ich es so nehmen:

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:
<table cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td style="background-image: url({$style['imagefolder']}/border_links.gif);width: 5px;"></td>
<td align="center">
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
 <tr>
  <td class="mainpage" align="center">
   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr> 





<td class="logobackground" align="center" colspan="17"><if($style['logoimage']!="")><then><a href="index.php{$SID_ARG_1ST}"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td>

<tr>
<td align="left" background-repeat: repeat-x;">
<span class="smallfont"><br />
<center><b>




<if($wbbuserdata['userid'])><then>
 &nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="usercp.php{$SID_ARG_1ST}">User CP</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="logout.php{$SID_ARG_1ST}">Abmelden</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="pms.php{$SID_ARG_1ST}">Priv. Nachrichten</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="usercp.php?action=favorites{$SID_ARG_2ND}">Favoriten</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="profile.php?userid={$wbbuserdata['userid']}{$SID_ARG_2ND}">Eigenes Profil</a>
</then><else>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="register.php{$SID_ARG_1ST}">Registrieren</a>
&nbsp;&nbsp;<b>&raquo;</b> <a style="text-decoration: none" href="login.php{$SID_ARG_1ST}">Einloggen</a><br/>
</else></if>



<tr>
<td align="center" style="background-image: url({$style['imagefolder']}/menu_shadow.gif); background-repeat: repeat-x;">
<span class="smallfont">
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="index.php{$SID_ARG_1ST}">Startseite</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="search.php{$SID_ARG_1ST}">Suche</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="thread.php?threadid=2{$SID_ARG_2ND}>Board Regeln</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="misc.php?action=faq{$SID_ARG_2ND}">F.A.Q</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="team.php{$SID_ARG_1ST}">Team</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="memberslist.php{$SID_ARG_1ST}">Mitglieder</a> |
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="calendar.php{$SID_ARG_1ST}">Kalender</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="hmportal.php{$SID_ARG_1ST}">Startseite</a> | 
&nbsp;&nbsp;<b>&raquo;</b> | <a style="text-decoration: none" href="calendar.php{$SID_ARG_1ST}">Kalender</a> | 
</td>
</tr>
<tr>
<td align="right" 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) || ($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==0)><then>
<tr>
</tr>
<tr>
<if($wbbuserdata['a_can_use_acp']==1 && $wbbuserdata['a_acp_or_mcp']==1)><then>&nbsp;&nbsp;<b>&raquo;</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>&nbsp;&nbsp;<b>&raquo;</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>

</span> 
</b></center>
</td>
</tr>
 </tr>
       </table>
<br /><nr /><br />


Außerdem gibts: $session[hash] seit dem wbb2.2.x nichtmehr dies wurde nun durch: {$SID_ARG_1ST} bzw {$SID_ARG_2ND} ersetzt.