Home Français A propos Contact rss
WordPress from the beginning
Sharing some discoveries about WordPress
 

Allowing browsers to rank your articles

It's a good idea to ask readers what they think, so you may know what's popular and what's not. It can also help you consider changing an article slightly. There's a number of plugins on the subject, and the one I just installed is called wp-postratings. I've been using it for the past 6 months and I'm still happy with it! Its documentation is pretty comprehensive, as are its various customization options. Namely the display of the ranking tool (through a little html knowledge) .

Installation

Nothing worth noting here. Have a quick look at the options page to choose the rating system’s look:

Pas mal de styles différents

A wide choice of styles

Integration

The plugin integrates in templates as single.php, writing the code: <?php if(function_exists(‘the_ratings’)) { the_ratings(); } ?>, somewhere inside the loop.

Templates

The plugin enables to customize the ranking tool’s look, depending on the vote: already voted, not voted yet, whether there’s been votes at all… Here’s an example:

Avec un peu de html on peut personnaliser l'outil

With a little html, you can customize this tool

Use

The plugin is able to accept one vote only per browser, per article, thanks to a cookie system that memorizes the IP address. It keeps track of the number of times an article was ranked, and its mark too.

The admin’s point of view

The plugin keeps a list of all votes on its admin page:

Vue d'ensemble des votes

An overview of all votes

Widgets

It’s available with a widget that accepts a zillion paremeters, to display a more relevant ranking than absolute best marks. Here’s an excerpt:

De nombreux classements possibles

Many ranking types are available

Here’s an example of what you can see

Le widget en action

The widget in action

Spread this post over the world!

Share/Bookmark

How did you like this post?

Please don't go without leaving a mark!
37 vote(s) 1 Etoile2 Etoiles3 Etoiles4 Etoiles5 Etoiles Loading ... Loading ...

Reactions

comments 18 comments
  1. October 20th, 2009 at 11:25

    @Anthony
    Bonjour Anthony,

    Je confirme qu’en intégrant la balise [ ratings ] (sans les espaces) dans le html d’un article, on a bien accès au vote dans l’article concerné. C’est donc un très bon point, merci donc pour cette bien utile précision ! Par contre, je n’ai toujours pas réussi à intégrer le vote de façon permanente en intégrant le code dans mes templates page.php ou single.php. J’ai lu quelque part que ça pouvait tenir aux liens déclarés dans les modèles du plugin, mais là ça me dépasse complètement…

    Cordialement.

    Like or Dislike: Thumb up 0 Thumb down 0

  2. October 20th, 2009 at 10:03

    @Christophe Quinzoni Très bonne remarque, merci, j’avais oublié que ce plugin n’affiche rien une fois installé. J’ai rajouté un paragraphe sur l’intégration.

    Like or Dislike: Thumb up 0 Thumb down 0

  3. October 17th, 2009 at 18:44

    Bonjour Anthony,

    Après installation et activation du plugin, rien n’apparaît dans mes articles :o (… Auriez-vous une piste à m’indiquer pour mener mon enquête ?

    - un problème avec Ajax ?
    - code mal intégré ?

    J’ai sûrement raté un truc quelque part, mas je ne vois pas où. Merci par avance pour vos conseils.

    Cordialement

    Like or Dislike: Thumb up 0 Thumb down 0

  4. June 7th, 2009 at 09:28

    Bonjour,

    je viens d’aller voir sur votre blog et on dirait que le problème a disparu, c’était quoi finalement ?

    Like or Dislike: Thumb up 1 Thumb down 0

  5. June 1st, 2009 at 10:32

    Bonjour,

    Merci pour la procédure. J’ai néanmoins un souci d’affichage avec wp-postratings. J’ai bien intégré la fonction décrite dans single.php (plus index.php et archive.php).
    Le plugin apparaît bien (j’ai choisi les “stars” comme affichage). J’ai testé sur plusieurs articles, mais le nombre d’étoiles n’est pas pris en compte (aucune étoile ne s’affiche, 1 votes, moyenne:0,00).

    Un avis ?

    Merci.

    Like or Dislike: Thumb up 0 Thumb down 0

Top
Choisissez vos widgets

Plugin

How to add a plugin??

About this post

  • About this weblog

    "WordPress From the beginning" is written by a French web developer and teacher currently based in Switzerland.

    Originally planned in french, both blog and its functions were developped in this language. This explains why not all functions are available in the English version.

    However, new translated articles are regularly posted for use by the wordpress' web community.

Wordpress from the beginning is a production of Woodymood
Performance Optimization WordPress Plugins by W3 EDGE