<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[L'Agora sur Chronica – Templates : Affecter un template différent pour chaque arbre]]></title>
	<link rel="self" href="https://agora.chauvigne.info/extern.php?action=feed&amp;tid=109&amp;type=atom" />
	<updated>2020-07-29T16:16:23Z</updated>
	<generator>PunBB</generator>
	<id>https://agora.chauvigne.info/viewtopic.php?id=109</id>
		<entry>
			<title type="html"><![CDATA[Re: Templates : Affecter un template différent pour chaque arbre]]></title>
			<link rel="alternate" href="https://agora.chauvigne.info/viewtopic.php?pid=461#p461" />
			<content type="html"><![CDATA[<p>Le Mod est écrit. Je le fignole...</p>]]></content>
			<author>
				<name><![CDATA[MichelKirsch]]></name>
				<uri>https://agora.chauvigne.info/profile.php?id=25</uri>
			</author>
			<updated>2020-07-29T16:16:23Z</updated>
			<id>https://agora.chauvigne.info/viewtopic.php?pid=461#p461</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Templates : Affecter un template différent pour chaque arbre]]></title>
			<link rel="alternate" href="https://agora.chauvigne.info/viewtopic.php?pid=440#p440" />
			<content type="html"><![CDATA[<p>Heu, je trouverais cela très intéressant si j&#039;avais plus d&#039;un arbre ...</p>]]></content>
			<author>
				<name><![CDATA[Katryne]]></name>
				<uri>https://agora.chauvigne.info/profile.php?id=2</uri>
			</author>
			<updated>2020-07-23T19:00:35Z</updated>
			<id>https://agora.chauvigne.info/viewtopic.php?pid=440#p440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Templates : Affecter un template différent pour chaque arbre]]></title>
			<link rel="alternate" href="https://agora.chauvigne.info/viewtopic.php?pid=438#p438" />
			<content type="html"><![CDATA[<p>Une petite solution que je viens de poster sur le groupe FB :</p><p>Mon template par défaut est le numéro 10.<br />Si la personne courante n&#039;appartient pas à mon arbre par défaut, le template est changé au vol...</p><p>Dans tng_begin.php, juste après la ligne :</p><p>&quot;include_once(&quot;begin.php&quot;);&quot;</p><p>Insérez ce bloc et adaptez-le à votre situation.</p><p>// Change template with tree<br />if ($tree == &quot;KC1&quot; OR $tree == &quot;&quot;) // this is the default template !<br />$templatenum = &quot;10&quot;;<br />else<br />$templatenum = &quot;13&quot;;<br />$templatepath = $templateswitching &amp;&amp; $templatenum ? &quot;templates/$templatepfx$templatenum/&quot; : &quot;&quot;;<br />// END change template with tree</p><br /><p>En ajustant le code, vous pourrez avoir 18 arbres avec 18 templates différents !<br />Si vous êtes intéressés, j&#039;en fais un Mod paramétrable...</p><p>Michel</p>]]></content>
			<author>
				<name><![CDATA[MichelKirsch]]></name>
				<uri>https://agora.chauvigne.info/profile.php?id=25</uri>
			</author>
			<updated>2020-07-23T18:48:21Z</updated>
			<id>https://agora.chauvigne.info/viewtopic.php?pid=438#p438</id>
		</entry>
</feed>
