<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=1944&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=1944</link>
		<description><![CDATA[Die aktuellsten Beiträge in [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content.]]></description>
		<lastBuildDate>Wed, 07 Mar 2012 09:36:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16701#p16701</link>
			<description><![CDATA[<div class="quotebox"><cite>NaN schrieb:</cite><blockquote><div><div class="codebox"><pre><code>{content block=&quot;berti&quot; ... smarty=true ... }</code></pre></div><p>Bin mir nicht sicher, ob es daran liegt, aber schau mal hier:<br /><a href="http://forum.cmsmadesimple.de/viewtopic.php?id=1347" rel="nofollow">http://forum.cmsmadesimple.de/viewtopic.php?id=1347</a><br />Der Parameter &quot;smarty&quot; kann mehrere Werte haben.</p></div></blockquote></div><p>Wie sagen die Amerikaner? You are the man!&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/lol.png" alt="lol" /><br />So ist das eben, wenn der &quot;Chef&quot; vorbeikommt und nen Kommentar einwirft, hat das eine gewisse Substanz.&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /> </p><p>Der Zauberparameter heißt smarty=backend</p><p>Ich hatte das auch gelesen; es war mir aber nicht wirklich klar, was es bedeuted oder bewirkt.</p><p>Danke vielmals!</p>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Wed, 07 Mar 2012 09:36:44 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16701#p16701</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16695#p16695</link>
			<description><![CDATA[<div class="codebox"><pre><code>{content block=&quot;berti&quot; ... smarty=true ... }</code></pre></div><p>Bin mir nicht sicher, ob es daran liegt, aber schau mal hier:<br /><a href="http://forum.cmsmadesimple.de/viewtopic.php?id=1347" rel="nofollow">http://forum.cmsmadesimple.de/viewtopic.php?id=1347</a><br />Der Parameter &quot;smarty&quot; kann mehrere Werte haben.</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Wed, 07 Mar 2012 01:41:22 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16695#p16695</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16688#p16688</link>
			<description><![CDATA[<div class="quotebox"><cite>nicmare schrieb:</cite><blockquote><div><p>ich würds jetzt aufs UDT schieben. hatte da noch nie solche probleme. ich verwende den GBFP ständig</p></div></blockquote></div><p>Jja, vielleicht.<br />Hab&#039;s noch mal durchgetestet, und es muss das volle Programm sein. Capture mit allen strips und replaces. Nur dann geht&#039;s!<br />Für&#039;s erste...</p>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Tue, 06 Mar 2012 17:01:42 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16688#p16688</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16687#p16687</link>
			<description><![CDATA[<p>ich würds jetzt aufs UDT schieben. hatte da noch nie solche probleme. ich verwende den GBFP ständig</p>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:58:51 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16687#p16687</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16686#p16686</link>
			<description><![CDATA[<p>Au Menno... fühl ich mich schmutzig...</p><div class="codebox"><pre><code>{capture assign=&quot;newberti&quot;}{strip}{$showberti|strip}{/strip}{/capture}
#berti {ldelim}background-image:url(/uploads/{$newberti|strip|replace:&quot; &quot;:&quot;&quot;});{rdelim}</code></pre></div><p>Noch ein replace:&quot; &quot;:&quot;&quot; drangehängt und das eventuelle Leerzeichen ist weg.</p><p>Aber wo kam es her?</p>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:57:40 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16686#p16686</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16685#p16685</link>
			<description><![CDATA[<p>Ich wein gleich...<br />Das Leerzeichen bleibt, und ist nach Reload weg.</p>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:50:12 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16685#p16685</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16684#p16684</link>
			<description><![CDATA[<p>dann machs mal dreckig</p><div class="codebox"><pre><code>&lt;style&gt;
{capture assign=&quot;newberti&quot;}{strip}{$showberti}{/strip}{/capture}
#berti {ldelim}background-image:url(/uploads/{$newberti|strip});{rdelim}
&lt;/style&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:47:22 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16684#p16684</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16683#p16683</link>
			<description><![CDATA[<p>Jetzt hab ich mal gemixt:</p><div class="codebox"><pre><code>{strip}#berti {ldelim}background-image:url(/uploads/{$showberti|strip});{rdelim}{/strip}</code></pre></div><p>Bleibt mir immer noch ein Leerzeichen</p><div class="codebox"><pre><code>#berti {background-image:url(/uploads/ images/bertis/Berti-03.gif);}</code></pre></div><p>Aber warum ist es nach einem Reload weg? Das Sackgesicht!</p>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:45:55 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16683#p16683</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16682#p16682</link>
			<description><![CDATA[<p>Hatte ich auch schon. Mit negativem Ergebnis.<br />Ich versuchte sogar schon einen Trick mit |nl2br|strip_tags und dachte, ich hab den Fehler ausgetrickst. Funktionierte aber auch nicht.<br />Das macht mich ja so irre!</p>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:42:08 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16682#p16682</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16681#p16681</link>
			<description><![CDATA[<p>genau das macht strip <a href="http://www.smarty.net/docs/en/language.modifier.strip.tpl" rel="nofollow">http://www.smarty.net/docs/en/language. … .strip.tpl</a><br />probiere mal {strip}{/strip}</p>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:34:49 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16681#p16681</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16680#p16680</link>
			<description><![CDATA[<p>Schon probiert.<br />Nimmt aber nur eventuelle Leerzeichen raus, und keine Linebreaks irgendwelcher Art.</p><p>Ich dachte schon an:</p><div class="codebox"><pre><code>{$showberti|replace:&quot;\n&quot;:&quot;&quot;}</code></pre></div><p>Aber wie identifiziere ich die \n \r und dererlei? (seltsames Wort...)</p>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:32:08 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16680#p16680</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16679#p16679</link>
			<description><![CDATA[<p>probier einfach mal</p><div class="codebox"><pre><code>&lt;style&gt;
#berti {ldelim}background-image:url(/uploads/{$showberti|strip});{rdelim}
&lt;/style&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:28:14 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16679#p16679</guid>
		</item>
		<item>
			<title><![CDATA[[GELÖST] Seltsame Linebreaks bei AdvancedContent aber nicht bei content]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16676#p16676</link>
			<description><![CDATA[<p>Au Mann... schreibe ich schlechte Betreffs&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/mad.png" alt="mad" /></p><p><strong>Vorgeschichte:</strong><br />Aus aktuellem Anlass(DAU-Alarm!) musste ich mich endlich mit AC beschäftigen, und ärgere mich, dass ich es nicht schon früher getan habe. Super Ding! Hut ab! Verbeugung...</p><p><strong>Das Setting:</strong><br />Neben mehreren Checkboxen muss ich auch 1 Gallerydir auslesen und 1 anderes (Nichtgallery-)DIR mit <span class="bbs">blöden Maskottchen</span> Grafiken, und die 2 Blocks als Dropdown darstellen.</p><p><strong>Der Ärger</strong> begann mit dem bekannten Fehler/Warnung:<br />AdvancedContent - Module is not properly cleaning input params<br />AC 0.9.2 in CMSMS 1.10.3</p><p>Nach Lesen verschiedener Posts stellte ich den Aufruf der Blocks in der Template von {AdvancedContent... auf {content... um, was die Meldungen zwar verschwinden, aber ein anderes Phänomen zu Tage treten ließ.</p><p>Benutze ich {content... erhalte ich beim ersten Laden der Seite diesen Output:</p><div class="codebox"><pre><code>&lt;style&gt;
#berti {background-image:url(/uploads/

images/bertis/Berti-07.gif);}
&lt;/style&gt;</code></pre></div><p><strong>2 Zeilenumbrüche die mir Probleme bereiten!</strong><br />Ein F5 Reload der Seite erzeugt Output OHNE Zeilenumbrüche!?</p><p>Dies ist dann bei jeder Seite so, bis ich eine Inhaltsseite öffne und speichere. Dann zeigen sich beim ersten Laden die Umbrüche bei allen Seiten wieder.<br />Notiere ich aber {AdvancedContent... für den Block ergeben sich keine überflüssigen zeilenumbrüche, alles funktioniert, bis auf die Überflutung des Adminlogs mit Warnungen.</p><p>Ein Cachingproblem oder GBFilepicker?<br />Ich habe keine Ahnung, wo ich da ansetzen soll...</p><br /><p><strong>Die Template:</strong></p><div class="codebox"><pre><code>{content block=&quot;berti&quot; label=&quot;Auswahl Berti&quot; block_type=&quot;dropdown&quot; allow_none=true 
items=&quot;:::list_galdirs dir=&#039;images/bertis&#039; filetype=&#039;f&#039; :::&quot; 
values=&quot;:::list_galdirs dir=&#039;images/bertis&#039; display=&#039;relurl&#039; filetype=&#039;f&#039;:::&quot; 
smarty=true assign=&quot;showberti&quot; page_tab=&quot;Einstellungen&quot;}

&lt;style&gt;
#berti {ldelim}background-image:url(/uploads/{$showberti});{rdelim}
&lt;/style&gt;</code></pre></div><p><strong>Das Plugin function.list_galdirs.php für die Dateiliste:</strong><br />Das Plugin ist prima, da es auch nur Dateien ausliest und nicht an den Gallerypfad gebunden ist.<br />(Das Plugin ist natürlich vollständig. Ich hab&#039;s nur für die Darstellung oben und unten abgeschnitten)</p><div class="codebox"><pre class="vscroll"><code>function smarty_cms_function_list_galdirs($params, &amp;$smarty)
{
   $dir = isset($params[&#039;dir&#039;]) ? $params[&#039;dir&#039;] : &#039;&#039;;
   $display = isset($params[&#039;display&#039;]) ? $params[&#039;display&#039;]: &#039;filename&#039;;
   $glue = isset($params[&#039;glue&#039;]) ? $params[&#039;glue&#039;]: &#039;|&#039;;
   $filetype = isset($params[&#039;filetype&#039;]) ? strtolower($params[&#039;filetype&#039;]) : &#039;f&#039;;
   
   $output = array();
//   if($GBFilePicker =&amp; cmsms()-&gt;modules[&#039;GBFilePicker&#039;][&#039;object&#039;])
   if($gbfp =&amp; cms_utils::get_module(&#039;GBFilePicker&#039;))
   {
      $files =&amp; $gbfp-&gt;GetFiles($dir); // dir relative to the uploads dir
      foreach($files as $onefile)
      {
         if (strpos($filetype, &#039;d&#039;)===false &amp;&amp; $onefile-&gt;is_dir) continue;
         if (strpos($filetype, &#039;f&#039;)===false &amp;&amp; !$onefile-&gt;is_dir) continue;
         switch($display)
         {
         case &#039;relurl&#039;:
            $output[] = $onefile-&gt;relurl; // this will be the url of the file relative to the uploads dir (e.g.: images/image.jpg)
            break;
         case &#039;fullurl&#039;:
            $output[] = $onefile-&gt;fullurl; // this will be the full url to the image (e.g.: yourdomain/uploads/images/image.jpg)
            break;
         case &#039;filename&#039;:
         default:
            $output[] = $onefile-&gt;basename; // this will be the filename (image.jpg)
            break;
         }
      }
   } else return &quot;GBFFilePicker not installed!&quot;;
   $_output = implode($glue,$output); // this will stick the filenames together separated by given glue (=pipe)
   return $_output;
}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Klenkes)]]></author>
			<pubDate>Tue, 06 Mar 2012 16:06:27 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=16676#p16676</guid>
		</item>
	</channel>
</rss>
