Archives par mot-clé : Wordpress

Nouveau thème et XFN

Il était temps de changer de thème WordPress, et j’ai choisi Graphene.

J’en ai profité pour ajouter des relations XFN.

  • Chaque article fait un <a href rel="author"> vers ma page de profil WordPress
  • Cette page de profil fait partie de mes « autres profils » dans mon profil Google

Et voilà le résultat, vu dans Google Rich Snippets Testing Tool :

Capture d’écran 2011-12-12 à 21.44.38
Affichage de l'auteur dans les résultats Google

Livefyre out. Back to Vanilla commenting system.

Livefyre commenting system promises to make a revolution in blogs by managing their comments with many benefits:

  • more discussion thanks to real-time
  • more comments and feedback thanks to an easier login mechanism
  • and more trust, with a reputation system accross all blogs

Despite these nice ideas, it has several drawbacks

  • you depend on another site. It can be down or slow.
  • you can’t manage user accounts any more
  • the real time technology is likely to be blocked in most companies by their firewalls
  • log in can only be done via what Livefyre provides, i.e. Facebook connect and twitter. Facebook is blocked in many companies and everybody doesn’t have a twitter account.
  • the thread level is not backed-up in WordPress. The day you quit Livefyre, you lose the hierarchy of the discussion. And some formatting too.
  • it is not open-source software.

That’s why I’m back to Vanilla WordPress comments.

However, I think it’s good to see who posts, and I have disabled anonymous comments. And I try to make login as smooth as possible. I think OpenID is good, but it needs to be done properly, otherwise you end up like 37signals.

I made a hack on my WordPress theme, in order to have a « one-click » login.

  1. < ?php elseif ( get_option('comment_registration') && !$user_ID ) : // If registration required and not logged in. ?>
  2. <div id="comment_login" class="messagebox">
  3.     < ?php
  4.         //regis hack for smooth login
  5.         if (function_exists('rpx_configured') && rpx_configured() ) {      
  6.             $login_link="javascript:showRPX('rpxlogin');";     
  7.             printf (rpx_small_buttons());
  8.         }
  9.         // existing code
  10.         elseif (function_exists('wp_login_url')) {
  11.             $login_link = wp_login_url(get_permalink());
  12.         } else {
  13.             $login_link = get_option('siteurl') . '/wp-login.php?redirect_to=' . urlencode(get_permalink());
  14.         }
  15.     ?>
  16.     < ?php printf(__('You must be <a href="%s">logged in to post a comment.', 'inove'), $login_link); ?>       
  17. </div>

As a result, unknown users the the comment box like this.

When they click the icons or follow he link they have the Janrain engage login box, like before. My hack simply removes the login page.