Hilfe gesucht. tpl tabellenanordnung

Sonic-X2001
hi.

ich hab in nem anderen thread schon nach ner buddybox im headerbereich gesucht, da mir bisher keiner helfen konnte hba ich mich mal selber dran versucht.
klappt auch soweit, außer dass ich die tabellenanordnung und größen nicht hinbekomme... siehe bildanhang

header:

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:
 <table style="width:900" 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="left"><if($style['logoimage']!="")><then><a href="index.php?sid=$session[hash]"><img src="{$style['logoimage']}" border="0" alt="$master_board_name" title="$master_board_name" /></a></then></if></td> 
</tr> 
<tr> 
     <td align="right" style="background-image: url({$style['imagefolder']}/top_bg.gif);"><span class="smallfont"><img src="{$style['imagefolder']}/top_blank.gif" border="0"><img src="{$style['imagefolder']}/top_blank.gif" border="0"> <img src="{$style['imagefolder']}/top_blank.gif" border="0"> <img src="{$style['imagefolder']}/top_blank.gif" border="0"> <a href="team.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_team.gif" border="0" alt="{$lang->items['LANG_GLOBAL_TEAM']}" title="{$lang->items['LANG_GLOBAL_TEAM']}" /></a><a href="werben.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_werben.gif" border="0" alt="Werben" title="Werben" /></a><a href="kontakt.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_kontakt.gif" border="0" alt="Kontakt" title="Kontakt" /></a><a href="impressum.php?sid=$session[hash]"><img src="{$style['imagefolder']}/top_impressum.gif" border="0" alt="Impressum" title="Impressum" /></a><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']}/top_acp.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']}/top_modcp.gif" border="0" alt="{$lang->items['LANG_GLOBAL_MODCP']}" title="{$lang->items['LANG_GLOBAL_MODCP']}" /></a></then></if></span></td>
    </tr> 
   </table>   <table style="width:100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
<td></td>
</tr>
<tr>
<td ></td>
<br/>

<table style="width:100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="sidebar" align="center" valign="top">$sidebar


<if($wbbuserdata['userid']!=0 && $wbbuserdata['can_use_pms']==1 && $wbbuserdata['receivepm']==1)>
<then>


<table width="100%">
<tr>
<td height="5px"></td>
</tr>
</table>


<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width: 100%" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="normalfont"><b>Private Nachrichten</b></span></td>
</tr>	
<tr>
<td class="tableb" align="left">
<span class="smallfont">$wbbuserdata[pmnewcount] neue Nachricht(en)</span><br />
<span class="smallfont">$wbbuserdata[pmunreadcount] ungelesene Nachricht(en)</span><br />
<span class="smallfont">$wbbuserdata[pminboxcount]  Nachricht(en) gesamt</span></td>
</td>
</tr>
</table>


</then>
</if>




<if($wbbuserdata['userid'])>
<then></then>
<else>
<table width="100%">
<tr>
<td height="5px"></td>
</tr>
</table>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width: 100%" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="normalfont"><b>Statistik</b></span></td>
</tr>	
<tr>
<td class="tableb" align="left">
<span class="smallfont">$stats[usercount] registrierte Mitglieder</span><br />
<span class="smallfont">$stats[postcount] Forenbeiträge</span><br />
<span class="smallfont">$stats[threadcount] Forenthemen</span></td>
</td>
</tr>
</table>
</else>
</if>


<if($wbbuserdata['userid']!=0)>
<then>
<table width="100%">
<tr>
<td height="5px"></td>
</tr>
</table>
<table cellpadding="{$style['tableincellpadding']}" cellspacing="{$style['tableincellspacing']}" border="{$style['tableinborder']}" style="width: 100%" class="tableinborder">
<tr>
<td class="tabletitle" align="left"><span class="normalfont"><b>Freunde</b></span></td>
</tr>	
<tr>
<td class="tableb" align="left">
<span class="smallfont">$listbit</span>
</td>
</td>
</tr>
</table>
</then>
</if>




<table width="100%">
<tr>
<td height="5px"></td>
</tr>
</table>



</td>
<td class="mainpage" align="center" valign="top">


tpl (in meinem falle buddybox.tpl) in dem $listbit definiert ist

code:
1:
2:
3:
4:
5:
6:
<tr align="left">
       <td class="tablea"><if($row['online'])>
        <then><img src="{$style['imagefolder']}/user_online.gif" border="0" alt="{$LANG_MEMBERS_USERONLINE}" title="{$LANG_MEMBERS_USERONLINE}" /></then>
        <else><img src="{$style['imagefolder']}/user_offline.gif" border="0" alt="{$LANG_MEMBERS_USERONLINE}" title="{$LANG_MEMBERS_USERONLINE}" /></else>
       </if></td>
       <td class="tableb" style="width:100%"><span class="normalfont"><a href="profile.php?userid=$row[userid]{$SID_ARG_2ND}">$row[username]</a></span></td>


bitte um hilfe, danke großes Grinsen
codingnoob
Du musst afaik oben im Code Zeile 88 ändern.
Von
code:
1:
<td class="tabletitle" align="left"><span class="normalfont"><b>Freunde</b></span></td>
zu
code:
1:
<td class="tabletitle" align="left" colspan="2"><span class="normalfont"><b>Freunde</b></span></td>
Sonic-X2001
sieht schon etwas besser aus, aber noch nicht perfekt
codingnoob
Ahso. Ist schon spät ^^
Häng in dieser buddybox.tpl noch ein </tr> ans Ende und ändere Zeile 90-95 von
code:
1:
2:
3:
4:
5:
6:
7:
<tr>
<td class="tableb" align="left">
<span class="smallfont">$listbit</span>
</td>
</td>
</tr>
in
code:
1:
$listbit

Da du in deinem listbit die Zeile für den jeweiligen Freund dann öffnest und schließt, nehme ich an, dass das so passt.
Dann ist diese kleine Zeile zwischen dem "Freunde" und dem ersten Freund weg. Ich nehme an, das hast du vor. Wenn nicht, dann eben ein
code:
1:
2:
3:
4:
5:
<tr>
<td class="xyz">
Leere
</td>
</tr>
einfügen.
Sonic-X2001
danke, das hat auch soweit geklappt. großes Grinsen

jetzt müßte nur noch dieser halbe rahmen weg, siehe rote pfeile...