smashIt 0 Report post Posted February 24, 2006 ich bin ja sicher nicht der einzige dem die post-sortierung im mitgeliferten portal vom ipb 2.1.4 nicht passt die sortierung unter latest discussions hab ich ja noch selber hinbekommen indem ich in der recent_topics.php $this->ipsclass->DB->simple_construct( array( 'select' => 'tid, title, posts, starter_id as member_id, starter_name as member_name, start_date as post_date, views', 'from' => 'topics', 'where' => "$qe approved=1 and state != 'closed' and (moved_to is null or moved_to = '')", 'order' => 'start_date DESC', 'limit' => array( 0, $limit ) ) ); durch $this->ipsclass->DB->simple_construct( array( 'select' => 'tid, title, posts, last_poster_id as member_id, last_poster_name as member_name, last_post as post_date, views', 'from' => 'topics', 'where' => "$qe approved=1 and state != 'closed' and (moved_to is null or moved_to = '')", 'order' => 'post_date DESC', 'limit' => array( 0, $limit ) ) ); ersetzt hab aber wie schaff ichs das bei den recent topics ignoriert wird ob ein thread gepinnt is oder nicht? bei dem was dort gecoded is steh ich mit meinen nicht vorhanden php/sql kenntnissen nämlich ziemlich massiv an hab dazu auch schon auf ipsbeyound gesucht aber nix gefunden hoffe mir kann einer der gurus hier weiterhelfen Share this post Link to post
smashIt 0 Report post Posted February 28, 2006 sodann habs jetzt endlich gefunden in der mysql_queries.php bei der funktion (is fast ganz am ende) function portal_get_monster_bitch( $a ) einfach ORDER BY t.pinned DESC, t.start_date DESC durch ORDER BY t.start_date DESC, t.pinned DESC ersetzen (oder t.pinned DESC komplett weglassen) Share this post Link to post