Anzeigen

Reverse Order Comments

Dieses Plugin erlaubt es, die Kommentare zu einem Post in umgekehrter Reihenfolge anzuzeigen. Also die neuesten Kommentare zuerst und die ältesten zuletzt. So wie es z.B. in Gästebüchern üblich ist.

Download:

Reverse Order Comments Version 1.0.2 im WordPress.org Plugin Directory

Installation:

Einfach den Inhalt des Archivs in das Wordpress Verzeichnis entpacken. Anschließend im Plugin Manager das Plugin aktivieren. Die Dateien im Verzeichnis ‘theme-examples’ sind Beispiele, wie das Plugin in das eigene Theme integriert werden kann. Es ist nicht nötig, dieses Unterverzeichnis auf das eigene Blog hochzuladen.

Benutzung:

Damit die neue Funktion überhaupt von WP genutzt wird, muss sie in den Templates eingebunden werden. Sollen z.B. im verbreiteten Kubrik Theme für jeden Beitrag die Kommentare in umgekehrter Reihenfolge dargestellt werden, muss nur im File “single.php” die Zeile

<?php comments_template(); ?>

gegen

<?php if(function_exists('ro_comments_template')) ro_comments_template(); else comments_template(); ?>

ausgetauscht werden. Eine ausführlichere Anleitung ist im Zip File enthalten. Eine kleine Beschreibung, wie man ein Gästebuch erstellen kann, habe ich hier zusammengefasst. Ich habe dieses Plugin vor einiger Zeit geschrieben, um eine Wordpress Seite als Gästebuch nützen zu können. Technisch ist es keine Glanzleistung. Es ist mein erstes Wordpress Plugin und war nur eine Fingerübung und eine gute Gelegenheit, einen ersten Einblick von der Wordpress Architektur zu bekommen.

Changelog:

11.11.05 Erste Veröffentlichung
13.09.06 Kleiner Bufix in den comments-topinput.php Templates.
18.05.08 Veröffentlichung im WordPress Plugin Verzeichnis; Plugin umbenannt in reverse-order-comments; Verzeichnisstruktur geändert, damit das WordPress Plugin Autoupdate funktioniert


English:

This plugin provides the function ro_comments_template(), which allows the comments of a post to be displayed in reverse order (thus the newest comments first, oldest last). I wrote it, because needed a simple way to turn a wordpress page into a typical guestbook. Detailed installation and usage instructions in english are included in the zip file.

Bookmarken bei Diese Icons verlinken auf Bookmark Dienste bei denen Nutzer neue Inhalte finden und mit anderen teilen können.
  • MisterWong
  • Y!GG
  • Webnews
  • Linkarena
  • Oneview
  • Tausendreporter
  • SEOigg
  • Digg
  • del.icio.us
  • StumbleUpon
  • Folkd
  • Furl

46 Pingbacks / Trackbacks

26 Kommentare zu „Reverse Order Comments“

  1. Manfred sagt:

    Vielen Dank. Ein sehr nützliches Plugin.

  2. mexi sagt:

    :-( funzt bei mir leider nicht, kannst du mir behiflich sein ? Habe das Plugin hochgeladen, aktiviert und in der single.php den Code geändert, diese dann auch auf den Server geschoben. Wo is der Haken ?

    Danke dir im Voraus für deine Hilfe.

    Gruß

    mexi

  3. mexi sagt:

    Hm, habe festgestellt das die Kommentare wohl doch sortiert sind, leider steht die 1 beim letzten Beitrag. Nur dort wo ich es ansich einsetzen wollte (im Gästebuch) erscheinen die Beiträge wie gehabt. *schulterzuck.

    n8iii mexi

  4. Tim sagt:

    Hi Mexi,

    wenn du die single.php änderst, dann hast du damit nur die Kommentare zu den Beiträge in deinem Blog geändert, aber nicht für die Seiten in deinem Blog.

    Für dein Gästebuch hast du eine Seite gewählt, du musst also entweder die page.php ändern oder dir ein extra Template für deine Gästebuchseite erstellen.

    Eine kurze Anleitung findest du hier: Gästebücher mit dem Reverse Order Comments Plugin erstellen

  5. Tom sagt:

    Hi, I use a theme which doesn’t have the single.php file. Can I still use this plugin?

    Thank you.

    Tom

  6. Tim sagt:

    Hi Tom,

    sure you can use my plugin. Just find in your templates

    comments_template();

    and replace it with the comment function provided by the plugin

    if(function_exists(‘ro_comments_template’)) ro_comments_template(); else comments_template();

  7. Jonez sagt:

    SuperDing! ThnXalot…

  8. Raphael sagt:

    In deinem Gästebuch werden lediglich die letzten 10 Artikel angezeigt und der Rest auf Unterseiten verlinkt. Wie ist es denn möglich dies mit deinem Plugin zu erreichen?

  9. Tim sagt:

    In meinem Gästebuch verwende ich das Plugin “Paged Comments” von Keyvan Minoukadeh.
    Sein Plugin kann mehr, ist aber auch komplexer.

  10. Danke! Habe soeben ein Gästebuch mit dem Plugin aufgesetzt. Es hat wunderbar funktioniert!

  11. Estetik sagt:

    Danke schön :D

  12. estetik sagt:

    Hi, I use a theme which doesn’t have the single.php file. Can I still use this plugin?

  13. Tim sagt:

    You can. Make a copy of index.php and rename it to single.php. Or change the index.php, but than depending on your theme all your posts and pages are affected.

  14. Sudar sagt:

    I have re-written the Plugin so that we don’t need to modify the theme files. You can check out my Plugin at http://sudarmuthu.com/wordpress/reverse-comments

  15. Tim sagt:

    Hi Sudar,

    your plugin has a limitation. It is working globally for all comments in the whole blog. You can’t use it just with one page or template.
    As I created my plugin with the aim to build guestbook-like pages, I needed a little bit different functionality.

  16. baron sagt:

    hi. Thanks for plugin

    perfect.

    regards

  17. Marcel sagt:

    Could you please upload the plugin directory only?
    After automatic upgrade with Wordpress 2.5.1 the plugin cannot be found.
    the plugin is now in wp-content\plugins\reverse-order-comments\wp-content\plugins

  18. Tim sagt:

    Thanks for the hint Marcel. I did not use the automatic update before.

    I changed the directory structure of my plugin and uploaded the new version to the plugin directory.
    You should be able to upgrade with one click now.

  19. DrunkPaula sagt:

    Will this plugin reverse the comments on all pages. Or can you apply it to just one page?

  20. Tim sagt:

    Hi DrunkPaula,

    Depending on how you use the plugin it can reverse all comments on your blog or just the comments on one page.
    As you have to change your theme templates a little bit, you can choose wheather all comments or just the comments on one page should be reversed.

  21. Peter sagt:

    Ich habe mir einfach von der Seite:
    http://www.cabcom13.de/reihenfolge-der-kommentare-umdrehen/
    die Zeilen
    “”
    genommen und in meine commentar.php eingebaut.

  22. Andi sagt:

    Danke für dieses Plugin, ist genau was ich für mein Gästebuch in Verbindung mit WP-Wall noch gebraucht habe!

  23. korall sagt:

    Hi
    I’d like to use reverse order comments but just for one page (not for entire blog as possible to set in WP settings).
    I tried your plugin but i does not work for 2.7.1. I can not display comments at all.
    any ideas?

  24. youtube sagt:

    In meinem Gästebuch verwende ich das Plugin “Paged Comments” von Keyvan Minoukadeh.
    Sein Plugin kann mehr, ist aber auch komplexer.

  25. iyiblogcu sagt:

    Hi, I use a theme which doesn’t have the single.php file. Can I still use this plugin?

  26. jan sagt:

    Hi, this plugin is excellent! Howewer i am missing one significant feature – pagination. Is there any way to do it? I tried all availeble pagination plugins but none of them works with this. They all work with comments.php only or they need this new wp_list_comments.
    Could you please at least give a hint how it coud be done? Or coud you maybe even update your plugin to use wp_list_comments?

Kommentieren

Sie können diese HTML Elemente nutzen:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>