enni
Hallo
Wenn ich als Admin in mein Forum gehe wird die eine Menü Box richtig angezeigt, bei einem Normalen User aber nicht, kann mir jemand sagen warum und es vielleicht verbessern?
Auf dem ersten Bild sieht man wie es beim Admin aussieht und beim zweiten wie beim User.
Eigentlich soll man die Box als Gast nicht sehen
(die Box Specials) , aber im Moment tut man das, kann das auch noch jemand ändern?
Biggi
Da sind eine Menge Fehler drin.
Ich hoffe, ich habe alle erwischt.
Mach dir mal die Mühe, die beiden Dateien zu vergleichen und blätter mal ab und an durch diese Seite:
de.selfhtml.org
So sollte es funktionieren:
| 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:
152:
153:
|
<table style="width:{$style['tableoutwidth']}" cellpadding="{$style['tableoutcellpadding']}" cellspacing="{$style['tableoutcellspacing']}" align="center" border="{$style['tableoutborder']}" class="tableoutborder">
<tr>
<td class="logobackground" align="left" colspan="2"/>
<a href="index.php?sid=$session[hash]"><img src="{$style['logoimage']}" alt="$master_board_name" title="$master_board_name" border="{$style['tableoutborder']}" width="{$style['tableoutwidth']}"/></a>
</td>
</tr>
<tr>
<td class="mainpage" valign="top">
<!--haupttabelle | start//-->
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:{$style['tableintwidth']}" />
<tr>
<!--linketabelle | start//-->
<td style="width:155px" valign="top">
<!--menuebox | start//-->
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:155px" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="smallfont"><b>Menü</b></span></td>
</tr>
<tr>
<td class="tableb" align="left">
<span class="smallfont"><b>
» <a href="index.php">Forum</a><br />
» <a href="jgs_portal.php?sid=$session[hash]">Portal</a><br />
</b></span>
<hr size="1" class="threadline" />
<span class="smallfont"><b>
» <a href="memberslist.php">Mitglieder</a><br />
» <a href="team.php">Team</a><br />
» <a href="calendar.php">Kalender</a><br />
» <a href="misc.php?action=faq">F.A.Q.</a><br />
» <a href="jgs_portal_sponsor.php?sponsorviewart=">Sponsoren und <br />
» Partner</a><br />
</b></span>
<hr size="1" class="threadline" />
<if($wbbuserdata['userid'])><then>
<span class="smallfont"><b>
» <a href="usercp.php{$SID_ARG_1ST}">Profil</a><br />
» <a href="pms.php{$SID_ARG_1ST}">Private Nachrichten</a><br />
</b></span>
<hr size="1" class="threadline" />
<span class="smallfont"><b>
» <a href="logout.php?u=$wbbuserdata[userid]{$SID_ARG_2ND}">Abmelden</a>
</b></span>
</then>
<else>
<span class="smallfont"><b>
» <a href="register.php{$SID_ARG_1ST}"><font color=red>Registrieren</font></a>
</b></span>
</else></if>
<if($wbbuserdata['a_acp_or_mcp'])><then>
<span class="smallfont"><b>
<br />
» <a href="acp/index.php" target="_blank">Admin CP</a>
</b></span>
</then></if>
</td>
</tr>
</table><br />
<!--menuebox end//-->
<!--specials| start//-->
<if($wbbuserdata['userid'])><then>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:155px" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="smallfont"><b>Specials</b></span></td>
</tr>
<tr>
<td class="tableb" align="left">
<span class="smallfont"><b>
» <a href="guthaben.php?sid=">Guthaben</a><br />
» <a href="wbbshop.php?sid=">Shop</a><br />
» <a href="smilieshop.php?sid=">Smilie-Shop</a>
</b></span>
<hr size="1" class="threadline" />
<span class="smallfont"><b>
» <a href="game_menue.php?sid=">Games</a><br />
» <a href="halloffame.php?sid=">Hall of Fame</a>
</b></span>
<hr size="1" class="threadline" />
<span class="smallfont"><b>
» <a href="jgs_galerie.php?sid=">Bildergalerie</a><br />
» <a href="jgs_db.php?sid=">Datenbank</a>
</b></span>
<hr size="1" class="threadline" />
<span class="smallfont"><b>
» <a href="abwesendlist.php?sid=">abwesende User</a><br />
» <a href="jgs_portal_statistik.php?sid=">Statistik</a><br />
</b></span>
</td>
</tr>
</table><br />
</then></if>
<!--specials end//-->
<!--partnerbox| start//-->
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:155px" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="smallfont"><b>Toplisten</b></span></td>
</tr>
<tr>
<td class="tableb" align="left">
<span class="smallfont">
<!-- NintendoSites.com -->
<a href="http://www.nintendosites.com/index.php?do=votes&id=64"><img border="0" src="http://www.nintendosites.com/tracker.php?do=in&id=64" alt="NintendoSites.com" /></a>
<!-- /NintendoSites.com -->
<br />
<br />
<a href="http://www.wii-fans.de/toplist/"><img src="http://www.wii-fans.de/toplist/button.php?u=NintendoFan" alt="Wii Fanseite - Toplist" border="0" /></a>
<br />
<br />
<a href="http://www.wiiloaded.com/topsites/"><img src="http://www.wiiloaded.com/topsites/button.php?u=DsSpieler" alt="Wii Top Sites - by www.WiiLoaded.com" border="0" /></a>
</span>
</td>
</tr>
</table><br />
<!--partnerbox end//-->
<!--searchbox | start//-->
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width:155px" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="smallfont"><b>Suche</b></span></td>
</tr>
<tr>
<td class="tablea" align="left" valign="top">
<form action="search.php" method="post">
<input type="hidden" name="searchuser" value="" />
<input type="hidden" name="name_exactly" value="1" />
<input type="hidden" name="onlystarter" value="0" />
<input type="hidden" name="sid" value="$session[hash]" />
<input type="hidden" name="topiconly" value="0" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="beforeafter" value="after" />
<input type="hidden" name="searchdate" value="0" />
<input type="hidden" name="sortorder" value="desc" />
<input type="hidden" name="sortby" value="lastpost" />
<input type="hidden" name="send" value="send" />
<input type="hidden" name="boardids[]" value="*" />
<span class="smallfont">
Suche<br />
<input class="input" type="text" name="searchstring" value="" style="width:115px" /><br />
<input src="{$style['imagefolder']}/go.gif" type="image" />
</span>
</form>
</td>
</tr>
</table><br />
<!--searchbox | end//-->
</td>
<!--linketabelle | end//-->
</tr>
</table>
</td>
<td class="mainpage" align="center" valign="top" width="{$style['tableoutwidth']}"> |
|
Biggi
Gern geschehen.
Ich hoffe, du schaust dir an, was ich verändert habe, um den Code zu verstehen.