hab da mal ne Frage und hoffe jemand kann mir helfen.
Ich hab eine LASTFORUM Box wo ich eine veränderung dran vornehmen will, hab schon alles probiert was mir eingefallen ist, aber irgendwie komm ich nicht auf die lösung.
Also folgendes Problem:
So sieht die Box derzeit aus.
Aussehen soll sie aber so:
Ich möchte das Info wann und wer geschrieben hat rechts gleichmäßig unereinander steht.
habs schon probiert mit text align right aber damit verschiebts alles.
Hier mal der code zur Box, wär cool wenn da einer nen tip hat ich komm nicht weiter.
<style type="text/css">
.lastforum {
background-color: #;
font-size: 13px;
width: 339px;
margin: 0;
padding: 0;
}
.lastforumtitel {
margin: 0;
padding: 0px;
color: #4E9AE0;
font-family: "Arial Black";
font-size: 14px;
}
.lastforuminfo {
margin: 0px;
padding: 0px;
color: #848684;
font-family: "Arial";
font-size: 9px;
}
.lastforumname {
color: #4E9AE0;
font-family: "Arial";
font-size: 10px;
}
</style>
<?php
# Copyright by Manuel
# Support www.ilch.de
defined ('main') or die ( 'no direct access' );
### Einstellungen
$maxtitel = 17; # maximale Titellänge in Zeichen
$anzahl = 7; # Ausgaben Menge
###
$query = "SELECT a.id, a.name, a.rep, c.erst as last, c.id as pid, c.time
FROM prefix_topics a
LEFT JOIN prefix_forums b ON b.id = a.fid
LEFT JOIN prefix_posts c ON c.id = a.last_post_id
LEFT JOIN prefix_groupusers vg ON vg.uid = ".$_SESSION['authid']." AND vg.gid = b.view
LEFT JOIN prefix_groupusers rg ON rg.uid = ".$_SESSION['authid']." AND rg.gid = b.reply
LEFT JOIN prefix_groupusers sg ON sg.uid = ".$_SESSION['authid']." AND sg.gid = b.start
WHERE ((".$_SESSION['authright']." <= b.view AND b.view < 1)
OR (".$_SESSION['authright']." <= b.reply AND b.reply < 1)
OR (".$_SESSION['authright']." <= b.start AND b.start < 1)
OR vg.fid IS NOT NULL
OR rg.fid IS NOT NULL
OR sg.fid IS NOT NULL
OR -9 >= ".$_SESSION['authright'].")
ORDER BY c.time DESC
LIMIT 0,".$anzahl;
echo '<table class="lastforum">';
$resultID = db_query($query);
$x=1;
while ($row = db_fetch_assoc($resultID)) {
$row['date'] = date('d.m.Y',$row['time']);
$row['page'] = ceil ( ($row['rep']+1) / $allgAr['Fpanz'] );
if ($x<$anzahl) {$x++; $zelle='border-bottom: 1px solid #505050;text-align: left';} ELSE {$zelle='text-align: left';}
echo '<tr><td style="'.$zelle.'"><a href="?forum-showposts-'.$row['id'].'-p'.$row['page'].'#'.$row['pid'].'" title="'.$row['name'].'"><span class="lastforumtitel">'.((strlen($row['name'])<$maxtitel) ? $row['name'] : substr($row['name'],0,($maxtitel-3)).'...').'</span></a> <span class="lastforuminfo">Last Post von:</span> <span class="lastforumname">'.$row['last'].'</span> <span class="lastforuminfo">'.$row['date'].'</span></td></tr>';
}
echo '</table>';
?>
betroffene Homepage: nochimbau.de


hmmm.... irgendwie raff ichs nicht....
