YourWBB


yourWBB » WoltLab Burning Board Generation 2 * » Alles von und für das WBB 2.3.x » [WBB 2.3.x] Allg. Fragen und Probleme » <else> befehl » Hallo Gast [Anmelden|Registrieren]
Letzter Beitrag | Erster ungelesener Beitrag 1.459 Views | | Thema zu Favoriten hinzufügen

Neues Thema erstellen Antwort erstellen

Dieses Thema wurde als unerledigt markiert. Thread unerledigt

Zum Ende der Seite springen <else> befehl
Autor
Beitrag « Vorheriges Thema | Nächstes Thema »
TSA TSA ist männlich
Mitglied


images/avatars/avatar-3232.gif

Dabei seit: 06.10.05
Beiträge: 9
Herkunft: Dortmund
Forenversion: wbb 2.3.3

 <else> befehl Antworten Zitieren Editieren Melden       UP

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
28.12.05 18:42 TSA ist offline E-Mail Finden Als Freund hinzufügen
KleenMicha KleenMicha ist männlich
Webentwickler


images/avatars/avatar-5745.jpg

Dabei seit: 16.01.04
Beiträge: 2.592
Fähigkeiten: WBB3 Fortgeschritten; WBB2 Profi

 RE: <else> befehl Antworten Zitieren Editieren Melden       UP

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>


__________________
Gruß Micha
28.12.05 18:44 KleenMicha ist offline E-Mail WWW Finden Als Freund hinzufügen Füge KleenMicha in deine Kontaktliste ein MSN Passport-Profil von KleenMicha anzeigen
TSA TSA ist männlich
Mitglied


images/avatars/avatar-3232.gif

Dabei seit: 06.10.05
Beiträge: 9
Herkunft: Dortmund
Forenversion: wbb 2.3.3

Themenstarter Thema begonnen von TSA
Antworten Zitieren Editieren Melden       UP

nein geht nicht es kommt diesmal kein fehler sondern nicht nur die gäste auch die user sehen das

Dieser Beitrag wurde 1 mal editiert, zum letzten Mal von TSA: 28.12.05 18:52.

28.12.05 18:48 TSA ist offline E-Mail Finden Als Freund hinzufügen
KleenMicha KleenMicha ist männlich
Webentwickler


images/avatars/avatar-5745.jpg

Dabei seit: 16.01.04
Beiträge: 2.592
Fähigkeiten: WBB3 Fortgeschritten; WBB2 Profi

Antworten Zitieren Editieren Melden       UP

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.

__________________
Gruß Micha
28.12.05 18:57 KleenMicha ist offline E-Mail WWW Finden Als Freund hinzufügen Füge KleenMicha in deine Kontaktliste ein MSN Passport-Profil von KleenMicha anzeigen
TSA TSA ist männlich
Mitglied


images/avatars/avatar-3232.gif

Dabei seit: 06.10.05
Beiträge: 9
Herkunft: Dortmund
Forenversion: wbb 2.3.3

Themenstarter Thema begonnen von TSA
Antworten Zitieren Editieren Melden       UP

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>
















28.12.05 18:58 TSA ist offline E-Mail Finden Als Freund hinzufügen
Ghostmaster
Das Böse

images/avatars/avatar-4371.gif

Dabei seit: 17.01.04
Beiträge: 6.440
Fähigkeiten: WBB2 Profi
Forenversion: 2.3

Antworten Zitieren Editieren Melden       UP

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
28.12.05 19:07 Ghostmaster ist offline Finden Als Freund hinzufügen
TSA TSA ist männlich
Mitglied


images/avatars/avatar-3232.gif

Dabei seit: 06.10.05
Beiträge: 9
Herkunft: Dortmund
Forenversion: wbb 2.3.3

Themenstarter Thema begonnen von TSA
Antworten Zitieren Editieren Melden       UP

danke klappt super!!!! großes Grinsen
28.12.05 19:09 TSA ist offline E-Mail Finden Als Freund hinzufügen
KleenMicha KleenMicha ist männlich
Webentwickler


images/avatars/avatar-5745.jpg

Dabei seit: 16.01.04
Beiträge: 2.592
Fähigkeiten: WBB3 Fortgeschritten; WBB2 Profi

Antworten Zitieren Editieren Melden       UP

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.

__________________
Gruß Micha
28.12.05 19:09 KleenMicha ist offline E-Mail WWW Finden Als Freund hinzufügen Füge KleenMicha in deine Kontaktliste ein MSN Passport-Profil von KleenMicha anzeigen
Baumstruktur | Brettstruktur
Gehe zu:

Neues Thema erstellen Antwort erstellen

yourWBB » WoltLab Burning Board Generation 2 * » Alles von und für das WBB 2.3.x » [WBB 2.3.x] Allg. Fragen und Probleme » <else> befehl