<?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>medianetic blog</title>
	<atom:link href="http://www.blog.medianetic.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.medianetic.de</link>
	<description>*happy coding*</description>
	<lastBuildDate>Mon, 16 Jan 2012 11:07:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Contao: changelanguage-Erweiterung mit Grafiksymbolen</title>
		<link>http://www.blog.medianetic.de/contao-changelanguage-erweiterung-mit-grafiksymbolen/</link>
		<comments>http://www.blog.medianetic.de/contao-changelanguage-erweiterung-mit-grafiksymbolen/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 10:56:45 +0000</pubDate>
		<dc:creator>Nick Weschkalnies</dc:creator>
				<category><![CDATA[Contao]]></category>

		<guid isPermaLink="false">http://www.blog.medianetic.de/?p=1033</guid>
		<description><![CDATA[Die Erweiterung '[changelanguage] Sprachenwechsler' wurde so aktualisiert, dass für die Ausgabe jetzt das allgemeine Template 'nav_default.xhtml' (.html5) verwendet wird. Probleme bekommt man mit der Erweiterung, wenn man Ländersymbole statt Text in einer früheren Version verwendet hat. Wie sich die aktuelle Version der Erweiterung auch mit Ländersymbolen nutzten lässt, möchte ich im Folgenden kurz erläutern. Schritt [...]]]></description>
			<content:encoded><![CDATA[<p>Die Erweiterung <a href="http://www.contao.org/de/extension-list/view/changelanguage.60039.de.html" title="Changelanguage - Contao" target="_blank">'[changelanguage] Sprachenwechsler'</a> wurde so aktualisiert, dass für die Ausgabe jetzt das allgemeine Template 'nav_default.xhtml' (.html5) verwendet wird. Probleme bekommt man mit der Erweiterung, wenn man Ländersymbole statt Text in einer früheren Version verwendet hat. Wie sich die aktuelle Version der Erweiterung auch mit Ländersymbolen nutzten lässt, möchte ich im Folgenden kurz erläutern.<span id="more-1033"></span></p>
<p><strong>Schritt 1</strong>: Nach der Aktualisierung der Erweiterung über das Backend, legt man zunächst ein neues Template  'nav_default.xhtml' (.html5) an und nennt es bspw. 'nav_default_lang.xhtml'.<br />
<img src="/bilder/contao_changelang_01.jpg" alt="Contao Sprachwechsler" /><br />
<strong>Schritt 2:</strong> Im Modul, welches in die entsprechenden Seitenlayouts eingebunden ist, wählt man das neue Template als Basis aus.<br />
<img src="/bilder/contao_changelang_02.jpg" alt="Contao Sprachwechsler" /><br />
<strong>Schritt 3:</strong> Im neu erstellten Template entfernt man die Ausgabe des Textes (z.B. 'DE' 'EN') zunächst durch Ändern des Codes, wie folgt:</p>
<div class="igBar"><a href="javascript:showCodeTxt('code-4');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-4">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;ul class=<span style="color:#CC0000;">"&lt;?php echo $this-&gt;level; ?&gt;"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php foreach <span style="color:#006600; font-weight:bold;">&#40;</span>$this-&gt;<span style="">items</span> as $item<span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'isActive'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;li class=<span style="color:#CC0000;">"active&lt;?php if ($item['class']): ?&gt; &lt;?php echo $item['class']; ?&gt;&lt;?php endif; ?&gt;"</span>&gt;&lt;span class=<span style="color:#CC0000;">"active&lt;?php if ($item['class']): ?&gt; &lt;?php echo $item['class']; ?&gt;&lt;?php endif; ?&gt;"</span>&gt;&lt;/span&gt;&lt;?php echo $item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'subitems'</span><span style="color:#006600; font-weight:bold;">&#93;</span>; ?&gt;&lt;/li&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php else: ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;li&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'class'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt; class=<span style="color:#CC0000;">"&lt;?php echo $item['class']; ?&gt;"</span>&lt;?php endif; ?&gt;&gt;&lt;a href=<span style="color:#CC0000;">"&lt;?php echo $item['href']; ?&gt;"</span> title=<span style="color:#CC0000;">"&lt;?php echo $item['pageTitle'] ? $item['pageTitle'] : $item['title']; ?&gt;"</span>&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'class'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt; class=<span style="color:#CC0000;">"&lt;?php echo $item['class']; ?&gt;"</span>&lt;?php endif; ?&gt;&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'accesskey'</span><span style="color:#006600; font-weight:bold;">&#93;</span> != <span style="color:#CC0000;">''</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt; accesskey=<span style="color:#CC0000;">"&lt;?php echo $item['accesskey']; ?&gt;"</span>&lt;?php endif; ?&gt;&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'tabindex'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt; tabindex=<span style="color:#CC0000;">"&lt;?php echo $item['tabindex']; ?&gt;"</span>&lt;?php endif; ?&gt;&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'nofollow'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt; rel=<span style="color:#CC0000;">"nofollow"</span>&lt;?php endif; ?&gt;&lt;?php echo $item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'target'</span><span style="color:#006600; font-weight:bold;">&#93;</span>; ?&gt;&gt;&lt;/a&gt;&lt;?php echo $item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'subitems'</span><span style="color:#006600; font-weight:bold;">&#93;</span>; ?&gt;&lt;/li&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endif; ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endforeach; ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/ul&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Hier wurde zweimal der Eintrag
<div class="igBar"><a href="javascript:showCodeTxt('code-5');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-5">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php echo $item<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'link'</span><span style="color:#006600; font-weight:bold;">&#93;</span>; ?&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p> aus dem Code entfernt.</p>
<p>Schritt 4: Jetzt definiert man folgendes CSS, um den Elementen entsprechende Hintergrundbilder zuzuweisen (Im Beispiel gibt es zwei Sprachen de und en):</p>
<div class="igBar"><a href="javascript:showCodeTxt('code-6');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-6">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">.<span style="">mod_changelanguage</span> .<span style="">lang</span>-en a, .<span style="">mod_changelanguage</span> .<span style="">lang</span>-en span <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">width: 16px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">height: 11px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">display:inline-block;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">background-image: url<span style="color:#006600; font-weight:bold;">&#40;</span>../../tl_files/mySite/icons/lang_en.<span style="">gif</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">cursor: pointer;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">.<span style="">mod_changelanguage</span> .<span style="">lang</span>-de a, .<span style="">mod_changelanguage</span> .<span style="">lang</span>-de span <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">width: 16px;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">height: 11px;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">display:inline-block;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">background-image: url<span style="color:#006600; font-weight:bold;">&#40;</span>../../tl_files/mySite/icons/lang_de.<span style="">gif</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">cursor: pointer;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.medianetic.de/contao-changelanguage-erweiterung-mit-grafiksymbolen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento: Installation auf localhost, Login mit Chrome nicht möglich &#8230;</title>
		<link>http://www.blog.medianetic.de/magento-installation-auf-localhost-login-mit-chrome-nicht-moglich/</link>
		<comments>http://www.blog.medianetic.de/magento-installation-auf-localhost-login-mit-chrome-nicht-moglich/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 18:07:57 +0000</pubDate>
		<dc:creator>Nick Weschkalnies</dc:creator>
				<category><![CDATA[Contao]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.blog.medianetic.de/?p=1030</guid>
		<description><![CDATA[Der Versuch sich mit Chrome auf einer lokalen Magento-Installation ins Backend einzuloggen, schlug fehl. Ein kleiner Workaround behebt das Problem. Dazu bearbeitet man die Datei 'app\code\core\Mage\Core\Model\Session\Abstract\Varien.php' und kommentiert die folgende Zeilen aus: PLAIN TEXT CODE: &#160; // session cookie params &#160; &#160; &#160; &#160; $cookieParams = array&#40; &#160; &#160; &#160; &#160; &#160; &#160; 'lifetime' =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Der Versuch sich mit Chrome auf einer lokalen Magento-Installation ins Backend einzuloggen, schlug fehl. Ein kleiner Workaround behebt das Problem.<br />
Dazu bearbeitet man die Datei 'app\code\core\Mage\Core\Model\Session\Abstract\Varien.php' und kommentiert die folgende Zeilen aus:</p>
<div class="igBar"><a href="javascript:showCodeTxt('code-8');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-8">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// session cookie params</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; $cookieParams = array<span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0000;">'lifetime'</span> =&gt; $cookie-&gt;<span style="">getLifetime</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0000;">'path'</span>&nbsp; &nbsp; &nbsp;=&gt; $cookie-&gt;<span style="">getPath</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//'domain'&nbsp; &nbsp;=&gt; $cookie-&gt;getConfigDomain(),</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//'secure'&nbsp; &nbsp;=&gt; $cookie-&gt;isSecure(),</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//'httponly' =&gt; $cookie-&gt;getHttponly()</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Danach funktioniert auch der Login mit Chrome wieder.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.medianetic.de/magento-installation-auf-localhost-login-mit-chrome-nicht-moglich/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess unter Windows 7 erzeugen</title>
		<link>http://www.blog.medianetic.de/htaccess-unter-windows-7-erzeugen/</link>
		<comments>http://www.blog.medianetic.de/htaccess-unter-windows-7-erzeugen/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 16:48:25 +0000</pubDate>
		<dc:creator>Nick Weschkalnies</dc:creator>
				<category><![CDATA[Short noticed]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.blog.medianetic.de/?p=1018</guid>
		<description><![CDATA[Windows 7 erlaubt es in der GUI nicht eine Datei mit einem Punkt angeführt zu erzeugen. Möchte man das dennoch tun, z.B. bei einer .htaccess, hängt man einfach hinten einen Punkt dran, also ".htaccess.". Der Punkt wird automatisch entfernt und so erzielt man das gewünschte Ergebnis.]]></description>
			<content:encoded><![CDATA[<p>Windows 7 erlaubt es in der GUI nicht eine Datei mit einem Punkt angeführt zu erzeugen. Möchte man das dennoch tun, z.B. bei einer .htaccess, hängt man einfach hinten einen Punkt dran, also ".htaccess.". Der Punkt wird automatisch entfernt und so erzielt man das gewünschte Ergebnis.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.medianetic.de/htaccess-unter-windows-7-erzeugen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Contao-Tipp: Gallerymodul, Tabellenlayout entfernen… (6/x)</title>
		<link>http://www.blog.medianetic.de/contao-tipp-gallerymodul-tabellenlayout-entfernen%e2%80%a6-6x/</link>
		<comments>http://www.blog.medianetic.de/contao-tipp-gallerymodul-tabellenlayout-entfernen%e2%80%a6-6x/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 22:34:19 +0000</pubDate>
		<dc:creator>Nick Weschkalnies</dc:creator>
				<category><![CDATA[Contao]]></category>
		<category><![CDATA[contao]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[tabellenlos]]></category>

		<guid isPermaLink="false">http://www.blog.medianetic.de/?p=1007</guid>
		<description><![CDATA[Das Gallerymodul nutzt standardmäßig immer ein Tabellenlayout, um die Thumbbilder einer Gallery zu positionieren. Das kann unter Umständen Probleme verursachen, z.B. da man maximal 12 Spalten einstellen kann. Wie man den Code des entsprechenden Templates so ändert, dass man Thumbs ohne eine Tabelle formatieren kann, möchte ich kurz erläutern. Zunächst einmal erstellt man eine Kopie [...]]]></description>
			<content:encoded><![CDATA[<p>Das Gallerymodul nutzt standardmäßig immer ein Tabellenlayout, um die Thumbbilder einer Gallery zu positionieren. Das kann unter Umständen Probleme verursachen, z.B. da man maximal 12 Spalten einstellen kann. Wie man den Code des entsprechenden Templates so ändert, dass man Thumbs ohne eine Tabelle formatieren kann, möchte ich kurz erläutern. <span id="more-1007"></span></p>
<p>Zunächst einmal erstellt man eine Kopie des Templates "gallery_default.tpl" und ändert den Code, wie folgt:</p>
<div class="igBar"><a href="javascript:showCodeTxt('code-12');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-12">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div id=<span style="color:#CC0000;">"imageGalleryView"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php foreach <span style="color:#006600; font-weight:bold;">&#40;</span>$this-&gt;<span style="">body</span> as $class=&gt;$row<span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php foreach <span style="color:#006600; font-weight:bold;">&#40;</span>$row as $col<span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div class=<span style="color:#CC0000;">"image_container"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$col-&gt;<span style="">href</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;a href=<span style="color:#CC0000;">"&lt;?php echo $col-&gt;href; ?&gt;"</span>&lt;?php echo $col-&gt;<span style="">attributes</span>; ?&gt; title=<span style="color:#CC0000;">"&lt;?php echo $col-&gt;alt; ?&gt;"</span>&gt;&lt;img src=<span style="color:#CC0000;">"&lt;?php echo $col-&gt;src; ?&gt;"</span>&lt;?php echo $col-&gt;<span style="">imgSize</span>; ?&gt; alt=<span style="color:#CC0000;">"&lt;?php echo $col-&gt;alt; ?&gt;"</span> /&gt;&lt;/a&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php else: ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$col-&gt;<span style="">src</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;img src=<span style="color:#CC0000;">"&lt;?php echo $col-&gt;src; ?&gt;"</span>&lt;?php echo $col-&gt;<span style="">imgSize</span>; ?&gt; alt=<span style="color:#CC0000;">"&lt;?php echo $col-&gt;alt; ?&gt;"</span> /&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endif; ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endif; ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$col-&gt;<span style="">caption</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;div class=<span style="color:#CC0000;">"caption"</span>&gt;&lt;?php echo $col-&gt;<span style="">caption</span>; ?&gt;&lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endif; ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;/div&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endforeach; ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endforeach; ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Ich habe einfach alle Tabellen-relevanten Codeteile entfernt und zusätzlich eine Abfrage integriert. Diese ist eigentlich nicht notwendig, integriert man die Abfrage jedoch nicht, gibt es einen kleinen Fehler - ein zusätzliches img-Element ohne Inhalt wird am Ende erzeugt.  Hier die Abfrage. Wer weiß, wie man das noch etwas schöner ohne die Abfrage machen könnte, bitte kommentieren.</p>
<div class="igBar"><a href="javascript:showCodeTxt('code-13');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-13">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$col-&gt;<span style="">src</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &lt;img src=<span style="color:#CC0000;">"&lt;?php echo $col-&gt;src; ?&gt;"</span>&lt;?php echo $col-&gt;<span style="">imgSize</span>; ?&gt; alt=<span style="color:#CC0000;">"&lt;?php echo $col-&gt;alt; ?&gt;"</span> /&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endif; ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Über die div-Elemente kann man die Thumbs beliebig formatieren und positionieren, z.B. über "float:left;"</p>
<div class="igBar"><a href="javascript:showCodeTxt('code-14');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-14">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div style=<span style="color:#CC0000;">"width: 500px; height: 50px; background-color: #EBEBEB; border:1px dashed #CCCCCC; padding: 10px; margin-bottom: 30px;"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div style=<span style="color:#CC0000;">"float:left; width: 44px; height: 50px; margin-right: 10px;"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;img src=<span style="color:#CC0000;">"/bilder/icon_contao.png"</span> alt=<span style="color:#CC0000;">"Contao"</span>/&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;p style=<span style="color:#CC0000;">"float: left; display:inline-block; width: 400px;"</span>&gt;Sie möchten eine eigene Internetseite basierend auf Contao? &lt;a href=<span style="color:#CC0000;">"http://www.medianetic.de/internetseiten-berlin/contao"</span>&gt;Hier&lt;/a&gt; gibt es weitere Infos.&lt;/p&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.medianetic.de/contao-tipp-gallerymodul-tabellenlayout-entfernen%e2%80%a6-6x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Contao-Tipp: Nachrichtenmodul, Titel anzeigen… (5/x)</title>
		<link>http://www.blog.medianetic.de/contao-tipp-nachrichtenmodul-titel-anzeigen%e2%80%a6-5x/</link>
		<comments>http://www.blog.medianetic.de/contao-tipp-nachrichtenmodul-titel-anzeigen%e2%80%a6-5x/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 14:43:40 +0000</pubDate>
		<dc:creator>Nick Weschkalnies</dc:creator>
				<category><![CDATA[Contao]]></category>
		<category><![CDATA[contao]]></category>
		<category><![CDATA[Nachrichtenmodul]]></category>
		<category><![CDATA[newslist]]></category>
		<category><![CDATA[tipp]]></category>

		<guid isPermaLink="false">http://www.blog.medianetic.de/?p=977</guid>
		<description><![CDATA[Nutzt man das Nachrichtenmodul in Contao um bspw. aktuelle Neuigkeiten auszugeben, lässt sich bei der Definition des entsprechenden Frontendmoduls zur Ausgabe der Nachrichten (Nachrichtenliste) eine Überschrift definieren, die über der Nachrichtenliste angezeigt wird. Wenn man den Bereich neu einrichtet gibt es zu Beginn noch keine Nachrichten, die Überschrift wird dennoch immer angezeigt. Wie sich das [...]]]></description>
			<content:encoded><![CDATA[<p>Nutzt man das Nachrichtenmodul in Contao um bspw. aktuelle Neuigkeiten auszugeben, lässt sich bei der Definition des entsprechenden Frontendmoduls zur Ausgabe der Nachrichten (Nachrichtenliste) eine Überschrift definieren, die über der Nachrichtenliste angezeigt wird. Wenn man den Bereich neu einrichtet gibt es zu Beginn noch keine Nachrichten, die Überschrift wird dennoch immer angezeigt. Wie sich das ändern lässt, möchte ich kurz erläutern. <span id="more-977"></span></p>
<p>Zunächst erzeugt man im Backend im Bereich Templates eine Kopie des Templates "mod_newslist.tpl", das in der Gruppe "news" zu finden ist. Anschließend bearbeitet man das Modul und ändert den Code, wie folgt:</p>
<div class="igBar"><a href="javascript:showCodeTxt('code-16');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-16">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;!-- indexer::<span style="">stop</span> --&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php if<span style="color:#006600; font-weight:bold;">&#40;</span>$this-&gt;<span style="">articles</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div class=<span style="color:#CC0000;">"&lt;?php echo $this-&gt;class; ?&gt; block"</span>&lt;?php echo $this-&gt;<span style="">cssID</span>; ?&gt;&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$this-&gt;<span style="">style</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt; style=<span style="color:#CC0000;">"&lt;?php echo $this-&gt;style; ?&gt;"</span>&lt;?php endif; ?&gt;&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php if <span style="color:#006600; font-weight:bold;">&#40;</span>$this-&gt;<span style="">headline</span><span style="color:#006600; font-weight:bold;">&#41;</span>: ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;&lt;?php echo $this-&gt;<span style="">hl</span>; ?&gt;&gt;&lt;?php echo $this-&gt;<span style="">headline</span>; ?&gt;&lt;/&lt;?php echo $this-&gt;<span style="">hl</span>; ?&gt;&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endif; ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php foreach<span style="color:#006600; font-weight:bold;">&#40;</span>$this-&gt;<span style="">articles</span> as $article<span style="color:#006600; font-weight:bold;">&#41;</span> echo $article; ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php echo $this-&gt;<span style="">pagination</span>; ?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php endif; ?&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;!-- indexer::<span style="">continue</span> --&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
<p>Zeile 3 und Zeile 14 wurden hinzugefügt. Es handelt sich dabei, um eine einfache Abfrage, ob überhaupt schon Nachrichten existieren.<br />
Andernfalls wird der Code auch nicht integriert.</p>
<div style="width: 500px; height: 50px; background-color: #EBEBEB; border:1px dashed #CCCCCC; padding: 10px; margin-bottom: 30px;">
<div style="float:left; width: 44px; height: 50px; margin-right: 10px;">
<img src="/bilder/icon_contao.png" alt="Contao"/>
</div>
<p style="float: left; display:inline-block; width: 400px;">Sie möchten eine eigene Internetseite basierend auf Contao? <a href="http://www.medianetic.de/internetseiten-berlin/contao">Hier</a> gibt es weitere Infos.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.medianetic.de/contao-tipp-nachrichtenmodul-titel-anzeigen%e2%80%a6-5x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coppermine &#8211; PHP-Scripte vs FTP: Typisches Rechteproblem</title>
		<link>http://www.blog.medianetic.de/coppermine-php-scripte-vs-ftp-typisches-rechteproblem/</link>
		<comments>http://www.blog.medianetic.de/coppermine-php-scripte-vs-ftp-typisches-rechteproblem/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 21:48:31 +0000</pubDate>
		<dc:creator>Nick Weschkalnies</dc:creator>
				<category><![CDATA[Sonstiges]]></category>
		<category><![CDATA[access denied]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rechte]]></category>

		<guid isPermaLink="false">http://www.blog.medianetic.de/?p=969</guid>
		<description><![CDATA[Ich hatte das Problem schon des öfteren, dass bspw. PHP-Scripte Verzeichnisse oder Dateien auf dem Server erstellen und sich diese Verzeichnisse bzw. Dateien dann per FTP nicht mehr löschen lassen. Mein letzter Fall trat im Zusammenhang mit Coppermine auf. Nach der Einrichtung des Systems trat immer wieder der Fehler: 'Access denied - Database access denied' [...]]]></description>
			<content:encoded><![CDATA[<p>Ich hatte das Problem schon des öfteren, dass bspw. PHP-Scripte Verzeichnisse oder Dateien auf dem Server erstellen und sich diese Verzeichnisse bzw. Dateien dann per FTP nicht mehr löschen lassen. Mein letzter Fall trat im Zusammenhang mit <a href="http://coppermine-gallery.net/" target="_blank">Coppermine</a> auf. <span id="more-969"></span></p>
<p>Nach der Einrichtung des Systems trat immer wieder der Fehler: 'Access denied - Database access denied' ausschließlich im Zusammenhang mit der "editpictures.php" auf. Selbstverständlich wird darauf auch immer verwiesen: Ich habe die Zugangsdaten zur Datenbank mehrmals überprüft. Irgendwann habe ich mir dann mal die unterschiedliche Funktionsweise auf meinem localhost und dem Live-Server angeschaut ... auf dem Localhost gab es den Fehler nicht - die Zugangsdaten zur DB waren identisch ...</p>
<p>Lange Rede kurzer Sinn, die Fehlermeldung hatte mich auf den falschen Pfad gebracht, tatsächlich lag der Fehler in einem typischen Rechteproblem, dass ich auch an anderer Stelle schon des öfteren hatte. </p>
<p>PHP-Scripte laufen auf einigen Servern unter anderen Rechten als FTP. Das führt dazu, dass man Dateien und Verzeichnisse, die per PHP erzeugt wurden, nicht unbedingt per FTP löschen oder ändern kann. Man muss die Verzeichnisse bzw. Dateien dann per PHP selbst löschen oder die Rechte ändern. Im Zweifel kann man die Rechte per CHMOD erstmal über PHP auf 777 setzen. Dann sollte man auch über FTP Verzeichnisse/Dateien ändern und löschen können. Das folgende Script ändert alle Rechte der Dateien im Verzeichnis "sample/" - ausgehend vom PHP-Script selbst:</p>
<div class="igBar"><a href="javascript:showCodeTxt('code-18');">PLAIN TEXT</a></div>
<div class="syntax_hilite"><span style="color:#000000; font-weight:bold;">CODE:</span>
<div id="code-18">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">$dirName = <span style="color:#CC0000;">"sample/"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">$dirhandle=opendir<span style="color:#006600; font-weight:bold;">&#40;</span>$dirName<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">$Dateien = array<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">while<span style="color:#006600; font-weight:bold;">&#40;</span>$file=readdir<span style="color:#006600; font-weight:bold;">&#40;</span>$dirhandle<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; if<span style="color:#006600; font-weight:bold;">&#40;</span>$file != <span style="color:#CC0000;">"."</span> &amp;&amp; $file != <span style="color:#CC0000;">".."</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; chmod <span style="color:#006600; font-weight:bold;">&#40;</span>$dirName.$file, <span style="color:#800000;">777</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="color:#000000; font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
</ol>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.medianetic.de/coppermine-php-scripte-vs-ftp-typisches-rechteproblem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
