30 Comments on Author page wordpress plugin

This plugin shows a specific page for each author, showing the number of posts published and some of the data entered in the Wordpress admin section, i.e. URL, AIM ICQ number, etc... except email! But it can provide a contact form that will send an email to the author's address.

You can use it as an 'About' page for a personnal weblog or to give each author their own page in a collaborative blog.

To install it, download the source code and save it in a php file or get the gzip file and unpack it.

Upload the resulting file to your wp-content/plugins directory and activate it from the admin interface.

To use it put the author() function in you index.php template, where it normally shows the message that there are no posts.

In the default template, it looks like this:

 <?php endforeach; else: ?>
 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
 <?php endif; ?>

Replace this by :

 <?php endforeach; else: ?>
 <?php author(true, 5); ?>
 <?php endif; ?>

The first optionnal boolean parameter gives you the opportunity to show or hide a contact form for the author. Defaults to 'true' (show the form).

In version 0.2+, the second parameter is an integer an defines the number of latest posts to show. The default is '0'. You may want to change some of the text in the plugin file to your own language.

To do a link to the author page, you have to do something like this:

 <a href="index.php?author_name=<?php the_author_login(); ?>">
 <?php the_author(); ?></a>

if you do not wish to or can't use rewrite rules.

On this site, I use the following rewrite rule:

 RewriteRule ^about/? /index.php?author_name=jonathan [QSA]

With a link to the 'About' page simply like this :

 <a href="/about/">About</a>

On a multiuser blog, you could do this:

RewriteRule ^author/?(.*)/? /index.php?author_name=$1 [QSA]

and so the link to the page is like this:

 <a href="/author/<?php the_author_login(); ?>
 <?php the_author(); ?></a>

Version 0.3+ use native Wordpress functions to display the author data, making it more compatible (I hope) with future versions of Wordpress.

En Français


Mise jour de sécurité pour Firefox 1.0PR

Disponible sur Mozillazine

Ou bien lisez la version officielle.


Parts de marché de Firefox (sur ce blog)

J'ai installé StatTraq il y a quelques temps, et je voulais faire un petit point sur les navigateurs utilisés par les visiteurs (robots exclus). Il se trouve que la semaine dernière, Firefox a passé la barre des 2 millions de téléchargements, et la popularité croissante se retrouve dans les statistiques de ce site : l'image de droite montre les principaux naviagateurs ayant accédé ce blog du 23 septembre au 2 octobre 2004.

Graphique navigateurs

On voit clairement que, avec 67% des hits, Firefox n'est pas "un petit matelot", mais est bel et bien devenu un capitaine. Mozilla figure également en assez bonne posistion, mais pas Opera, ce qui est dommage car il s'agit également d'un très bon navigateur, surtout la version 7.60 qui est superbe, avec reconnaissance des commandes vocales, etc...

Sur l'image du bas, vous pouvez voir le classement des navigateurs depuis le 23 septembre 2004, réactualisé en direct.


Sending your email database to your GMail account

After I got my GMail account, I wanted to transfer all my local emails there. Why? I don't know, beacause it doesn't seem like the best thing to do. I tried Mark Lyon's Google Mail Loader, but it kept locking up, so I wrote a little php script to read an mBox file and send the emails it contains one by one to a GMail account.

Copy the source from this page to a php file or get the gzip file, uncompress and host it on your own web site, but make sure no one has access to it, as it can be used to send span or whatever to any account. When you load it up in your browser, it will ask you for your GMail address and the mBox file to send. Click on 'go' and it starts sending your emails. It sends one every three seconds, so sending a whole database might take a while...


Record de la traversée de la Méditerranée.

17 heures 56 minutes 13 secondes ! Voila le temps qu' Orange II a mis pour naviguer de Marseille Carthage (Tunisie). Ils ont donc battu de 50 minutes le précédent record établi par Steve Fosset et Playstation, une vitesse moyenne absolument extraordinaire de 25,53 noeuds sur la distance de 548 miles !

D'après Bruno Peyron, ce fut un véritable sprint très stressant, les écoutes la main dans des vents soutenus de 30 35 noeuds.

Les nouveaux détenteurs du record de la Méditerranée se nomment désormais : Bruno Peyron (skipper), Sébastien Audigane (barreur), Lionel Lemonchois (barreur), Halvard Mabire (barreur), Yves Le Blévec, Ludovic Alglaor, Marc Englebert, Tanguy de lamotte, Stanislas Devorsine, Quentin Gilles et Arnaud de Bélinay (vidéo).


Wordpress and StatTraq

StatTraq seems to be getting more popular. Another Wordpress plugin using it has been published by Rich Boakes. It gives the number of times that a particular post has been viewed, and is quite attractive. I think I'll be installing it. Also don't forget to take a look at the latest version of StatTraq. A great many improvements.


1 Comments on C'est quoi ces boutons ?

Très rapidement

Téléchargez un lecteur de news (essayez Sage pour FireFox, ou FeedDemon pour Windows) et trainez y un de ces boutons. Vous devriez maintenant pouvoir lire ce blog sans y être connecté(e) et être mis(e) au courant lors des mises jour.

RSS c'est quoi ?

En anglais ça veut dire Really Simple Syndication, Syndication Très Facile. Les fichiers (ou flux) RSS sont écrits en XML et ne sont pas fait pour être vus avec votre navigateur, mais avec des aggrégateurs ou lecteurs de flux. En fait, il y a plus d'une version de RSS, mais les programmes les gèrent en général toutes, donc ne vous en souciez pas.

Au départ, la syndication de contenu a été conçue pour des sites d'information, où le fichier RSS contient le titre, la date et un résumé des dernières nouvelles. Ce flux d'informations peut alors être affiché sur un autre site.

Les Boutons

Ils vous emmènent directement aux fichiers RSS qui sont difficles lire dans un navigateur. Pour lire plus confortablment, trainez le bouton jusque sur votre 'aggrégateur', et le contenu du site apparaitra de manière lisible.

  • Rss 2.0 pour les articles
  • Résumés des articles en Rss 2.0 pour les résumés de tous les articles
  • Commentaires Rss 2.0 pour les commentaires de tous les articles

Aggrégateurs RSS

Il y en a énormément. Je vous conseille particulièrement l'extension Sage pour Firefox, qui a l'avantage de fonctionner sur la plupart des plateformes (Mac, Windows, Linux), ou bien consultez Google

En savoir plus

Je vous conseille l'article de Sébastien Lardière qui approfondit les explications, ou cette page, où vous pourrez tout savoir de Atom, RSS, etc...


2 Comments on Firefox et GMail

Il y deux bonnes manières d'aider Firefox se distribuer plus largement : mettre un lien vers spreadfirefox.com sur votre page web, et donner des invitations GMail qui seront redistribuées aux personnes ayant mis un lien sur leur site. Une bonne initiative qui l'air de prendre comme de la poudre...


13 Comments on Referrer Wordpress Plugin

Referrers is a plugin I coded to show the most recent referring urls to a particular post. I had seen the wp-refer plugin from NoPrerequisite but couldn't put it on my blog without hacking because it uses the meta fields to store its data, and as I display the metadata for other purposes in each post, it would get fairly cluttered.

Also, I am using the very good StatTraq plugin, so I thought I could make use of the fact that it already records referrers.

To install :

  1. Download and install Stattraq.
  2. Download post_referrers.php.txt
  3. Rename to post_referrers.php
  4. Or get the gzip file and uncompress it.
  5. Upload the resulting file to /wp-content/plugins
  6. Activate it in your admin interface

Using it is simple:

Add the following code to your index.php file, within the loop

 post_referrers(8, "&lt;li&gt;", "&lt;/li&gt;", "No referrers", "self");

Where '8' is the number of referrers to show, '<li>' is the text to show before each link, '</li>' is the text to showafter each link, 'No referrers' is... you guessed it! the text to show when there are no referrers yet and the last option marks the excluded hosts. If you use 'self', internal referrers only will be hidden. Otherwise, you can write a list of hosts (domain names) to ignore like this: "google.com yahoo.com example. org" and so on...

See it work at the bottom of this page, and leave a comment in case of problems.

Version 0.21 and up use Google redirection to help prevent referrer spam.

En Français


Radio buttons dilemma

What if in a form I select a radio button by mistake, when I didn't want to make a choice? I guess I would just reload the page, or else hope that the designer put a 'reset' button.