pragmaMx Support Forum

pragmaMx => integrierte Module => Thema gestartet von: Webfan am 25 Mai 2009, 21:17:29

Titel: Nochmal Topliste
Beitrag von: Webfan am 25 Mai 2009, 21:17:29
Hallo,
leider wurde folgendes Thema geschlossen:
http://www.pragmamx.org/Forum-topic-22653.html

Ich habe pmx 0.1.9 und die index.php von Andi aus dem Thread oben überspielt.
Leider hat dies nicht funktioniert (ein Call to undefined function fehler und keine Blöcke werden angezeigt).

Die modules/Top/index.php aus 0.1.10 funktioniert auch nicht (0.1.10 is required)

Hat jemand die modules/Top/index,php aus 0.1.9 parat, diese datei hab ich mir auf der Festplatte leider überschrieben.

Danke
:)
Titel: Re: Nochmal Topliste
Beitrag von: m-t am 25 Mai 2009, 21:27:26
Zitat von: Webfan am 25 Mai 2009, 21:17:29
Hat jemand die modules/Top/index,php aus 0.1.9 parat

klar...
Titel: Re: Nochmal Topliste
Beitrag von: Webfan am 25 Mai 2009, 21:47:39
Danke m-t  :)
Ich habe Zeile 109 geändert von
$result = sql_query("select sid, title, score, ratings from ${prefix}_stories $querya1lang score!=0 ORDER BY (ratings+score) DESC limit 0,$top");
nach
$result = sql_query("select sid, title, score, ratings from ${prefix}_stories $querya1lang score!=0 ORDER BY (ratings/score) ASC limit 0,$top");
nuin scheint es unter 0.1.9 zu funzen.
Obwohl ich nicht weiß warum, müßte es nicht DESC heißen?  :gruebel:

http://www.webfan.de/Top.html
Titel: Re: Nochmal Topliste
Beitrag von: m-t am 25 Mai 2009, 21:55:12
ZitatORDER BY (ratings+score)
nach
ZitatORDER BY (ratings/score)

"order by" in klammern?

Titel: Re: Nochmal Topliste
Beitrag von: Webfan am 25 Mai 2009, 22:12:10
Ja, das stand da so in Klammer, ich hab nur + nach / geändert.