<?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=723&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / Zufallsbild mit image_rotator]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=723</link>
		<description><![CDATA[Die aktuellsten Beiträge in Zufallsbild mit image_rotator.]]></description>
		<lastBuildDate>Mon, 09 May 2011 17:06:12 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7198#p7198</link>
			<description><![CDATA[<p>403 = forbidden, oder?<br />Kann es sein, dass Du in einer .htaccess Datei den Zugriff auf .php-Dateien im Uploads-Verzeichnis selber verboten hast?<br />Wenn ja, dann müsstest Du für die Datei rotator.php im image-Verzeichnis eine Ausnahme hinzufügen.<br />(siehe z.B. auch hier: <a href="http://forum.cmsmadesimple.de/viewtopic.php?id=765" rel="nofollow">http://forum.cmsmadesimple.de/viewtopic.php?id=765</a>)</p>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Mon, 09 May 2011 17:06:12 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7198#p7198</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7186#p7186</link>
			<description><![CDATA[<p>Ja, wenn ich den Link direkt aufrufe bekomme ich den Fehler 403.</p><p>Es hat sich in soweit erledigt, dass ich es mit Javascript gemacht gabe. <br />Trotzdem danke!</p>]]></description>
			<author><![CDATA[dummy@example.com (GoGo)]]></author>
			<pubDate>Mon, 09 May 2011 12:55:54 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7186#p7186</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7160#p7160</link>
			<description><![CDATA[<div class="quotebox"><cite>GoGo schrieb:</cite><blockquote><div><div class="codebox"><pre><code>[== html ==]
&lt;div id=&quot;header&quot;&gt; 
&lt;img  style=&quot;margin:10px;&quot;   src=&quot;/uploads/images/bilder/rotator.php&quot;  alt=&quot;wie der Zufall es will&quot; title=&quot;irgendwas&quot;/&gt;
&lt;/div&gt;</code></pre></div></div></blockquote></div><p>Müsste eigentlich funktionieren. Hast du den Link auch direkt aufgerufen?</p>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Mon, 09 May 2011 05:35:00 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7160#p7160</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7159#p7159</link>
			<description><![CDATA[<div class="quotebox"><cite>GoGo schrieb:</cite><blockquote><div><p>Jetzt habe ich Qual der Wahl <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/lol.png" alt="lol" /></p></div></blockquote></div><p>Mit der anderen Auswahl bist du nicht zurecht gekommen?</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Mon, 09 May 2011 05:26:57 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7159#p7159</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7154#p7154</link>
			<description><![CDATA[<div class="codebox"><pre><code>[== html ==]
&lt;div id=&quot;header&quot;&gt; 
&lt;img  style=&quot;margin:10px;&quot;   src=&quot;/uploads/images/bilder/rotator.php&quot;  alt=&quot;wie der Zufall es will&quot; title=&quot;irgendwas&quot;/&gt;
&lt;/div&gt;</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (GoGo)]]></author>
			<pubDate>Sun, 08 May 2011 08:47:28 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7154#p7154</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7153#p7153</link>
			<description><![CDATA[<div class="quotebox"><cite>GoGo schrieb:</cite><blockquote><div><p>Hi, ich habe mit dem rotatop.php versucht.</p><p>Pustekuchen!&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/mad.png" alt="mad" /> Es funktioniert nicht!</p><p>Habe über die Template eigebunden, angezeigt wird nur Alt-Text und Titel, keine Bilder.<br />Die einzige Stelle, wo etwas konfiguriert werden muss, ist der Folder ($folder = &#039;/uploads/images/bilder/&#039;;)<br />Ich würde sagen, einfacher geht nicht. Trotzdem funktioniert nicht.</p></div></blockquote></div><p>Wie hast du ihn genau eingebunden?</p>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Sun, 08 May 2011 08:13:16 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7153#p7153</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7151#p7151</link>
			<description><![CDATA[<p>Hi, ich habe mit dem rotatop.php versucht.</p><p>Pustekuchen!&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/mad.png" alt="mad" /> Es funktioniert nicht!</p><p>Habe über die Template eigebunden, angezeigt wird nur Alt-Text und Titel, keine Bilder.<br />Die einzige Stelle, wo etwas konfiguriert werden muss, ist der Folder ($folder = &#039;/uploads/images/bilder/&#039;;)<br />Ich würde sagen, einfacher geht nicht. Trotzdem funktioniert nicht.</p><p>Ich habe die VErsion 1.9.4.1.</p><p>Eine Idee? Wäre mit js nicht einfacher?</p>]]></description>
			<author><![CDATA[dummy@example.com (GoGo)]]></author>
			<pubDate>Sat, 07 May 2011 22:47:50 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=7151#p7151</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6479#p6479</link>
			<description><![CDATA[<p>Leute! Danke!<br />Jetzt habe ich Qual der Wahl <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/lol.png" alt="lol" /></p>]]></description>
			<author><![CDATA[dummy@example.com (GoGo)]]></author>
			<pubDate>Sat, 16 Apr 2011 20:43:49 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6479#p6479</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6473#p6473</link>
			<description><![CDATA[<p>also ich hab das mal so gemacht:</p><p>1) alle Dateien in einen Ordner<br />2) in den gleichen Ordner ein rotator.php gelegt (eines von den üblichen Scripten, die man überall findet)<br />3) im Template wie ein Image eingebunden, aber bei &quot;src&quot; statt des Dateinamens &quot;rotator.php&quot; angegeben</p><p>das war extrem banal und funktioniert gut</p><p>Das rotator.zip ist zu finden auf <a href="http://www.webdeerns.de/downloads/rotator.zip" rel="nofollow">www.webdeerns.de/downloads/rotator.zip</a></p><p>Und eingebunden habe ich es so:</p><div class="codebox"><pre><code>[== HTML ==]
&lt;img src=&quot;/uploads/bilderverzeichnis/rotator.php&quot; alt=&quot;wie der Zufall es will&quot; title=&quot;irgendwas&quot; /&gt;</code></pre></div><p>sowas von banal, da braucht man sich gar nicht groß den Kopf zerbrechen</p><p>PS: Ist bei Euch auch der Server heute so lahm?`Dauert ja ewig, bis eine&#160; Forum-Seite heute geladen wird ;=(</p>]]></description>
			<author><![CDATA[dummy@example.com (Connie)]]></author>
			<pubDate>Sat, 16 Apr 2011 15:27:52 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6473#p6473</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6470#p6470</link>
			<description><![CDATA[<p>Variante die ich benutze, wenn jedes Bild gleich groß ist mit direkter fixer Festlegung des Ordners und der Bildbeschreibung:</p><div class="codebox"><pre><code>[== UDT ==]
$dir = &quot;uploads/DIRECTORY&quot;;
$files = array();
if ($handle = opendir($dir)) {
   while (false !== ($file = readdir($handle))) {
       if($file != &#039;.&#039; &amp;&amp; $file != &#039;..&#039;)
      $files[] = $file;
   }
   closedir($handle);
}
if( ($c = sizeof($files)) &gt; 0) {
    srand ((double)microtime()*1000000);
    $i = rand(0,($c-1));
    echo &#039;&lt;img src=&quot;&#039;.$dir.&#039;/&#039;.$files[$i].&#039;&quot; width=&quot;???px&quot; height=&quot;???px&quot; alt=&quot;BEZECIHNUNG&quot; /&gt;&#039;;
//        echo $dir.&#039;/&#039;.$files[$i];
}</code></pre></div><p>Info zu den letzten beiden Zeilen: Entweder wird das Bild mit kompletten Code ausgegeben oder (hier auskommentiert) einfach der Dateiname inkl. dir</p><p>DIRECTORY = das jeweilige Verzeichnis bzw. bis zum jeweiligen Unterverzeichnis<br />BEZEICHNUNG = die allgemeine Bildbezeichnung, die dann für alle gleich ist<br />??? = Höhe/Breite</p>]]></description>
			<author><![CDATA[dummy@example.com (owr_web)]]></author>
			<pubDate>Sat, 16 Apr 2011 08:23:00 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6470#p6470</guid>
		</item>
		<item>
			<title><![CDATA[Re: Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6465#p6465</link>
			<description><![CDATA[<p>Ich habe mir mal folgendes UDT geschrieben:</p><div class="codebox"><pre class="vscroll"><code>if ($params[&quot;pfad&quot;] == &quot;&quot;) echo &quot;kein Bildpfad ausgefüllt.&quot;;
else {
    if ($params[&quot;anzahl&quot;] == &quot;&quot;) $params[&quot;anzahl&quot;] = 2;
    if (substr($params[&quot;pfad&quot;],0,1) != &quot;/&quot;) $params[&quot;pfad&quot;] = &quot;/&quot;.$params[&quot;pfad&quot;];
    if (substr($params[&quot;pfad&quot;],-1) != &quot;/&quot;)   $params[&quot;pfad&quot;] .= &quot;/&quot;;
    
    $bilderdir = $_SERVER[&quot;DOCUMENT_ROOT&quot;].$params[&quot;pfad&quot;];

    $extList = array();
    $extList[&#039;gif&#039;] = &quot;image/gif&quot;;
    $extList[&#039;jpg&#039;] = &quot;image/jpeg&quot;;
    $extList[&#039;jpeg&#039;] = &quot;image/jpeg&quot;;
    $extList[&#039;png&#039;] = &quot;image/png&quot;;

    $img = null;
    
    // Dateien aus dem bilderdir in ein Array lesen
    
    $bilderfileList = array();
    $handle2 = opendir($bilderdir);
    while ( false !== ( $file2 = readdir($handle2) ) )
    {
        $file_info2 = pathinfo($file2);
        if (isset( $extList[ strtolower( $file_info2[&#039;extension&#039;] ) ] ) and strpos($file2,&quot;humb_&quot;) == 0 and strpos($file_info2[&#039;filename&#039;],&quot;_thumb&quot;) != False )
        {
            $bilderfileList[] = $file2;
        }
    }
    closedir($handle2);

    if (count($bilderfileList) == 0)
        echo &quot;Der angegebene Ordner &quot;.$params[&quot;pfad&quot;].&quot; enthält keine Bilder&quot;;
    else {    
        
        // Reihenfolge der Arrays zufällig mischen
                
        shuffle($bilderfileList);
                
        for ($i=0;$i&lt;$params[&quot;anzahl&quot;];++$i) {
            
            $url = str_replace(&quot;_thumb&quot;,&quot;&quot;,$params[&quot;pfad&quot;].$bilderfileList[$i]);
            $pathinfo = pathinfo($url);
            $titel = str_replace(&quot;_&quot;,&quot; &quot;,$pathinfo[&quot;filename&quot;]);
            $groesse=getimagesize($bilderdir.$bilderfileList[$i]);
            echo &quot;&lt;p&gt;&lt;div class=&#039;captionborder&#039; style=&#039;width:&quot;.$groesse[0].&quot;px&#039;&gt;&lt;a href=\&quot;&quot;.$url.&quot;\&quot;&gt;&lt;img src=\&quot;&quot;.$params[&quot;pfad&quot;].$bilderfileList[$i].&quot;\&quot;  alt=\&quot;&quot;.$titel.&quot;\&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;\r\n&quot;;
        }
    }    
}        </code></pre></div><p>Das UDT ist auf imagecaptions ausgerichtet, kann aber mit ein wenig PHP Kentnissen problemlos angepasst werden. Es liest alle Bilder aus einem Verzeichnis und gibt die gewünschte Anzahl aus. Die Reihenfolge wird jedesmal zufällig erzeugt.</p><p>Aufruf:</p><div class="codebox"><pre><code>{udtname anzahl=&quot;1&quot; pfad=&quot;/uploads/images/zufallsbilder}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Fri, 15 Apr 2011 21:07:24 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6465#p6465</guid>
		</item>
		<item>
			<title><![CDATA[Zufallsbild mit image_rotator]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6463#p6463</link>
			<description><![CDATA[<p>Hi,<br />ich bin am verzweiflen&#160; <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/mad.png" alt="mad" /> </p><p>Ich versuche es mittels image_rotator ein Zufallsbild in eine Unterseite einzubauen. <br />Für die Bilder habe ich einen Ordner erstellt. Leider es werden nur bilder aus dem Hauptverzeichnis (uploads/images) angezeigt.<br />Den Tag habe wie wie folgt eingefügt: </p><div class="codebox"><pre><code>{image_rotator folder=&#039;uploads/images/zufallsbild&#039;}</code></pre></div><p>Ich habe Version 1.9.3 lokal auf Xampp</p><br /><p>Gibt es eine alternative zu dem image_rotator-Tag?<br />Ich möchte, dass bei Laden der Seite ein anderes Bild angezeigt wird, es soll nicht automatisch wechseln.<br />Hat jemand eine Idee?</p>]]></description>
			<author><![CDATA[dummy@example.com (GoGo)]]></author>
			<pubDate>Fri, 15 Apr 2011 20:43:59 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=6463#p6463</guid>
		</item>
	</channel>
</rss>
