Hallo auch,
ich hätte gerne, dass der letzte Kommentareintrag an oberster Stelle steht, und nicht der älteste. Wie mache ich das?
Güße,
flx
Reihenfolge der Kommentare ändern
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Reihenfolge der Kommentare ändern
Die schnelle Methode:
include/functions_smarty.inc.php, function serendipity_smarty_printComments() suchen und folgendes ändern:
in
Du kannst alternativ auch einen Smarty-Modifier registrieren, der Dir das array einfach umkehrt. Da bin ich aber gerade zu faul, das rauszusuchen.
Viele Grüße,
Garvin
include/functions_smarty.inc.php, function serendipity_smarty_printComments() suchen und folgendes ändern:
Code: Select all
$comments = serendipity_fetchComments($params['entry']);
Code: Select all
$comments = serendipity_fetchComments($params['entry'], null, 'co.timestamp ASC');
Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Ersetze "co.timestamp ASC" durch "ASC"
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
flx
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hm, probier mal "DESC" anstelle "ASC"?
Viele Grüße,
Garvin
Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
Jan
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Nope, die Nummerierung ist sequentiell, daran lässt sich so ohne tiefgreifende Code-Änderungen nichts machen.
Viele Grüße,
Garvin
Viele Grüße,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/