Ist es möglich die Reihenfolge der Beiträge in einzelnen Threads unabhängig von der unter "Postsortierung" vorgenommen Einstellung zu verändern?
Weil ich ja nicht immer nur fragen und nix selbst machen will, hab ich schon mal versucht, das irgendwie anzugehen und hab mir die forum/showthread.php
angeschaut - ich bin auch der Meinung, dass ich den entsprechenden Bereich gefunden habe, hab auch schon offline ein paar Sachen ausprobiert, aber ein brauchbares Ergebnis hab ich noch nicht erzielen können... hier mal der Teil der forum/showthread.php, den ich "im Verdacht" habe
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
|
if ($info['forumpost_id']>0) {
if ($config['forum_postorder']=='ASC') $sqlcommand='<';
else $sqlcommand='>';
$cinfo=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['forumpost']." WHERE forumpost_time".$sqlcommand."='".$info['forumpost_time']."' AND forumpost_threadid='".$threadid."'"));
if ($cinfo[0]>$forumcat['forumcat_posts']) {
$entries=0;
while (($entries+$forumcat['forumcat_posts'])<$cinfo[0]) {
$entries=$entries+$forumcat['forumcat_posts'];
}
}
if ($forum_style[0]!=1) {header ("location: include.php?path=forum/showthread.php&threadid=".$threadid."&entries=".$entries."&PHPKITSID=".session_id()."#post".$info['forumpost_id']); exit();}
}
|