• Hello,

    i would like to know if there is a plugin to show comments like in Dotclear “XX wanted to say…” and, everytime with a different sentence ?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Not a plugin that I know of, but you can do it pretty easily.

    Create a php file with an array with the different sentences and then call that file at the appropriate place in the template.

    You’d create a file, for example, called commentremark.php and upload it to your active theme directory that would be something like this:

    <?

    // Random HTML Generator
    // HTML Array....
    $mHTML[0] = 'wrote';
    $mHTML[1] = 'bloviated';
    $mHTML[2] = 'pontificated';
    $mHTML[3] = 'thought';
    $mHTML[4] = 'expressed the opinion that';

    // Calculate index
    $iUpper = sizeof($mHTML) - 1;
    $iLower = 0;

    $iIndex = rand($iLower, $iUpper);
    // Display HTML
    echo $mHTML[$iIndex];
    ?>

    Then in the appropriate place in your comments template you’ll put:

    <? include('commentremark.php'); ?>

    There is this plugin, that I use on my site. Easy to setup and configure.

    http://frenchfragfactory.net/ozh/my-projects/wordpress-plugin-random-words/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dotclear like comments’ is closed to new replies.