<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : help with cotemplate</title>
		<link>https://www.cotonti.com</link>
		<description>Laatste forum onderwerpen</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Thu, 30 Apr 2026 00:05:14 -0000</pubDate>

		<item>
			<title>pieter</title>
			<description><![CDATA[<p>
	<a href="https://github.com/Cotonti/Cotonti/issues/791" rel="nofollow">https://github.com/Cotonti/Cotonti/issues/791</a></p>
]]></description>
			<pubDate>Ma, 02 Jan 2012 16:39:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32389]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	Hmmm.. I looked in the Genoa list..   (thats why i didnt see it)<br /><br />
	Could this bug also be fixed in Genoa please...</p>
]]></description>
			<pubDate>Ma, 02 Jan 2012 15:39:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32388]]></link>
		</item>
		<item>
			<title>Twiebie</title>
			<description><![CDATA[<p>
	<a href="https://github.com/Cotonti/Cotonti/issues/787" rel="nofollow">https://github.com/Cotonti/Cotonti/issues/787</a></p>
]]></description>
			<pubDate>Za, 31 Dec 2011 15:34:31 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32371]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	Is it in the Buglist allready... so that it get fixed ?</p>
]]></description>
			<pubDate>Za, 31 Dec 2011 14:41:36 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32370]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	I confirm this is a CoTemplate bug. If you try</p>
<pre class="brush:xml;">
&lt;!-- IF {MINIDIR_USERNAME} != "" --&gt;
    &lt;div id="mb_admin_user"&gt;
        {PHP.L.Username} : &lt;b&gt;{MINIDIR_USERNAME}&lt;/b&gt;
    &lt;/div&gt;
&lt;!-- ENDIF --&gt;</pre>
<p>
	this works but if you put there AND condition, then != stops working.</p>
]]></description>
			<pubDate>Vr, 30 Dec 2011 10:08:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32353]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	Sorry Gert, in this case NULL had nothing to do with it.</p>
<p>
	Look at example (post: 2011-12-29 19:09) there is clearly a string.</p>
<p>
	I still think that this is weird logic, and should be looked at... we should be able to test empty strings with a  [ != "" ] statement</p>
]]></description>
			<pubDate>Vr, 30 Dec 2011 08:33:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32351]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	Maybe the username was never an empty string, but NULL ?</p>
<p>
	I try to use PHP <a href="http://www.php.net/manual/en/language.types.type-juggling.php" rel="nofollow">Type Juggling</a> when it makes things more simple. This is one such scenario, in this case it's <a href="http://www.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting" rel="nofollow">converting to boolean</a>.</p>
]]></description>
			<pubDate>Thu, 29 Dec 2011 20:33:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32341]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	And the winner of today is Gert</p>
<pre class="brush:xml;">
			&lt;!-- IF {MINIDIR_SHOWUSERNAME} == "1" AND {MINIDIR_USERNAME} --&gt;
				&lt;div id="mb_admin_user"&gt;
					{PHP.L.Username} : &lt;b&gt;{MINIDIR_USERNAME}&lt;/b&gt;
				&lt;/div&gt;
			&lt;!-- ENDIF --&gt;

</pre>
<p>
	STILL i find it very strange to not be able to do != ""</p>
<p>
	Thanks for the many responses... it was for Myfiles by the way <img alt="smiley" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/regular_smile.gif" title="smiley" width="20" /></p>
<p>
	<br />
	ALSO this situation should be documented !!!!!</p>
]]></description>
			<pubDate>Thu, 29 Dec 2011 20:10:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32338]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[<p>
	Try this: </p>
<pre class="brush:xml;">
&lt;!-- IF {MINIDIR_SHOWUSERNAME} AND {MINIDIR_USERNAME} --&gt;</pre>
]]></description>
			<pubDate>Thu, 29 Dec 2011 19:43:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32336]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	@Pieter: I looked inside Cotemplate code... and NO its "AND"</p>
<p>
	To prove my point !!!</p>
<p>
	<br />
	 <img alt="myfiles5_494.png" src="https://www.cotonti.com/datas/users/myfiles5_494.png" /></p>
<p>
	With the existing template:</p>
<pre class="brush:xml;">
			&lt;div id="mb_foldererror" style="display:none; padding:10px; margin:10px 0; color:red; border:red solid 1px"&gt;&lt;/div&gt;
			--{MINIDIR_SHOWUSERNAME}-- ||{MINIDIR_USERNAME}||
			&lt;!-- IF ({MINIDIR_SHOWUSERNAME} == "1" AND {MINIDIR_USERNAME} != "") --&gt;
				&lt;div id="mb_admin_user"&gt;
					{PHP.L.Username} : &lt;b&gt;{MINIDIR_USERNAME}&lt;/b&gt;
				&lt;/div&gt;
			&lt;!-- ENDIF --&gt;
</pre>
<p>
	I hate buggy crap shit... you see in example above that the labels produce a 1 and a name.. still my div does not get printed.. (The check labels go fine).</p>
<p>
	ALSO spaces between the elements do make a difference... thats shit to :(  (NOT happy)</p>
<p>
	 </p>
]]></description>
			<pubDate>Thu, 29 Dec 2011 19:09:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32333]]></link>
		</item>
		<item>
			<title>pieter</title>
			<description><![CDATA[<p>
	If you try only one variable and lateron  the other one. At that moment you are sure the vars are OK.</p>
<p>
	Is AND not &amp;&amp;?</p>
]]></description>
			<pubDate>Thu, 29 Dec 2011 18:01:41 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32330]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	Sorry, it didn't work... :(</p>
<pre class="brush:xml;">
			&lt;!-- IF {MINIDIR_SHOWUSERNAME} == "1" AND {MINIDIR_USERNAME} != "" --&gt;
				&lt;div id="mb_admin_user"&gt;
					{PHP.L.Username} : &lt;b&gt;{MINIDIR_USERNAME}&lt;/b&gt;
				&lt;/div&gt;
			&lt;!-- ENDIF --&gt;
</pre>
<p>
	With or without spaces... CoTemplate does not work the way i expect... and the vars i checked 200 times...</p>
<p>
	I am depending on this to work bigtime... but for now i find the cotemplate buggy in logical blocks... <img alt="no" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/thumbs_down.gif" title="no" width="20" /></p>
<p>
	 </p>
]]></description>
			<pubDate>Thu, 29 Dec 2011 16:20:16 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32327]]></link>
		</item>
		<item>
			<title>Alex300</title>
			<description><![CDATA[<p>
	Use <span class="short_text" lang="en" xml:lang="en"><span class="hps">spaces</span></span> <span class="short_text" lang="en" xml:lang="en"><span class="hps">In</span> <span class="hps">logical operations</span></span>.</p>
<p>
	Try this:</p>
<pre class="brush:xml;">
           &lt;!-- IF {MINIDIR_SHOWUSERNAME} == "1" AND {MINIDIR_USERNAME} != "" --&gt;
                &lt;div id="mb_admin_user"&gt;
                    {PHP.L.Username} : &lt;b&gt;{MINIDIR_USERNAME}&lt;/b&gt;
                &lt;/div&gt;
            &lt;!-- ENDIF --&gt;</pre>
]]></description>
			<pubDate>Thu, 29 Dec 2011 06:58:36 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32323]]></link>
		</item>
		<item>
			<title>ez</title>
			<description><![CDATA[<p>
	Hi there,</p>
<p>
	I have problems with blocks... if MINIDIR_USERNAME is empty (i checked), then this div is shown anyway..<br />
	Am I doing something wrong here ???  <strong>cot version 0.6.20</strong></p>
<p>
	 </p>
<p>
	            &lt;!-- IF {MINIDIR_SHOWUSERNAME}=="1" AND {MINIDIR_USERNAME}!="" --&gt;<br />
	                &lt;div id="mb_admin_user"&gt;<br />
	                    {PHP.L.Username} : &lt;b&gt;{MINIDIR_USERNAME}&lt;/b&gt;<br />
	                &lt;/div&gt;<br />
	            &lt;!-- ENDIF --&gt;<br />
	 </p>
<p>
	 </p>
]]></description>
			<pubDate>Wo, 28 Dec 2011 22:10:49 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/nl/forums?m=posts&q=6699&d=0#post32321]]></link>
		</item>
	</channel>
</rss>