<?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>Blog de Jean-Christophe Lavocat &#187; Informatique</title>
	<atom:link href="http://jice.lavocat.name/blog/category/informatique/feed/" rel="self" type="application/rss+xml" />
	<link>http://jice.lavocat.name/blog</link>
	<description>Mon Bioblog (humeurs, tendances et aventures en tout genres)</description>
	<lastBuildDate>Mon, 05 Dec 2011 20:51:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Implementing microdata schema.org in  Yootheme ZOO</title>
		<link>http://jice.lavocat.name/blog/2011/08/implementing-microdata-schema-org-in-yootheme-zoo/</link>
		<comments>http://jice.lavocat.name/blog/2011/08/implementing-microdata-schema-org-in-yootheme-zoo/#comments</comments>
		<pubDate>Wed, 03 Aug 2011 09:53:00 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Schema.org]]></category>
		<category><![CDATA[web sémantique]]></category>
		<category><![CDATA[YOOtheme]]></category>
		<category><![CDATA[Zoo]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1202</guid>
		<description><![CDATA[Recently, the three major search engins (Bing/Yahoo and Google) agreed on using the microdata system Schema.org. This allow any website to provide semantic information to the search spiders. For instance, you can specify what kind of content you are publishing, like a recipe of an apple pie, or a movie review. More than that, depending [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><a href="http://jice.lavocat.name/blog/wp-content/uploads/2011/08/schema-org-logo1.jpg"><img class="alignleft size-full wp-image-1211" style="margin: 0pt 10px;" title="schema-org-logo" src="http://jice.lavocat.name/blog/wp-content/uploads/2011/08/schema-org-logo1.jpg" alt="" width="128" height="80" /></a>Recently, the three major search engins (Bing/Yahoo and Google) agreed on using the<strong> microdata system</strong> <a href="http://schema.org/">Schema.org</a>. This allow any website to provide <strong>semantic information</strong> to the <strong>search spiders</strong>. For instance, you can specify<em> what kind of content you are publishing</em>, like a recipe of an apple pie, or a movie review. More than that, depending on the type, you can give the various important information directly to the search robot : what is the movie title, what is its director, or how long you should cook your pie. To find all the piece of information you can select, you should read : <a href="http://schema.org/">http://schema.org/</a></p>
<p style="text-align: justify;"><a href="http://jice.lavocat.name/blog/wp-content/uploads/2011/08/zoo.png"><img class="alignright size-full wp-image-1212" title="zoo" src="http://jice.lavocat.name/blog/wp-content/uploads/2011/08/zoo.png" alt="" width="150" height="120" /></a>As a Joomla fan, and <a href="http://www.yootheme.com/zoo/">Yootheme ZOO</a> frequent user, I had to implement this for my websites. I made a custom set of elements that allows me to provide schema.org names to my text fields. The change will add a new configuration field to your text / textarea / image inputs, and you will be able to add microdata properties to your object. This is very versatile and very easy to use.</p>
<p style="text-align: justify;">You can download it straith away, or read the 'readme' file below to get an idea of the product :</p>
<p style="text-align: justify;"><form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_blank'><p>
EUR 5.00 / Download<br />
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
</p><input type="hidden" name="cmd" value="_xclick" /><input type='hidden' name='business' value='jice@lavocat.name' /><input type='hidden' name='item_name' value='Implementing microdata schema.org in  Yootheme ZOO' /><input type='hidden' name='item_number' value='1202' /><input type='hidden' name='amount' value='5.00' /><input type="hidden" name="no_shipping" value="1" /><input type="hidden" name="no_note" value="1" /><input type='hidden' name='currency_code' value='EUR' /><input type='hidden' name='notify_url' value='http://jice.lavocat.name/blog/wp-content/plugins/easyfileshop/ipn.php' /></form></p>
<p style="text-align: justify;"><em>Tested only with <strong>Zoo 2.4 for Joomla 1.5</strong></em></p>
<p style="text-align: justify;"><em>You can try it for free if you have an existing working platform Joomla 1.6 with ZOO 2.4 installed. You should contact me directly and I'll send you the file. You'll tell me if some bugs are present, and you'll help the community.</em></p>
<p> </p>
<h2 style="text-align: left;">Read Me File</h2>
<p>** Schema.org implementation under Yootheme ZOO component **<br />Author : Jean-Christophe Lavocat<br />Email : jice@nauka-websites.com<br />Date : July 2011<br />*************************************************************</p>
<h2>Introduction</h2>
<p>Add a new option to the text and image fields of ZOO. This new option helps to give a context to the content types you create by using ZOO. For example : your create a recipe content type, it could give the following information : <a href="http://schema.org/Recipe">http://schema.org/Recipe</a>.</p>
<h2>Installation</h2>
<p>Browse your website installation, and go to the ZOO application that you want to update. The installation have to be done application by application. For instance, if you are using the application "Blog" got to : "joomlabase/media/zoo/applications/blog". You should unzip the folder "elements" there.</p>
<p>Go to your administration panel and check which template you are using for your content type. Remember this template name as "templatename". You should then go to "joomlabase/media/zoo/applications/blog/templates/templatename/" and unzip the folder "renderer" there.</p>
<p>The new architecture should add the following folders.</p>
<p>/applications/blog/<br /> elements/<br /> .../</p>
<p>/applications/blog/template/templatename/renderer/<br /> /element/<br /> ...</p>
<p>Finally, go to the view you want to include schema.org : probably it will be the "full" view. Go to "/joomlabase/media/zoo/applications/blog/templates/templatename/renderer/item" and open "full.php". You have to manually add the good schema type at the beginning of the file, and close it at the end. Suppose you are displaying a recipe, put the line :</p>
<pre>&lt;div itemscope itemtype="http://schema.org/Recipe"&gt;</pre>
<p>in the first html output (say, after the first "?&gt;"). Add a "&lt;/div&gt;" at the very end of this file :</p>
<pre>&lt;/div&gt;</pre>
<h2>Configuration</h2>
<p>Go to the setting of your content type in the administration panel. Edit the fields of the view you just modified. <br />You should now be able to :<br />1) give a schema.org label to all the text field<br />2) give a schema.org label to the main title, or specify if it is an author profile page.<br />3) add a default picture label to one of your picture<br />4) give the label "url" to the links</p>
<p> </p>
<p> </p>
<div id="attachment_1214" class="wp-caption alignright" style="width: 310px"><a href="http://jice.lavocat.name/blog/wp-content/uploads/2011/08/schemafield.png"><img class="size-medium wp-image-1214" title="schemafield" src="http://jice.lavocat.name/blog/wp-content/uploads/2011/08/schemafield-300x245.png" alt="" width="300" height="245" /></a><p class="wp-caption-text">A new &quot;Schema.org Label&quot; appears now, where you can specify your content</p></div>
<p> </p>
<h2>Verification</h2>
<p>To verify your item pages, copy paste their url to : <br />http://www.google.com/webmasters/tools/richsnippets</p>
<h2>Help / Troubleshootings / FAQ</h2>
<p>Any questions should be sent to jice@nauka-websites.com. You should specify in your email :<br />1) which version of ZOO you are using<br />2) the description of your problem<br />3) the URL where the error is visible</p>
<p> </p>
<p>The files are available to download on the following link :</p>
<p><form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_blank'><p>
EUR 5.00 / Download<br />
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
</p><input type="hidden" name="cmd" value="_xclick" /><input type='hidden' name='business' value='jice@lavocat.name' /><input type='hidden' name='item_name' value='Implementing microdata schema.org in  Yootheme ZOO' /><input type='hidden' name='item_number' value='1202' /><input type='hidden' name='amount' value='5.00' /><input type="hidden" name="no_shipping" value="1" /><input type="hidden" name="no_note" value="1" /><input type='hidden' name='currency_code' value='EUR' /><input type='hidden' name='notify_url' value='http://jice.lavocat.name/blog/wp-content/plugins/easyfileshop/ipn.php' /></form>
<p><em>Tested only with <strong>Zoo 2.4 for Joomla 1.5</strong></em></p>
<p><em>You  can try it for free if you have an existing working platform Joomla 1.6  with ZOO 2.4 installed. You should contact me directly and I'll send you  the file. You'll tell me if some bugs are present, and you'll help the  community.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2011/08/implementing-microdata-schema-org-in-yootheme-zoo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>YOOtheme Zoo - Integration of Google +1</title>
		<link>http://jice.lavocat.name/blog/2011/07/integration-of-google-1-in-yootheme-zoo/</link>
		<comments>http://jice.lavocat.name/blog/2011/07/integration-of-google-1-in-yootheme-zoo/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 17:11:55 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[YOOtheme]]></category>
		<category><![CDATA[Zoo]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1191</guid>
		<description><![CDATA[I wanted to add a google +1 button to my website. As I am using YOOtheme zoo CCK component, I add to create a new "element" to be print at the end of my blog post. You can download it bellow. Of course you can use it on any zoo applications (blogs, businesses, recipes ... [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float: left; margin-left: 20px; margin-right: 20px;" src="http://www.yootheme.com/images/stories/top/home/zoo.png" alt="" width="150" height="120" />I wanted to add a <a title="Google plus" href="http://www.google.com/webmasters/+1/button/" target="_blank">google +1 button</a> to my website. As I am using YOOtheme zoo CCK component, I add to create a new "element" to be print at the end of my blog post. You can download it bellow. Of course you can use it on any zoo applications (blogs, businesses, recipes ... and custom applications).</p>
<h3>How to install</h3>
<p>Download the archive : <a href="http://jice.lavocat.name/blog/wp-content/uploads/2011/07/zooelement_googleplus.zip">ZOOelement Googleplus</a></p>
<p>Then, unzip the files in your folder : <em>/base_installation_folder/media/zoo/elements. </em>You will see a new folder named "googleplus".</p>
<h3>How to setup</h3>
<p>You can configure all the options except the language. To change the language, you'll need to do it by yourself and modify your global template.</p>
<p>To add the google +1 button to a content, go to your zoo configuration panel, and select the application where you want this button to appear. Modify the elements appearing in this type of applications, and add the "Google +1". The configuration is pretty transparent.</p>
<h3>Note</h3>
<p>In the case you are using this button without printing the number of +1s, I took the privilege of adding a small modification to the code, to promote my websites. One out of 10 buttons will actually be +1ing one of my websites. If you want to remove it, it's up to you, but you could also considering it as a small reward for the time I spent on it for you.</p>
<h3>Questions</h3>
<p>Don't hesitate to post comment for precisions or bug corrections.</p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2011/07/integration-of-google-1-in-yootheme-zoo/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Yootheme Zoo – Modifying the Frontend submission editor</title>
		<link>http://jice.lavocat.name/blog/2011/03/yootheme-zoo-%e2%80%93-modifying-the-frontend-submission-editor/</link>
		<comments>http://jice.lavocat.name/blog/2011/03/yootheme-zoo-%e2%80%93-modifying-the-frontend-submission-editor/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 21:50:30 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Zoo]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1182</guid>
		<description><![CDATA[A quick note to let you know how I hacked Yootheme Zoo 2.3. I wanted to have a wysiwyg editor while my users were submitting article in frontend with ZOO. Usually you can activate the "trusted mode" to have this wysiwyg editor. But you will also have several other fields which are too much for [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.yootheme.com/images/stories/top/home/zoo.png" alt="" width="150" height="120" />A  quick note to let you know how I hacked Yootheme Zoo 2.3. I wanted to  have a wysiwyg editor while my users were submitting article in frontend with ZOO. Usually you can activate the "trusted mode" to have this wysiwyg editor. But you will also have several other fields which are too much for normal users. In order to have a wysiwyg editor, even in the non-trusted mode, here is the modification you should implement.</p>
<p> </p>
<p>Here is the trick. Activate the trusted mode, but then, made a code  modification to hide the "administration" panel in frontend. Here is the  code you have to change on<strong> line 40 </strong>in <strong><em>/joomla_base_dir</em>/components/com_zoo/partials/_submission.php</strong><strong><em> </em></strong></p>
<p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>partial<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'administration'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
</p>
<p>should be commented :</p>
<p><div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// echo $this-&amp;gt;partial('administration');</span></div></td></tr></tbody></table></div>
</p>
<p>[Edit] The old hack was the following<span style="text-decoration: line-through;"><br /></span></p>
<p><span style="text-decoration: line-through;">Here is the line you have to change on<strong> line 265 </strong>in <strong><em>/joomla_base_dir</em>/administrator/components/com_zoo/elements/textarea/textarea.php</strong><strong><em> </em></strong></span></p>
<p><span style="text-decoration: line-through;"></p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$trusted_mode</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></td></tr></tbody></table></div>
<p></span></p>
<p><span style="text-decoration: line-through;">should be transformed to</span></p>
<p><span style="text-decoration: line-through;"></p>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$trusted_mod</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span><span style="color: #000088;">$trusted_mode</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span></div></td></tr></tbody></table></div>
<p>Or some other modification on the "if" instruction.That's it, you are done with the hack.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2011/03/yootheme-zoo-%e2%80%93-modifying-the-frontend-submission-editor/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Yootheme Zoo - Modifying the number of articles on Frontpage</title>
		<link>http://jice.lavocat.name/blog/2011/01/yootheme-zoo-modifying-the-number-of-articles-on-frontpage/</link>
		<comments>http://jice.lavocat.name/blog/2011/01/yootheme-zoo-modifying-the-number-of-articles-on-frontpage/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 15:04:33 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Zoo]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1170</guid>
		<description><![CDATA[A quick note to let you know how I hacked Yootheme Zoo 2.3. I wanted to have a different numbers of articles on the frontpage, and in the classical category view.As I did not find an easy solution (a parameter should be added to the configuration for the front page), I decided to code it. [...]]]></description>
			<content:encoded><![CDATA[<p><img style="float: left; margin-left: 10px; margin-right: 10px;" src="http://www.yootheme.com/images/stories/top/home/zoo.png" alt="" width="150" height="120" />A quick note to let you know how I hacked Yootheme Zoo 2.3. I wanted to have a different numbers of articles on the frontpage, and in the classical category view.As I did not find an easy solution (a parameter should be added to the configuration for the front page), I decided to code it.</p>
</p>
<p>Here is the line you have to change on<strong> line 232</strong> in <strong><em>/joomla_base_dir/components/com_zoo/controllers/default.php</em></strong></p>
<pre>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// get item pagination </span><br />
<span style="color: #000088;">$items_per_page</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$params</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'config.items_per_page'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">15</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
</pre>
<p>should be transformed to</p>
<pre>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">// get item pagination</span><br />
<span style="color: #000088;">$items_per_page</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$category_id</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span> ? <span style="color: #cc66cc;">3</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$params</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'config.items_per_page'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">15</span><span style="color: #009900;">&#41;</span></div></td></tr></tbody></table></div>
</pre>
<h2>Advanced hack</h2>
<p>If you want you can add a new parameter in the configuration to be able to change that number in backend. Here is the code :</p>
<p>In the file<em><strong> joomla_base_dir/media/zoo/applications/blog/application.xml</strong></em> add the following new line at <strong>line 22 </strong>:</p>
<pre>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&lt;</span>param name<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;items_per_frontpage&quot;</span> type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text&quot;</span> size<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;3&quot;</span> <span style="color: #b1b100;">default</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;15&quot;</span> label<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Items Per Frontpage&quot;</span> description<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Number of items to show on a frontpage&quot;</span><span style="color: #339933;">&gt;</span></div></td></tr></tbody></table></div>
</pre>
<p>Modify on<strong> line 232</strong> in <strong><em>/joomla_base_dir/components/com_zoo/controllers/default.php</em></strong> , it should now read :</p>
<pre>
<div class="codecolorer-container php mac-classic" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$items_per_page</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$category_id</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">0</span> ? <span style="color: #000088;">$params</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'config.items_per_frontpage'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$params</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'config.items_per_page'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">15</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2011/01/yootheme-zoo-modifying-the-number-of-articles-on-frontpage/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>La pub tuera-t-elle les spammeurs?</title>
		<link>http://jice.lavocat.name/blog/2010/11/la-pub-tuera-t-elle-les-spammeurs/</link>
		<comments>http://jice.lavocat.name/blog/2010/11/la-pub-tuera-t-elle-les-spammeurs/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 09:25:58 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[pub]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1125</guid>
		<description><![CDATA[Ils l'ont trouvée la solution qui viendra peut être à bout des script kiddies spammeurs, ceux qui utilisent par exemple XRummer (logiciel qui permet l'envoi automatique de commentaires/messages forum avec des liens spammy). Mais de quoi s'agit-il? NuCaptcha est une société basée à Vancouver qui propose une solution plutôt élégante de captcha (enfin, tout est [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Ils l'ont trouvée la solution qui viendra peut être à bout des <span style="text-decoration: line-through;">script kiddies</span> spammeurs, ceux qui utilisent par exemple XRummer (logiciel qui permet l'envoi automatique de commentaires/messages forum avec des liens spammy). Mais de quoi s'agit-il?</p>
<p style="text-align: justify;"><a title="NuCaptcha" href="http://www.nucaptcha.com" target="_blank">NuCaptcha</a> est une société basée à Vancouver qui propose une solution plutôt élégante de <strong>captcha </strong>(enfin, tout est relatif, moi je préférerais voir des animaux qui gambadent dans la forêt au printemps). En effet, au lieu de vous afficher des lettres tordues à déchiffrer ou un calcul à résoudre, il s'agit là de <strong>regarder un petit spot vidéo</strong> dans lequel un <strong>message publicitaire</strong> passe. Votre mission? Lire le texte et extraire certaines lettres (en rouge par exemple). Exemple ci-dessous :</p>
<p style="text-align: center;"> </p>
<p style="text-align: center;"><img title="Pub Nucaptcha" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/11/pub_nucaptcha-300x248.png" alt="Pub Nucaptcha" width="300" height="248" /></p>
<p style="text-align: justify;">Voilà, à présent le captcha entre encore plus dans le monde de la surconsommation. On avait déjà vu celui de <a title="ReCaptcha" href="http://www.google.com/recaptcha" target="_blank">recaptcha</a>, de google, qui lui permettait de <strong>digitaliser ses livres</strong> avec plus de précision. Là on passe au niveau supérieur.</p>
<p style="text-align: justify;">Qu'en pensez-vous?</p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2010/11/la-pub-tuera-t-elle-les-spammeurs/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>A script to plot GWL File (for the use of Nanoscribe)</title>
		<link>http://jice.lavocat.name/blog/2010/11/a-script-to-plot-gwl-file-for-the-use-of-nanoscribe/</link>
		<comments>http://jice.lavocat.name/blog/2010/11/a-script-to-plot-gwl-file-for-the-use-of-nanoscribe/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 09:54:14 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Sciences]]></category>
		<category><![CDATA[nanoscribe]]></category>
		<category><![CDATA[nanotechnology]]></category>
		<category><![CDATA[physics]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1115</guid>
		<description><![CDATA[The focus of this article is really small. It will only interest people involved in Research, who own a Nanoscribe device. I was a little bit annoyed by the software, very heavy, and running only on windows. I wanted to design my structures on Linux (or any plateform actually), and I wanted to plot the [...]]]></description>
			<content:encoded><![CDATA[<p><img src="file:///tmp/moz-screenshot.png" alt="" /><img class="alignleft size-full wp-image-1121" style="margin-left: 10px; margin-right: 10px;" title="describe - nanoscribe language GWL" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/11/describe1.png" alt="describe - nanoscribe language GWL" width="106" height="105" />The focus of this article is really small. It will only interest people involved in Research, who own a <a title="Nanoscribe" href="http://www.nanoscribe.de/" target="_blank">Nanoscribe</a> device.</p>
<p>I was a little bit annoyed by the software, very heavy, and running only on windows. I wanted to design my structures on Linux (or any plateform actually), and I wanted to plot the result with a light software.</p>
<p>I programmed a small script in Python to plot <strong>2D structures written in gwl</strong>. In order to run it, ou need to have Python 2.6, Matplotlib and SciPy (in order to have Numpy functions). You also have to use the preamble module I use and which is also included in the archive.</p>
<p>To use it, put the module, the script and the GWL file in the same folder. Then modify the script and include the name of your gwl file. Finally, open a consol, and type :</p>
<pre>python plot_gwl.py</pre>
<p>You can modify and improve this small script, and I would be happy to see the modifications (probably 3D would be a good step forward).</p>
<p>Download the archive : <a href="http://jice.lavocat.name/blog/wp-content/uploads/2010/11/Plot_GWL.1.0.zip">Plot_GWL.1.0.zip</a> (contains the script to plot and the module)</p>
<p> </p>
<p><em>Edit</em> 22 Nov. 2010 : I implemented the <strong>3D visualization</strong> . The same command is required to use it (modify line 26  <em>"open('your_filename.gwl','r')"</em> ) . Comments have been added to help you understading the script. A future addition will take in account an input parameter (instead of modifing the script every time to tell it which file to plot).</p>
<p>Download the new archive : <a href="http://jice.lavocat.name/blog/wp-content/uploads/2010/11/Plot_GWL.1.1.zip">Plot_GWL.1.1.zip</a></p>
<p>Example of a 3D plot :</p>
<p style="text-align: center;"><a href="http://jice.lavocat.name/blog/wp-content/uploads/2010/11/tour_eiffel.png"><img title="tour_eiffel" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/11/tour_eiffel-300x222.png" alt="Tour Eiffel with Nanoscribe" width="300" height="222" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2010/11/a-script-to-plot-gwl-file-for-the-use-of-nanoscribe/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nohup, Comsol and Matlab</title>
		<link>http://jice.lavocat.name/blog/2010/06/nohup-comsol-and-matlab/</link>
		<comments>http://jice.lavocat.name/blog/2010/06/nohup-comsol-and-matlab/#comments</comments>
		<pubDate>Mon, 07 Jun 2010 14:53:21 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[Comsol]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[nohup]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1081</guid>
		<description><![CDATA[When you want to use a Matlab script to perform simulations with Comsol,  a remote server is often used. This post is a quick note to help you creating matlab scripts that would be run on a remote server. The strategy is the following. We will use the nohup command to let the server do [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">When you want to use a <strong>Matlab </strong>script to perform simulations with <strong>Comsol</strong>,  a remote server is often used. This post is a quick note to help you creating matlab scripts that would be run on a remote server.</p>
<p style="text-align: justify;">The strategy is the following. We will use the <em>nohup </em>command to let the server do the simulations while we will turn off our computer. Without the nohup, turning off your computer would result in breaking the <strong>ssh connexion</strong>, and thus, the matlab/comsol processes that were running. Another solution could have been the use of the command <em>screen</em>.</p>
<p style="text-align: justify;">First you have to be sure that you Matlab script won't output graphical windows which would need X to be printed. If such windows appear during your calculation, then the script would have to stop. In order to prevent java windows to be created, add this at the beginning of your Matlab script :</p>
<ul>
<li>flreport('off')</li>
</ul>
<p>Second, you have to force your script to close the matlab process after the simulation. So you have to add this at the end of your script :</p>
<ul>
<li>exit</li>
</ul>
<p>Now, you just have to create a directory for your simulation of the day, upload all your script's files, and launch the following command via a terminal when you'll be located in your simulation's folder :</p>
<ul>
<li>nohup comsol matlab -ml -nodesktop -ml -nosplash -mlr "Script_matlab" &amp;</li>
</ul>
<p> </p>
<p><strong><span style="text-decoration: underline;">Note</span> </strong>: here we assumed that the script was called <em>Script_matlab.m</em>. Be carefull, and don't forget to remove the extension ".m" when you use nohup.</p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2010/06/nohup-comsol-and-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to get the electromagnetic scattered far field using Comsol RF Module</title>
		<link>http://jice.lavocat.name/blog/2010/04/how-to-get-the-electromagnetic-scattered-far-field-using-comsol-rf-module/</link>
		<comments>http://jice.lavocat.name/blog/2010/04/how-to-get-the-electromagnetic-scattered-far-field-using-comsol-rf-module/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 10:06:53 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[Sciences]]></category>
		<category><![CDATA[Scientific Computations]]></category>
		<category><![CDATA[Comsol]]></category>
		<category><![CDATA[Electromagnetism]]></category>
		<category><![CDATA[Scattered Field]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1045</guid>
		<description><![CDATA[If you use Comsol Multiphysics - RF Module, you may have noticed that there is a far field option when you edit any Boundary settings. This feature will allow you to compute the scattered far field of an object using some tricks. Initial Setting : Simple simulation using Comsol This tutorial will allow you to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">If you use Comsol Multiphysics - RF Module, you may have noticed that there is a far field option when you edit any Boundary settings. This feature will allow you to compute the <strong>scattered far field</strong> of an object using some tricks.</p>
<h2 style="text-align: justify;">Initial Setting : Simple simulation using Comsol</h2>
<p style="text-align: justify;">This tutorial will allow you to compute the scattered field of an ideal magnetic conducting circle in 2D. First, let's design a square with PML around to absorb the outgoing light. Create a problem using <strong>Plane TM waves</strong> (we will change this latter to scattered TM waves, but the tutorial was made for an initial TM problem, and not for Scattered TM). We will assume you know how to use Comsol as a beginner user, so you know how to design the following structure :</p>
<ul>
<li>a square centered in (0,0), of length 0.2</li>
<li>4 additional rectangular borders to this square, of thickness 0.02</li>
<li>a centered circle of radius 0.01</li>
<li>a centered circle of radius 0.8</li>
</ul>
<p> </p>
<p> </p>
<p> </p>
<p><div id="attachment_1053" class="wp-caption aligncenter" style="width: 310px"><a href="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/setting_base.png"><img class="size-medium wp-image-1053" title="setting_base" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/setting_base-300x220.png" alt="" width="300" height="220" /></a><p class="wp-caption-text">Basic Setting</p></div>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;">Now you should modify the design a little bit in terms of properties. First, select the big circle, and transform it to a curve ("Coerce to curve"). You should also remove the small circle from the main substrate to latter change its properties. In order to do that, select the small circle and the main square, and click on "difference". Then, add some cartesian PML to the 4 rectangles : <strong>Physics </strong>&gt; <strong>Subdomain settings</strong> &gt; <em>select the areas</em> &gt; <strong>PML</strong> &gt;<strong><em> </em>Cartesian</strong> <em>&gt;  Try to figure out which PML you need to inser</em> (left/righ absorb along <strong>x</strong>, top and bottom along <strong>y</strong>, corners along <strong>x</strong> and <strong>y</strong> directions)).</p>
<p style="text-align: justify;">The following image shows the resulting construction. In order to highlight the construction I changed my <strong>Options </strong>&gt; <strong>Preferences </strong>&gt; <strong>Visualization</strong>, and checked the "Render Face" button.</p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p><div id="attachment_1055" class="wp-caption aligncenter" style="width: 310px"><a href="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/Setting_normal.png"><img class="size-medium wp-image-1055" title="Setting_normal" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/Setting_normal-300x220.png" alt="" width="300" height="220" /></a><p class="wp-caption-text">Normal Setting</p></div>
<p> </p>
<h2>Collecting the Far-Field</h2>
<p style="text-align: justify;">In order to collect the far field using Comsol Multiphysics, you need to change some "Physics" values. First, let's explain what will be our simulation case. A plane wave will come from the inner-left boundary of the small square. We will use TM waves, with Hz=1 A (magnetic field) emerging from this inner boundary. So the source is located on <strong>x=-0.1</strong>. We thus need to indicate this to comsol. Go to <strong>Physics </strong>&gt; <strong>Scalar variables</strong> &gt; <em>Change the value of </em><strong>H0iz_rfwh</strong><em> to</em> <strong>exp(-j*k0_rfwh*(x+0.1)).</strong></p>
<p style="text-align: justify;">Now we need to indicate Comsol that we want to integrate the far field on the big circle we draw during the first step. Modify the <strong>Boundary settings</strong> to add a far fiel value, called <strong>Efar</strong> on the curves representing the circle.</p>
<p style="text-align: justify;"> </p>
<p> </p>
<p> </p>
<p><div id="attachment_1057" class="wp-caption aligncenter" style="width: 310px"><a href="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/Efar.png"><img class="size-medium wp-image-1057" title="Efar" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/Efar-300x220.png" alt="" width="300" height="220" /></a><p class="wp-caption-text">Efar is defined on the big circle</p></div>
<p style="text-align: justify;">Note that you just need to write the name of the variable <strong>Efar</strong>, and comsol will automatically create resulting variables.</p>
<p style="text-align: justify;">Next you need to inser a relation to get <strong>Hfar</strong> from <strong>Efar. </strong>Indeed, we are looking at the magnetic field, Hz, and not at Ez. Go to <strong>Options</strong> &gt; <strong>Expressions &gt; Global Expressions.</strong> Add the following expressions :</p>
<ul>
<li>r : sqrt(x^2+y^2)</li>
<li>Hfar : (x/r*Efary-y/r*Efarx)*sqrt(epsilon0_rfwh/mu0_rfwh)</li>
</ul>
<p>Now you are almost done. To get a better scattered result, you need to change the way comsol solve the problem. go to <strong>Physics &gt; Properties &gt; </strong>change <strong>Field type</strong> to <strong>Scattered TM.</strong></p>
<p>You can finally start the solving process.</p>
<h2>Visualizing the scattered far-field</h2>
<p style="text-align: justify;">You can now visualize the scattered field in the <strong>Plot paramaters</strong> &gt; <strong>Surface </strong>section (Scattered Magnetic Field, z component). Nevertheless, the great feature is that you can now plot an angular far field plot using matlab.</p>
<p style="text-align: justify;">First, in Comsol, <strong>Postprocessing</strong> &gt; <strong>Domain Plot Parameters</strong> &gt; <strong>Line/ Extrusion</strong> &gt; <em>select the big circle's curves</em>. In the <strong>y-axis data</strong>, change the expression to <strong>abs(Hfar)</strong>. In the <strong>x-axis data</strong>, select "<strong>Expression" </strong>and inser the following expression "<strong>atan2(y,x)</strong>". It is used to display the data along the circle, using an angular representation. Clik <strong>Ok</strong>, you should get something similar to the following.</p>
<p> </p>
<p> </p>
<p><div id="attachment_1061" class="wp-caption aligncenter" style="width: 310px"><a href="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/Hfar_Comsol1.png"><img class="size-medium wp-image-1062" title="Hfar_Comsol" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/Hfar_Comsol1-300x261.png" alt="" width="300" height="261" /></a><p class="wp-caption-text">Hfar using comsol</p></div>
<p style="text-align: justify;">In order to visualize this with Matlab, click on th <strong>ASCII</strong> button, and save the plot data on your computer. Let's call it <em>scat_circ.txt</em>. Open Matlab. Import this data : <strong>File &gt; Import Data &gt; </strong><em>select scat_circ.txt (then </em><strong>Next </strong><em>, then </em><strong>Finish</strong><em>).</em></p>
<p style="text-align: justify;">Now, just use the following command lines :<em> </em></p>
<ul>
<li>scat_data=sortrows(scatt_circ); </li>
<li>rho=scat_data(:,2); </li>
<li>theta=scat_data(:,1); </li>
<li>polar(theta,abs(rho))</li>
</ul>
<p>You should get the resulting :</p>
<p style="text-align: justify;"><em><div id="attachment_1064" class="wp-caption aligncenter" style="width: 310px"><em><a href="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/Hafr_Matlab.png"><img class="size-medium wp-image-1064" title="Hafr_Matlab" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/04/Hafr_Matlab-300x219.png" alt="" width="300" height="219" /></a></em><p class="wp-caption-text">Hfar of a scattering circle using Matlab</p></div></em></p>
<p style="text-align: justify;"> </p>
<p style="text-align: justify;"><em>To follow</em> : You can also compared the resulting field with a theoretical diffracted circle. In the following article, I will explain how to compute the scattered field of a circle theoretically.</p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2010/04/how-to-get-the-electromagnetic-scattered-far-field-using-comsol-rf-module/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installation d&#039;un Drupal multi-site</title>
		<link>http://jice.lavocat.name/blog/2010/03/installation-dun-drupal-multi-site/</link>
		<comments>http://jice.lavocat.name/blog/2010/03/installation-dun-drupal-multi-site/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 08:48:16 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Installation]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1027</guid>
		<description><![CDATA[Petit article très rapide pour présenter la procédure d'installation d'un Drupal multi-sites sur un serveur tout bête ( le plus petit mutualisé peut servir). Le but d'un multi-sites est d'avoir un seul répertoire contenant le code de base, et plusieurs répertoires de petite taille comportant les éléments particuliers à chaque sites. Ce procédé est intéressant [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><img class="alignleft" style="margin-left: 20px; margin-right: 20px;" title="Drupal - CMS" src="http://digital.edipresse.com/wp-content/uploads/2009/08/drupal1.gif" alt="Drupal - CMS" width="250" height="250" />Petit article très rapide pour présenter la procédure d'installation d'un <a title="Drupal - CMS" href="http://drupal.org/" target="_blank">Drupal</a> multi-sites sur un serveur tout bête ( le plus petit mutualisé peut servir).</p>
<p style="text-align: justify;">Le but d'un multi-sites est d'avoir un seul répertoire contenant le code de base, et plusieurs répertoires de petite taille comportant les éléments particuliers à chaque sites. Ce procédé est intéressant si vous construisez souvent vos sites à partir d'un même système de modules (exemple la même galerie, le même composant de forum, etc.). Les avantages concernent la mise à jour qui devient centralisée et plus rapide par conséquent.</p>
<h2 style="text-align: justify;">Le principe</h2>
<p style="text-align: justify;">Imaginons que votre répertoire de base est <em>/www</em>. Tout d'abord, il est nécessaire de créer un répertoire /<em>www/drupal</em> qui contiendra les fichiers d'installation de base (dézipper le contenu du fichier téléchargés sur le site de Drupal).</p>
<p style="text-align: justify;">Imaginons que vous ayez à créer deux sites web : <em>site1.com</em> et <em>site2.com</em>. Avant de continuer la configuration, ilfaut rediriger vos noms de domaine vers deux dossiers spécifiques à ces sites. Par exemple, <em>/www/site1</em> et <em>/www/site2</em> Ensuite, pour chacun d'eux, il est besoin de créer un lien symbolique vers le répertoire drupal de base. Ainsi, nous allons d'abord supprimer les dossiers crées plus haut, puis les envoyer symboliquement vers notre répertoire de base.</p>
<pre style="text-align: justify;">rmdir /www/site1</pre>
<pre style="text-align: justify;">ln -s /www/drupal /www/site1</pre>
<p style="text-align: justify;">A présent, il faut créer un répertoire dédié à chaque site dans votre installation de drupal. Le moteur de Drupal est assez fort techniquement, et se base sur le nom de votre dossier pour comprendre quel URL appelle quel dossier. Créez donc les dossiers <em>/www/drupal/sites/site1.com</em> et <em>/www/drupal/sites/site2.com</em>. Copiez, dans chacun de ces répertoires le fichier <em>/www/drupal/sites/all/settings.php</em>, et renseignez-y les informations concernant votre base de données.</p>
<p style="text-align: justify;">La lecture du fichier settings.php vous apprendra qu'il est possible de partager des informations entre les différents sites. Vous pouvez par exemple avoir la même base concernant les users, ce qui permettra à vos utilisateurs de ne s'inscire qu'à un seul de vos sites!</p>
<p style="text-align: justify;">Après cela, il faut simplement se connecter à votre site1.com, et le script d'installation se chargera du reste de l'installation.</p>
<h2 style="text-align: justify;">La suite</h2>
<p style="text-align: justify;">A présent, voilà comment fonctionne Drupal. Les thèmes et modules à gérer en commun sont à placer dans <em>/www/drupal/sites/all</em> , et les thèmes ou modules dédiés sont à placer dans <em>/www/drupal/sites/site1.com</em> (pour le <em>site1.com</em> par exemple).</p>
<p style="text-align: justify;">Afin de bien démarrer sous Drupal, je vous propose de lire l'article suivant, qui vous donne 11 steps indispensable après une installation de Drupal : <a title="11 m ost important things after a drupal installation" href="http://timonweb.com/the-11-most-important-things-to-do-after-you-install-drupal" target="_blank">http://timonweb.com/the-11-most-important-things-to-do-after-you-install-drupal</a> . Il recense juste des modules assez indispensables. A vous de les placer dans <em>/www/drupal/sites/all</em>, mais de ne les activer sur vos sites que lorsque vous en sentez l'utilité. C'est en anglais, mais vous pouvez le traduire avec google translate si vous n'êtes pas anglophone.</p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2010/03/installation-dun-drupal-multi-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How-to : Make a SEF image-map navigation system with Joomla</title>
		<link>http://jice.lavocat.name/blog/2010/02/how-to-make-a-sef-image-map-navigation-system-with-joomla/</link>
		<comments>http://jice.lavocat.name/blog/2010/02/how-to-make-a-sef-image-map-navigation-system-with-joomla/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 10:41:52 +0000</pubDate>
		<dc:creator>Jice</dc:creator>
				<category><![CDATA[Informatique]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[breadcrumb]]></category>
		<category><![CDATA[image map]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[LinkR]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[SEF]]></category>

		<guid isPermaLink="false">http://jice.lavocat.name/blog/?p=1014</guid>
		<description><![CDATA[You always wondered how to create a navigation system with an image? Nothing could be easier; just use the image map property of html. But, obviously, it gets a little bit trickier when you have to add several links to an image. Moreovre, people are nowadays using a lot of  Content Management Systems (CMS) to [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You always wondered how to create a navigation system with an image? Nothing could be easier; just use the <a title="Image Map" href="http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.6" target="_blank">image map property</a> of html.</p>
<p style="text-align: justify;">But, obviously, it gets a little bit trickier when you have to add several links to an image. Moreovre, people are nowadays using a lot of  Content Management Systems (CMS) to help in developping websites. I personnaly use <a title="Joomla - CMS" href="http://www.joomla.org/" target="_blank">Joomla</a> a lot, and this article will explain how to add an efficient Search Engine Friendly (SEF) Image Map navigation system for Joomla.</p>
<p style="text-align: justify;"><span id="more-1014"></span></p>
<h2 style="text-align: justify;">Creation of Image Map</h2>
<p>In order to easily create image maps with Joomla, I installed a plugin for TinyMCE. You can find it on it's <a title="Image Map" href="http://code.google.com/p/imgmap/" target="_blank">google project's page</a> a version for :</p>
<ul>
<li><a title="Plugin Image Map for Tiny MCE" href="http://code.google.com/p/imgmap/wiki/Joomla_setup" target="_blank">Tiny MCE</a></li>
<li><a title="Plugin Image Map for FCK" href="http://code.google.com/p/imgmap/wiki/FCKEditor_setup" target="_blank">FCK</a></li>
</ul>
<p>In order to use it, just follow their instructions for installation, and, when you edit an image, click on the new button that has been created. It will open the imagemap plugin.</p>
<h2>Creation of a menu system</h2>
<p style="text-align: justify;"><img class="alignleft size-full wp-image-1023" style="margin: 0px 20px;" title="content-management-system-joomla-free" src="http://jice.lavocat.name/blog/wp-content/uploads/2010/02/content-management-system-joomla-free.png" alt="Joomla Menu System" width="185" height="171" />In order to have a coherent navigation system with Joomla, I mean, to have a coherent SEF strategy, you have to create a unique link for each page.  In order to have a unique link for your content, the only solution is to use Joomla's menu system. If you need to create two links for the same item, use an "<strong>alias</strong>" for the second one, in order to <strong>prevent duplicate URLs</strong>.</p>
<p style="text-align: justify;">You could have avoided this menu creation if you don't care about Search Engine Optimization (SEO), but my recommandation would be to follow the following steps.</p>
<p style="text-align: justify;">This trick (of always using Joomla's menu system) will allow you to publish <strong>coherent and working breadcrumbs</strong>. You won't have the famous <a title="Joomla Breadcrumbs and Categories" href="http://forum.joomla.org/viewtopic.php?f=47&amp;t=372518" target="_blank">menu vs category dilemma</a>.</p>
<h2 style="text-align: justify;">Creation of links from article to Joomla content</h2>
<p>The creation of SEF links with google when the SEF option is activited is not always obvious. The first trick that came in mind is to use the research tool, or to copy a link from a menu. But these options fails if our navigation system is an image and not a menu. If you unpublish the menu, the link won't appear. If you change an alias for a menu-item you will loose the link you put in your article.</p>
<p>The only solution is to put a link which is not SEF. So you could unable the SEF option, copy/paste a link and activate the SEF option again. But it's quite annoying for a hundreds of links isn't it? So, we will use a famous plugin for that. This plugin allow you to create a link to articles in your Joomla! site when you are creating content. This plugin is called <a title="LinkR" href="http://extensions.joomla.org/extensions/structure-a-navigation/site-links/4010" target="_blank">LinkR</a>.</p>
<p>To use it : after the installation, when editing your article, you'll see a new button bellow your article (<a title="Demo of LinkR" href="http://j.l33p.com/linkr/demo" target="_blank">click for a demo</a>).</p>
<p><span style="text-decoration: underline;"><strong>IMPORTANT :</strong></span> In order to use the trick of "menu system", when you create a link with LinkR, don't select an artcile (by clicking on "Article") , but instead, the menu item you created (by clicking on "Menu"), and which is linked to the article.</p>
<h2>Make everything working smoothly</h2>
<p style="text-align: justify;">So, you have everything installed and tested? Right, let's go for the creation process!</p>
<ul>
<li>First, create your page with the image which will be your navigation system. Make a link from the menu, in order for it to be accessible.</li>
<li>Second, create your content, and for each page, a link from the menu. It could be an hidden menu, so your visitors will only see the navigation image (in my case I put everything on the main menu, but the template doesn't show more than one sub-menu hierarchy). But, when you create your content, <strong>be careful </strong>and use the "child property", to get SEF URLs like "<em>http://www.mysite.com/parent-menu/parent2/item</em>".</li>
<li>Third, come back to your article with the image, and create (temporary) text links to your content, by using LinkR, and pointing to the menu items, and not the article items. Copy the URL that has been created. It should look like :<em> index.php?option=com_content&amp;view=article&amp;id=23&amp;Itemid=30 </em>and nothing else.</li>
<li>Edit your image, create your links map, and for the link, use the URL you just copied from the (temporary) text links.</li>
<li>Finally you can choose to keep the text links or to remove it. I choosed to keep them to help my visitors who can't see images. And it's a safety measure in the case your image won't show up.</li>
</ul>
<h2>Enjoy</h2>
<p>It's done. You can check that your image maps to SEF Url, that the links are going to your articles (specified by the menu), and that, if you change the menu link alias, the URL of your article will change coherently.</p>
<p>Moreover you can use breadcrumbs  <img src='http://jice.lavocat.name/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /> </p>
<p style="text-align: center;"><strong>A demo on one of my website : <a title="Liste de spots en Corse : Corsica Windsurf" href="http://www.corsica-windsurf.com/fr/windsurf/spots-corse" target="_blank">http://www.corsica-windsurf.com/fr/windsurf/spots-corse</a></strong></p>
<p>Don't hesitate to comment to ask precisions.</p>
<p>In addition you can use a very powerful extension, but probably not easy to use for a large amount of links : <a title="HTMLMap Manager" href="http://extensions.joomla.org/extensions/style-a-design/design/7332" target="_blank">HTMLMap manager</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jice.lavocat.name/blog/2010/02/how-to-make-a-sef-image-map-navigation-system-with-joomla/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

