<?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=3598&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [GELÖST] {capture} crasht und {$friendly_position} meckert]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=3598</link>
		<description><![CDATA[Die aktuellsten Beiträge in [GELÖST] {capture} crasht und {$friendly_position} meckert.]]></description>
		<lastBuildDate>Sun, 24 Nov 2013 16:35:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [GELÖST] {capture} crasht und {$friendly_position} meckert]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28693#p28693</link>
			<description><![CDATA[<p>So, läuft jetzt mit</p><div class="codebox"><pre><code>{$page_lang = substr($cgsimple-&gt;get_root_alias(),0,2)}
{$hierarchy_en = &#039;2&#039;|cat:substr($friendly_position,1)}
{$hierarchy_de = &#039;3&#039;|cat:substr($friendly_position,1)}</code></pre></div><p>Sehr schön.</p>]]></description>
			<author><![CDATA[dummy@example.com (dlen)]]></author>
			<pubDate>Sun, 24 Nov 2013 16:35:02 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28693#p28693</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] {capture} crasht und {$friendly_position} meckert]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28692#p28692</link>
			<description><![CDATA[<p>Ich werde das gleich testen. Danke dafür.</p><p>Aber ein Update zum Nichtfunktionieren von capture: Es hängt an folgendem UDT</p><div class="codebox"><pre><code>$smarty = cmsms() -&gt; GetSmarty();
$cgsimple = $smarty-&gt;get_template_vars(&#039;cgsimple&#039;);

$root_alias = $cgsimple-&gt;get_root_alias();

if ($root_alias == &#039;de&#039;) {
	setlocale(LC_ALL, array(&#039;de_DE.UTF-8&#039;,&#039;de_DE@euro&#039;,&#039;de_DE&#039;,&#039;german&#039;));
} else {
	setlocale(LC_ALL, array(&#039;en_US.UTF-8&#039;,&#039;en_US&#039;,&#039;english&#039;));
}
$current_id = $smarty-&gt;get_template_vars(&#039;content_id&#039;);</code></pre></div><p>Davor läuft capture, danach ist es kaputt. Seltsam.</p>]]></description>
			<author><![CDATA[dummy@example.com (dlen)]]></author>
			<pubDate>Sun, 24 Nov 2013 15:46:18 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28692#p28692</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] {capture} crasht und {$friendly_position} meckert]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28676#p28676</link>
			<description><![CDATA[<p>Den Befehl capture musst du seit Smarty3 nicht mehr bemühen. Das geht wesentlich kürzer :-)</p><div class="codebox"><pre><code>{$page_lang = substr($cgsimple-&gt;get_root_alias(),0,2)}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Sun, 24 Nov 2013 04:05:14 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28676#p28676</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] {capture} crasht und {$friendly_position} meckert]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28674#p28674</link>
			<description><![CDATA[<p>So , das letzt ist auch noch gelöst:</p><p>Es gibt einen UDT von Goran, in dem folgender STring auftaucht:</p><div class="codebox"><pre><code>if (!empty($params[friendly_position])){ </code></pre></div><p>-- und hier fehlen klar die Gänsezeichen! Die reingesetzt und es läuft wieder.</p>]]></description>
			<author><![CDATA[dummy@example.com (dlen)]]></author>
			<pubDate>Sat, 23 Nov 2013 22:27:14 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28674#p28674</guid>
		</item>
		<item>
			<title><![CDATA[Re: [GELÖST] {capture} crasht und {$friendly_position} meckert]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28672#p28672</link>
			<description><![CDATA[<p>In den Kommentaren zu dem Artikel findet sich etwas von einem User bzgl Version 1.11.4<br />Vielleicht hilft dir das auch weiter?</p><br /><div class="quotebox"><cite>Skelt0r schrieb:</cite><blockquote><div><p>In CMSMS Fernandina (I used 1.11.4) the fourth line in the template should be:</p><p>{capture assign=&#039;page_lang&#039;}{substr($cgsimple-&gt;get_root_alias(),0,2)}{/capture}</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (Cherry)]]></author>
			<pubDate>Sat, 23 Nov 2013 20:43:06 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28672#p28672</guid>
		</item>
		<item>
			<title><![CDATA[[GELÖST] {capture} crasht und {$friendly_position} meckert]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28670#p28670</link>
			<description><![CDATA[<p>Hallo Foristen,</p><p>dieser Beitrag enthält den Fortschritt der Recherchen.<br />Ich habe auch gelöstes dringelassen, falls jemand andres ähnliches sucht.</p><p>habe eine Seite mit Gorans Multilanguage-Methode (<a href="http://www.i-do-this.com/blog/25/Another-method-of-Multilingual-CMSMS-Page" rel="nofollow">http://www.i-do-this.com/blog/25/Anothe … CMSMS-Page</a>). Die Seite funktionierte unter 1.10.3 fehlerlos. Ich habe sie nun (lokal unter XAMPP) auf 1.11.9 gebracht und habe eine Reihe von Fehlermeldungen, die ich allein nicht auflösen kann. </p><p>Der wesentliche Code ist</p><div class="codebox"><pre><code>{capture assign=&#039;page_lang&#039;}{$cgsimple-&gt;get_root_alias()}{/capture}
...
&lt;body&gt;
{*capture assign=&quot;hierarchy_en&quot;}2{$friendly_position|substr:&#039;1&#039;}{/capture}
{capture assign=&quot;hierarchy_de&quot;}3{$friendly_position|substr:&#039;1&#039;}{/capture}
{hierarchy_position friendly_position=$hierarchy_en assign=&quot;en_alias&quot;}
{hierarchy_position friendly_position=$hierarchy_de assign=&quot;de_alias&quot;*}
....</code></pre></div><br /><p>Hier ist der letzte Codeblock auskommentiert. Wenn ich dessen erste Zeile entkommentiere und das Template absende, erhalte ich (direkt im Backend):</p><div class="codebox"><pre><code>Notice: Undefined index: friendly_position in C:\xampp-1-8-2\htdocs\aum-muenchen\tmp\templates_c\parser1385235242^dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php on line 55

Notice: Trying to get property of non-object in C:\xampp-1-8-2\htdocs\aum-muenchen\tmp\templates_c\parser1385235242^dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php on line 55

Notice: Undefined property: Smarty_CMS::$_capture_stack in C:\xampp-1-8-2\htdocs\aum-muenchen\lib\smarty\Smarty.class.php on line 676

Notice: Indirect modification of overloaded property Smarty_CMS::$_capture_stack has no effect in C:\xampp-1-8-2\htdocs\aum-muenchen\tmp\templates_c\parser1385235242^dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php on line 57

Fatal error: Uncaught exception &#039;SmartyException&#039; with message &#039;Call of unknown method &#039;capture_error&#039;</code></pre></div><p>Das sind 2 Hauptfehler: mit capture und mit friendly_position. </p><p><strong>Erster Fehler: Die Anführungszeichen.</strong></p><p>Wenn ich die doppelten durch einfache ersetze - wohl ein Anfängerfehler&#160; - d.h. so</p><div class="codebox"><pre><code>{capture assign=&#039;hierarchy_en&#039;}2{$friendly_position|substr:&#039;1&#039;}{/capture} </code></pre></div><p>ändert sich die Fehlermeldung so:</p><div class="codebox"><pre><code>Notice: Undefined property: Smarty_CMS::$_capture_stack in C:\xampp-1-8-2\htdocs\aum-muenchen\lib\smarty\Smarty.class.php on line 676

Notice: Indirect modification of overloaded property Smarty_CMS::$_capture_stack has no effect in C:\xampp-1-8-2\htdocs\aum-muenchen\tmp\templates_c\parser1385236403^dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php on line 55

Fatal error: Uncaught exception &#039;SmartyException&#039; with message &#039;Call of unknown method &#039;capture_error&#039;.&#039; in C:\xampp-1-8-2\htdocs\aum-muenchen\lib\smarty\sysplugins\smarty_internal_templatebase.php:806 Stack trace: #0 C:\xampp-1-8-2\htdocs\aum-muenchen\tmp\templates_c\parser1385238331^dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php(63): Smarty_Internal_TemplateBase-&gt;__call(&#039;capture_error&#039;, Array) #1 C:\xampp-1-8-2\htdocs\aum-muenchen\tmp\templates_c\parser1385238331^dd10a1840f43813cd647195dd79bd3add047c6e9.template.appdata;tmp_template.php(63): Smarty_CMS-&gt;capture_error() #2 C:\xampp-1-8-2\htdocs\aum-muenchen\lib\classes\class.Smarty_Parser.php(284): content_52910f3b988bd7_41345302(Object(Smarty_Internal_Template)) #3 C:\xampp-1-8-2\htdocs\aum-muenchen\admin\edittemplate.php(137): Smarty_Parser-&gt;fetch(&#039;template:appdat...&#039;) #4 {main} thrown in C:\xampp-1-8-2\htdocs\aum-muenchen\lib\smarty\sysplugins\smarty_internal_templatebase.php on line 806</code></pre></div><p>Also auch hier wird {capture} noch zerschossen, aber immerhin wird {friendly_position} anscheinend richtig ausgewertet.</p><p><strong>Zweiter Fehler: {capture} wird innerhalb des Body-Tags nicht ausgewertet</strong></p><p>Weiß nicht warum, aber wenn ich die {capture}-Befehle in den vor-html-Teil verschiebe, läuft es.</p><p>Es bleibt nur noch folgende Meldung, diesmal im Front-End:</p><div class="codebox"><pre><code>Notice: Use of undefined constant friendly_position - assumed &#039;friendly_position&#039; in C:\xampp-1-8-2\htdocs\aum-muenchen\lib\classes\class.usertagoperations.inc.php(265) : eval()&#039;d code on line 9

Notice: Use of undefined constant friendly_position - assumed &#039;friendly_position&#039; in C:\xampp-1-8-2\htdocs\aum-muenchen\lib\classes\class.usertagoperations.inc.php(265) : eval()&#039;d code on line 9</code></pre></div><p>Die kriege ich nicht weg.</p><p>Für Tipps wäre ich dankbar. Auch für Wissen, warum capture nicht mehr im body-Tag läuft.</p>]]></description>
			<author><![CDATA[dummy@example.com (dlen)]]></author>
			<pubDate>Sat, 23 Nov 2013 19:48:35 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=28670#p28670</guid>
		</item>
	</channel>
</rss>
