<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mathieu Gheerbrant Consultant SEO &#124; Référencement naturel &#187; Développement</title>
	<atom:link href="http://www.seo-france.net/developpement/feed" rel="self" type="application/rss+xml" />
	<link>http://www.seo-france.net</link>
	<description>Une passion : le webmarketing</description>
	<lastBuildDate>Wed, 19 May 2010 09:00:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Plugin Freeglobes : afficher des sites connexes</title>
		<link>http://www.seo-france.net/2010/plugin-freeglobes-afficher-des-sites-connexes/156</link>
		<comments>http://www.seo-france.net/2010/plugin-freeglobes-afficher-des-sites-connexes/156#comments</comments>
		<pubDate>Thu, 04 Feb 2010 16:47:10 +0000</pubDate>
		<dc:creator>Mathieu</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[Référencement]]></category>
		<category><![CDATA[annuaire]]></category>
		<category><![CDATA[freeglobes]]></category>
		<category><![CDATA[liens connexes]]></category>
		<category><![CDATA[liens relatifs]]></category>

		<guid isPermaLink="false">http://www.seo-france.net/?p=156</guid>
		<description><![CDATA[
Les annuaires sont toujours utiles pour le référencement, et l&#8217;on s&#8217;aperçoit que nombre de scripts sont incomplets quand on se penche un peu sur leurs fonctionnalités de base.
J&#8217;utilise le script FreeGlobes depuis un certain temps car je trouve son système de plugins bien utile (base reprise du système DotClear si ma mémoire ne me fait [...]]]></description>
			<content:encoded><![CDATA[<p>
Les annuaires sont toujours utiles pour le référencement, et l&#8217;on s&#8217;aperçoit que nombre de scripts sont incomplets quand on se penche un peu sur leurs fonctionnalités de base.<br />
J&#8217;utilise le script FreeGlobes depuis un certain temps car je trouve son système de plugins bien utile (base reprise du système DotClear si ma mémoire ne me fait pas défaut).
</p>
<p style="text-align:center;"><a href="http://www.seo-france.net/wp-content/uploads/2010/02/logo-freeglobes.png" rel="lightbox[pics156]"><img src="http://www.seo-france.net/wp-content/uploads/2010/02/logo-freeglobes.png" alt="FreeGlobes" width="179" height="40" class="attachment wp-att-157 " /></a></p>
<h2>Maillage interne avec FreeGlobes</h2>
<p>
Aujourd&#8217;hui, il n&#8217;existe pas à ma connaissance de plugin proposant des liens connexes vers d&#8217;autres fiches de l&#8217;annuaires.<br />
Cela aurait pour but d&#8217;améliorer le maillage interne en pointant des pages profondes du site, tout en leur donnant un contexte adéquat.<br />
Par exemple, une fiche dont le thème serait les outils de jardin affichera des liens vers les pages de l&#8217;annuaire ayant un rapport avec le jardin et/ou les outils.
</p>
<h2>Quel est le fonctionnement du plugin de liens connexes</h2>
<p>
C&#8217;est très simple&#8230;<br />
Le titre utilisé pour la soumission dans les annuaires est généralement truffé des mots-clefs sur lesquels les sites aimeraient apparaître dans les résultats de recherche.<br />
C&#8217;est le titre que nous allons donc utiliser de manière à être le plus précis possible dans le contexte. Ainsi, le plugin opèrera une recherche sur les mots-clefs contenus dans le titre de la fiche et sélectionnera au hasard 10 sites qui seront affichés sous forme de liste désordonnée (le nombre de sites à afficher est bien entendu configurable dans la source du plugin).
</p>
<h2>Comment installer le plugin de cross linking ?</h2>
<p>
Pour installer le plugin de liens relatifs, il suffit de le décompresser dans le dossier /plugins de votre annuaire FreeGlobes.<br />
Après vous être connecté(e) à votre interface d&#8217;administration, vous le retrouverez dans la section Plugins, portant le nom de <strong>Sites connexes</strong>.<br />
Vous trouverez alors le code à insérer dans vos pages de templates pour appeler la fonction.<br />
La majorité des thèmes FreeGlobes ont déjà prévu les éléments de style pour les listes UL, donc les sites devraient s&#8217;intégrer facilement au reste de la page. Si tel n&#8217;était pas le cas, vous auriez un peu de <acronym title="Cascading Style Sheets">CSS</acronym> à faire, mais cela n&#8217;a jamais tué personne <img src='http://www.seo-france.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</p>
<p>
&raquo;&nbsp;Pour télécharger le plugin, <a href="http://www.theblackmelvyn.com/file-download/freeglobes_crossIndexing.zip" target="_blank">cliquez ce lien</a></p><div class="aizattos_related_posts"><span class="aizattos_related_posts_header" >Sujets connexes</span><ul><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/comment-detecter-le-vol-de-pagerank/44" rel="bookmark" title="Permanent Link: Comment détecter le vol de PageRank ?" >Comment détecter le vol de PageRank ?</a></span><div class="aizattos_related_posts_excerpt">
Le vol de PR (forged PR en anglais) est une des techniques utilisées pour réaliser des échanges...</div></li><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/referencement-multilingue-bonnes-pratiques/14" rel="bookmark" title="Permanent Link: Référencement multilingue : bonnes pratiques" >Référencement multilingue : bonnes pratiques</a></span><div class="aizattos_related_posts_excerpt">
J'ai été récemment impliqué dans une discussion de forum concernant le référencement de site...</div></li><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/google-histoire-vos-pages/119" rel="bookmark" title="Permanent Link: Google et l&#8217;histoire de vos pages" >Google et l&#8217;histoire de vos pages</a></span><div class="aizattos_related_posts_excerpt">
Tous les SEO savent que la balise Title est l'un des critères les plus importants dans l'algorith...</div></li><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/google-abandonnerait-son-pagerank/79" rel="bookmark" title="Permanent Link: Google abandonnerait son PageRank ?" >Google abandonnerait son PageRank ?</a></span></li><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/blog-seo-nouveau-blogosphere/1" rel="bookmark" title="Permanent Link: Blog SEO : un nouveau sur la blogosphère" >Blog SEO : un nouveau sur la blogosphère</a></span></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.seo-france.net/2010/plugin-freeglobes-afficher-des-sites-connexes/156/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Détecter la langue du visiteur en PHP</title>
		<link>http://www.seo-france.net/2009/detecter-langue-visiteur-php/16</link>
		<comments>http://www.seo-france.net/2009/detecter-langue-visiteur-php/16#comments</comments>
		<pubDate>Fri, 09 Oct 2009 14:27:14 +0000</pubDate>
		<dc:creator>Mathieu</dc:creator>
				<category><![CDATA[Développement]]></category>
		<category><![CDATA[détecter la langue des visiteurs]]></category>
		<category><![CDATA[détecter la langue du visiteur]]></category>
		<category><![CDATA[détection de la langue]]></category>

		<guid isPermaLink="false">http://www.seo-france.net/?p=16</guid>
		<description><![CDATA[Voilà quelque chose d&#8217;important&#8230;
Lorsque l&#8217;on fait un site internet, les considérations SEO doivent être prise en amont, afin de ne pas faire le travail deux fois. C&#8217;est pour cette raison que les référenceurs et les chefs de projet SEO doivent être impliqués dès le début de la conception du site afin de ne pas perdre [...]]]></description>
			<content:encoded><![CDATA[<p>Voilà quelque chose d&#8217;important&#8230;<br />
Lorsque l&#8217;on fait un site internet, les considérations SEO doivent être prise en amont, afin de ne pas faire le travail deux fois. C&#8217;est pour cette raison que les référenceurs et les chefs de projet SEO doivent être impliqués dès le début de la conception du site afin de ne pas perdre de temps et garantir une structure <acronym title="HyperText Markup Language">HTML</acronym> et un fonctionnement optimisés pour les moteurs de recherche.<br />
<a href="http://www.seo-france.net/wp-content/uploads/2009/10/langues-etrangeres.jpg" rel="lightbox[pics16]"><img src="http://www.seo-france.net/wp-content/uploads/2009/10/langues-etrangeres.thumbnail.jpg" alt="Langues étrangères" width="200" height="200" style="float:right; margin:5px;" /></a></p>
<p>Dans le cas du <a href="http://www.seo-france.net/2009/referencement-multilingue-bonnes-pratiques/14">référencement multilingue</a> d&#8217;un site e-commerce ou institutionnel, il est important de pouvoir présenter facilement et distinctement les différentes versions des pages.<br />
Pour ce faire, il faut détecter la langue du visiteur. Mais vous allez me répondre que les moteurs ne donnent pas cette information&#8230; TOUT JUSTE ! Et c&#8217;est pour cela qu&#8217;il faut absolument définir une langue par défaut avant l&#8217;affichage de la page d&#8217;accueil.</p>
<p>Pour ce faire, il existe une fonction très simple en <acronym title="Pre-Hypertext Processing">PHP</acronym> qui permet de déterminer la langue du visiteur, et si celle-ci n&#8217;est pas disponible, alors une langue par défaut sera utilisée.</p>
<p>Voici le code :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//  Langues disponibles</span>
<span style="color: #000088;">$avail_lang</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'fr'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'en'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> checkLang<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$avail_lang</span><span style="color: #339933;">;</span>
  <span style="color: #000088;">$default_lang</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'en'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//  Langue par défaut choisie</span>
  <span style="color: #666666; font-style: italic;">//  Changement volontaire</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$avail_lang</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">//  Détection automatique</span>
  <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$lang</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">','</span><span style="color: #339933;">,</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_ACCEPT_LANGUAGE'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$langage</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">chop</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$lang</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langage</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$langage</span><span style="color: #339933;">,</span> <span style="color: #000088;">$avail_lang</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$langage</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$default_lang</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">//  Détection du paramètre</span>
  <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">in_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$avail_lang</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">//  Langue choisie au départ</span>
  <span style="color: #b1b100;">elseif</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #666666; font-style: italic;">//  Langue par défaut (doit correspondre à la plus grande audience)</span>
  <span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'lang'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$default_lang</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Ici, le paramètre de langue est stocké dans une variable globale, et non en session, car les crawlers ne gèrent pas les cookies. Ainsi, la langue sera tout de même disponible pour traiter soit le contenu, soit une redirection.<br />
On suppose dans cette fonction que l&#8217;argument correspondant à la langue est passé dans l&#8217;url de la manière suivante <strong>index.php?lang=fr</strong></p>
<p>Et vous, avez-vous une autre astuce pour détecter la langue des visiteurs ?</p><div class="aizattos_related_posts"><span class="aizattos_related_posts_header" >Sujets connexes</span><ul><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/referencement-multilingue-bonnes-pratiques/14" rel="bookmark" title="Permanent Link: Référencement multilingue : bonnes pratiques" >Référencement multilingue : bonnes pratiques</a></span><div class="aizattos_related_posts_excerpt">
J'ai été récemment impliqué dans une discussion de forum concernant le référencement de site...</div></li><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/newsletter-ou-e-mail-commercial/57" rel="bookmark" title="Permanent Link: Newsletter ou e-mail commercial ?" >Newsletter ou e-mail commercial ?</a></span><div class="aizattos_related_posts_excerpt">
S'il est important pour un site e-commerce de potentialiser son portefeuille de clients existants ...</div></li><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/affiliation-devoirs-annonceur/69" rel="bookmark" title="Permanent Link: Affiliation : les devoirs de l&#8217;annonceur" >Affiliation : les devoirs de l&#8217;annonceur</a></span><div class="aizattos_related_posts_excerpt">
L'affiliation, le marketing à la performance, est un levier très important du chiffre d'affaires...</div></li><li><span class="aizattos_related_posts_title"><a href="http://www.seo-france.net/2009/google-histoire-vos-pages/119" rel="bookmark" title="Permanent Link: Google et l&#8217;histoire de vos pages" >Google et l&#8217;histoire de vos pages</a></span></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.seo-france.net/2009/detecter-langue-visiteur-php/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
