Spaltenbreite "Letzter Beitrag"

kickzen81
Hallo!

Ich würde gerne die Spaltenbreite bei "Letzter Beitrag" ein bißchen vergrössern, da die Themen (je nach Länge) in 2 oder sogar 3 Zeilen untereinander angezeigt werden.

Wie mache ich das?

Danke
MI B
Hi

Du öffnest folgende Dateien:

/wbblite/templates/index.tpl
/wbblite/templates/index_boardbit1.tpl
/wbblite/templates/index_boardbit2.tpl
/wbblite/templates/index_boardbit3.tpl

index.tpl

<table cellpadding=4 cellspacing=1 border=0 width="{tableinwidth}" bgcolor="{tableinbordercolor}">
<tr bgcolor="{tabletitlecolor}" id="tabletitle">
<td><smallfont>&nbsp;</font></td>
<td width="60%"><smallfont color="{fontcolorsecond}"><b>Foren</b></font></td>
<td align="center"><smallfont color="{fontcolorsecond}"><b>Beitr&auml;ge</b></font></td>
<td align="center"><smallfont color="{fontcolorsecond}"><b>Themen</b></font></td>
<td align="center" nowrap width="20%"><smallfont color="{fontcolorsecond}"><b>Letzter Beitrag</b></font></td>
<td width="20%" align="center"><smallfont color="{fontcolorsecond}"><b>Moderatoren</b></font></td>
</tr>
$boardbit
</table>


index_boardbit1.tpl

<tr>
<td id="tablea" bgcolor="{tablecolora}" width="60%" colspan=2><table cellpadding=0 cellspacing=0>
<tr>
<td><img src="{imagefolder}/$onoff.gif" border=0>&nbsp;&nbsp;</td>
<td><normalfont><a href="board.php?boardid=$boards[boardid]&sid=$session[hash]"><b>$boards[tit
le]</b></a></font><smallfont>$boards[description]$subboards</font></td>
</tr>
</table></td>
<td id="tableb" bgcolor="{tablecolorb}" align="center" nowrap><normalfont>$boards[postcount]</font></td>
<td id="tablea" bgcolor="{tablecolora}" align="center" nowrap><normalfont>$boards[threadcount]</font></td>
<td id="tableb" bgcolor="{tablecolorb}" nowrap width="20%">$lastpost</td>
<td id="tablea" bgcolor="{tablecolora}" width="20%" align="center"><smallfont>$moderators</font></td>
</tr>


index_boardbit2.tpl

<tr>
<td id="tableb" bgcolor="{tablecolorb}" align="center"><img src="{imagefolder}/$onoff.gif" border=0></td>
<td id="tablea" bgcolor="{tablecolora}" width="60%"><normalfont><a href="board.php?boardid=$boards[boardid]&sid=$session[hash]"><b>$boards[tit
le]</b></a></font><smallfont>$boards[description]$subboards</font></td>
<td id="tableb" bgcolor="{tablecolorb}" align="center" nowrap><normalfont>$boards[postcount]</font></td>
<td id="tablea" bgcolor="{tablecolora}" align="center" nowrap><normalfont>$boards[threadcount]</font></td>
<td id="tableb" bgcolor="{tablecolorb}" nowrap width="20%">$lastpost</td>
<td id="tablea" bgcolor="{tablecolora}" width="20%" align="center"><smallfont>$moderators</font></td>
</tr>


index_boardbit3.tpl

<tr>
<td id="tableb" bgcolor="{tablecolorb}" align="center"><normalfont>&nbsp;</font></td>
<td id="tablea" bgcolor="{tablecolora}" width="60%"><table cellpadding=0 cellspacing=0>
<tr>
<td><img src="{imagefolder}/$onoff.gif" border=0>&nbsp;&nbsp;</td>
<td><normalfont><a href="board.php?boardid=$boards[boardid]&sid=$session[hash]"><b>$boards[tit
le]</b></a></font><smallfont>$boards[description]$subboards</font></td>
</tr>
</table></td>
<td id="tableb" bgcolor="{tablecolorb}" align="center" nowrap><normalfont>$boards[postcount]</font></td>
<td id="tablea" bgcolor="{tablecolora}" align="center" nowrap><normalfont>$boards[threadcount]</font></td>
<td id="tableb" bgcolor="{tablecolorb}" nowrap width="20%">$lastpost</td>
<td id="tablea" bgcolor="{tablecolora}" width="20%" align="center"><smallfont>$moderators</font></td>
</tr>


So sollte das funktionieren, musst eben ein bisschen mit den größen der Tabellen spielen bis es passt Augenzwinkern Hab jetzt im Queltext den ich gepostet habe das schon vergrößert.
kickzen81
Vielen Dank!

Kann ich .tpl-Dateien mit Wordpad bzw. Frontpage speichern???
Bekomme einen Hinweis, dass nur als .txt abgespeichert werden kann...?
MI B
hm wenn er da n Fehler ausspuckt, speichers als txt und nenn das txt dann nachträglich in tpl um smile

Und nicht vergessen, bevor du was änderst immer die original Dateien irgendwo speichern falls was schief geht Augenzwinkern
kickzen81
Ok, Danke! Hab grad die Dateien geändert auf den Server geladen..., Startseite zeigt aber jetzt einen Fehler an!!!

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting ']' in /homepages/5/d125160206/htdocs/xxx/wbblite/acp/lib/functions.php(227) : eval()'d code on line 4
MI B
hm du musst die $boards[title] in eine Zeile schreiben hat das Forum irgendwie n Zeilenumbruch gemacht. Dann sollte es funzen.
kickzen81
Oh super, funktioniert!

Mit welchem Wert muss ich jetzt "spielen", wenn ich nur "Letzter Beitrag" vergrössern möchte???
MI B
Mit den drei Prozentwerten die in jeder Datei sind. Die Prozentwerte dürfen sich aber nicht von Datei zu Datei unterscheiden. Also wenn du einen änderst musst du ihn in allen Dateien ändern die ich oben gepostet habe !!! Und natürlich müssen alle drei Prozentwerte in einer Datei immer 100 ergeben Belehr
kickzen81
Vielen Dank, du hast mir wirklich super weitergeholfen.... ;-)
Mr. Eyeoptix
Danke, hat mir auch weitergeholfen. fröhlich
RockZau
Ich hab das erst benannte problem und bei mir löst es sich nciht wenn ich $boards[title] eingebe. Dazu muss ich sagen, das ich nicht weiß, wo ich es eingeben muss. Schnelle Hilfe bitte.
janolaf
Zitat:
Original von RockZau
Ich hab das erst benannte problem und bei mir löst es sich nciht wenn ich $boards[title] eingebe. Dazu muss ich sagen, das ich nicht weiß, wo ich es eingeben muss. Schnelle Hilfe bitte.


und was das mit dem hier zu tun --> Spaltenbreite "Letzter Beitrag" ?

was genau willst du uns mitteilen ?