Er is quasi mein Nachfolger
@MVN: Du machst es mir aber auch net leicht
Lies dir meinen ersten Post nochmal genau durch, und dann besuche deine Webite. Deinem scharfen Verstand wird sicher nicht entgehehn, dass du immer noch mit genau den gleichen Problemen zu kämpfen hast wie ich.
Das Problem ist, dass die oberste Kategorie "Forum" bzw. deren Farbe scheinbar NICHT durch die Style.css beeinflusst werden kann. Wie gesagt, ich kann nur noch mal auf meinen ersten Post verweisen, da hab ichs eigentlich ziemlich genau beschrieben...aber auf Wunsch mach ich sogar noch nen Screenshot..
So, und das mit dem Latest Post...nun das scheint generell nicht mit dem Forenmod von Pixelbash zu funzen. Errinner mich aber, dass hier mal jemand was gebastelt hat, was einen dann zum wirklich neuesten Post hat springen lässt...und zwar nicht nur über "search-augt" sondern auch direkt im Forum, wenn man auf einen Beitrag klickt.
so...zum Schluss zum Dastiac:
Bitteschön:
show_topic.php:
<?php
# Copyright by: Manuel Staechele
# Support: www.ilch.de
defined ('main') or die ( 'no direct access' );
# check ob ein fehler aufgetreten ist.
check_forum_failure($forum_failure);
$title = $allgAr['title'].' :: Forum :: '.aktForumCats($aktForumRow['kat'],'title').' :: '.$aktForumRow['name'];
$hmenu = $extented_forum_menu.'<a class="smalfont" href="index.php?forum" style="color:#000000">Forum</a><b> » </b>'.aktForumCats($aktForumRow['kat']).'<b> » </b>'.$aktForumRow['name'].$extented_forum_menu_sufix;
$design = new design ( $title , $hmenu, 1);
$design->header();
$limit = $allgAr['Ftanz']; // Limit
$page = ( $menu->getA(3) == 'p' ? $menu->getE(3) : 1 );
$MPL = db_make_sites ($page , "WHERE fid = '$fid'" , $limit , '?forum-showtopics-'.$fid , 'topics' );
$anfang = ($page - 1) * $limit;
$tpl = new tpl ( 'forum/showtopic' );
$tpl->set('CATNAME' ,$aktForumRow['name']);
$tpl->set('HMENU' ,$hmenu);
if ( $forum_rights['start'] == TRUE ) {
$tpl->set('NEWTOPIC', '<a href="index.php?forum-newtopic-'.$fid.'"><img src="include/images/forum/newth.png" border="0"></a>' );
} else {
$tpl->set('NEWTOPIC','');
}
$tpl->set('MPL', $MPL);
$tpl->set_out('FID', $fid, 0);
$q = "SELECT a.id, a.name, a.rep, a.erst, a.hit, a.art, a.stat, b.time, b.erst as last, b.id as pid
FROM prefix_topics a
LEFT JOIN prefix_posts b ON a.last_post_id = b.id
WHERE a.fid = {$fid}
ORDER BY a.art DESC, b.time DESC
LIMIT ".$anfang.",".$limit;
$erg = db_query($q);
if ( db_num_rows($erg) > 0 ) {
while($row = db_fetch_assoc($erg) ) {
if ($row['stat'] == 0) {
$row['TOP'] = 'cord';
} elseif ($row['rep'] >= 20) {
$row['TOP'] = 'hord'; }else{
#$row['ORD'] = get_ordner($row['time']);
$row['TOP'] = forum_get_ordner($row['time'],$row['id'],$fid);
}
$row['date'] = date('d.m.y - H:i',$row['time']);
$row['page'] = ceil ( ($row['rep']+1) / $allgAr['Fpanz'] );
$row['VORT'] = ( $row['art'] == 1 ? '<img src="http://www.die-philosoffen.com/include/images/forum/imp.gif">' : '' );
$tpl->set_ar_out($row,1);
} } else {
echo '<tr><td colspan="6" class="Cnorm"><b>keine Einträe vorhanden</b></td></tr>';
}
$tpl->out(2);
if ( $forum_rights['mods'] == TRUE ) {
$tpl->set('id', $fid);
$tpl->out(3);
}
$design->footer();
?>
showpost.htm
<span style="font-weight: bold; font-size: 16px; font-family: Verdana, Arial, Helvetica, sans-serif;">{TOPICNAME}</span><br />
{SITELINK}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27%"><br />
{NEWTH}{ANTWORTEN} <br /></td>
<td width="73%" align="left" valign="bottom" class="hmenu">Sie sind hier: <span class="hemnu" style="color:#FFFFFF;"><strong>{HMENU}</strong></span></td>
</tr>
</table>
<hr />
<br />
<table width="100%" border="0" cellspacing="1" cellpadding="2" class="border">
<tr class="Chead" >
<th height="20" style="font-size:x-small;"><b>Autor</b>
<th height="20" style="font-size:x-small;">Nachricht
</tr>
{EXPLODE}
<tr class="{class}">
<td width="20%" valign="top"><a href="index.php?user-details-{erstid}"><strong>{erst}</strong></a> {land}<br />
<font class="smalfont">{rang}{posts}{avatar}{details}</font></td>
<td width="80%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="middle"><span class="smalfont" style="float: left; width:50%;"><a class="smallfont" href="index.php?forum-showposts-{TID}#{id}" title="{i}. Post in diesem Thema">#</a> {date} </span></td>
<td width="50%" align="right" valign="middle"> <a href="index.php?forum-inform-p{id}">melden</a> {delete} {change} <a href="index.php?forum-newpost-{TID}-z{id}">{_lang_quote}</a></td>
</tr>
</table>
<hr align="left" />
<br />
<div style="font-size:12px">{txt}</div>
{sig} </td>
</tr>
<tr class="{class}">
<td>{online}</td>
<td><font class="smalfont">{pm} {email} {www} {icq}</font></td>
</tr>
<tr>
<td colspan="2" class="Cmite" height="2"></td>
</tr>
{EXPLODE}
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="26%">{NEWTH}{ANTWORTEN}</td>
<td width="50%" align="left"><strong>{HMENU}</strong></td>
<td width="24%" align="right">{SITELINK}</td>
</tr>
</table>
<br />
{EXPLODE}
<br />
<strong><br />
{_lang_administrattopic}</strong><br />
<a href="javascript:renametopic()">{_lang_rename}</a>
,
<a href="index.php?forum-edittopic-{tid}-2">{_lang_delete}</a>
,
<a href="index.php?forum-edittopic-{tid}-3">{_lang_shift}</a>
,
<a href="index.php?forum-edittopic-{tid}-4-2">{status}</a>
,
<a href="index.php?forum-edittopic-{tid}-5">{festnorm}</a>
<script language="JavaScript" type="text/javascript">
<!--
function renametopic () {
var x = prompt ( "Bitte den neuen Namen vom Thema eintragen" , "" );
if ( x ) {
document.location.href="index.php?forum-edittopic-{tid}-1=0&newTopic="+x;
}
}
//-->
</script>
Gruß und Dank,
Chris