Hallo!
Gibt es hierfür keine Lösung?
Edit:
Auch hier hab ich mal selber probiert, ich weiß nicht bzw. ich glaube nicht, dass es die optimale Lösung ist, aber sie funktioniert:
Öffne portal/includes/functions.php
finde:
- Code: Select all
case "news_all":
$topic_type = '( t.topic_type <> ' . POST_ANNOUNCE . ' ) AND ( t.topic_type <> ' . POST_GLOBAL . ')';
$str_where = ( strlen($str_where) > 0 ) ? 'AND (' . trim(substr($str_where, 0, -4)) . ')' : '';
$user_link = ( $portal_config['portal_news_style'] ) ? 't.topic_poster = u.user_id' : (( $portal_config['portal_news_show_last'] ) ? 't.topic_last_poster_id = u.user_id' : 't.topic_poster = u.user_id' ) ;
$post_link = ( $portal_config['portal_news_style'] ) ? 't.topic_first_post_id = p.post_id' : (( $portal_config['portal_news_show_last'] ) ? 't.topic_last_post_id = p.post_id' : 't.topic_first_post_id = p.post_id' ) ;
$topic_order = ( $portal_config['portal_news_show_last'] ) ? 't.topic_last_post_time DESC' : 't.topic_time DESC' ;
break;
ersetze durch:
- Code: Select all
case "news_all":
$topic_type = '((t.topic_type = ' . POST_NORMAL . ') OR (t.topic_type = ' . POST_STICKY . ') OR (t.topic_type = ' . POST_ANNOUNCE . ') OR (t.topic_type = ' . POST_GLOBAL . '))';
$str_where = (strlen($str_where) > 0) ? 'AND (' . trim(substr($str_where, 0, -4)) . ')' : '';
$user_link = ($portal_config['portal_news_style']) ? 't.topic_poster = u.user_id' : (($portal_config['portal_news_show_last']) ? 't.topic_last_poster_id = u.user_id' : 't.topic_poster = u.user_id' ) ;
$post_link = ($portal_config['portal_news_style']) ? 't.topic_first_post_id = p.post_id' : (($portal_config['portal_news_show_last']) ? 't.topic_last_post_id = p.post_id' : 't.topic_first_post_id = p.post_id' ) ;
$topic_order = ($portal_config['portal_news_show_last']) ? 't.topic_last_post_time DESC' : 't.topic_time DESC' ;
break;
Geändert wird nur die
$topic_type = Zeile. Hierbei wird ausgewählt welche Topic-Typen er auswählen soll. Wenn man die Zeile einfach raus löscht oder leer lässt gibts nen Fehler also habe ich einfach alle 4 Topic Typen rein geschrieben und immer mit OR verknüpft.
Edit2: Nicht vergessen im
ACP unter
Mods ->
Aktuelle Beiträge den Punkt
Zeige alle Beiträge dieses Forums: auf
Ja zu setzen.