reverse-order-comments.php The plugin itself
theme-examples/
default (English default theme)
comments-topinput.php comments.php adapted for a guestbook (engl)
tpl_guestbook.php template for a guestbook (engl)
default_de (German default theme)
comments-topinput.php comments.php adapted for a guestbook (engl)
tpl_gaestebuch.php template for a guestbook (engl)
To use the new function you need to implement it in your templates.
If you want your comments to be displayed in reverse order in every post, you need to replace in file "single.php" the line
<?php comments_template(); ?>
with
<?php if(function_exists('ro_comments_template')) ro_comments_template(); else comments_template(); ?>
Precondition: comments-topinput.php and tpl_gaestebuch.php are in in your template directory.
Done!
If you want the comment input fields "blogstyle" at the bottom of the page, just change inside tpl_gaestebuch.php the line
<?php if(function_exists('ro_comments_template')) ro_comments_template("/comments-topinput.php"); else comments_template(); ?>
to
<?php if(function_exists('ro_comments_template')) ro_comments_template(); else comments_template(); ?>
If you don't use the Kubrik/Default theme, it is still very easy to build your own template.
A good template to start with is "page.php" and "single.php". Copy "page.php" and rename it.
The line <?php comments_template(); ?> is important. Change it as described above.
Add a header to your new page, to tell Wordpress it is a template.
e.g.
<?php
/*
Template Name: Guestbook
*/
?>
This Plugin is really simple. Just the original comments_template() function with modified SQL queries.
If you use your own comments.php you can change the the function parameter to your own file. But if you do stuff like this,
you may already now this.
Tested up to Wordpress 2.5.1
If you use this plugin, please leave a comment or trackback/pingback on the plugin site.
For Feedback of any kind, this is the right place, too.
V1.0
V1.0.1
V1.0.2




