<?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=4770&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / [Modifikator] Formatierung der Ausgabe einer Dateigröße]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=4770</link>
		<description><![CDATA[Die aktuellsten Beiträge in [Modifikator] Formatierung der Ausgabe einer Dateigröße.]]></description>
		<lastBuildDate>Sun, 08 Jan 2017 12:21:27 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [Modifikator] Formatierung der Ausgabe einer Dateigröße]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=39853#p39853</link>
			<description><![CDATA[<p>Sodele ... Download-Link korrigiert, war defekt.</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Sun, 08 Jan 2017 12:21:27 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=39853#p39853</guid>
		</item>
		<item>
			<title><![CDATA[[Modifikator] Formatierung der Ausgabe einer Dateigröße]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38405#p38405</link>
			<description><![CDATA[<p>Und hier ein weiteres (kleines) Nebenprodukt meines aktuellen Projekts mit CMSMS 1.12.2 <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/wink.png" alt="wink" /></p><p>Wie bereits <a href="https://www.cmsmadesimple.de/forum/viewtopic.php?pid=38403#p38403" rel="nofollow">hier</a> erwähnt, stand die Aufgabe, die Größe einer Datei formatiert auszugeben, also nicht die einfache Ausgabe einer Zahl via filesize(), z.Bsp. &quot;7863&quot;, sondern eine gescheite Formatierung entsprechend der jeweiligen Größe der Datei, z.Bsp. &quot;7.68 Kb&quot; (und bei entsprechender Größe dann automatisch weiter mit MB, GB etc.)</p><p>Hier ist das Ergebnis</p><p><a href="https://dl.orangedox.com/SgVyBDfyi9CSJIaqSL?dl=1" rel="nofollow">https://dl.orangedox.com/SgVyBDfyi9CSJIaqSL?dl=1</a></p><p>Entpackte Datei nach /plugins hochladen. Fertig.</p><p>Eingesetzt habe ich es wie folgt - zunächst hab ich mir den Pfad zur Datei in Smarty gebaut</p><div class="codebox"><pre><code>{$bpath = &quot;{uploads_path}/{$download}&quot;}</code></pre></div><p>{uploads_path} ist das <a href="https://www.cmsmadesimple.de/forum/viewtopic.php?id=4769" rel="nofollow">hier</a> angebotene Plugin, und $download enthält den von GBFilePicker ausgegebenen Wert. Und mit den gestaffelten Modifikatoren wird dann die formatierte Dateigröße ausgegeben</p><div class="codebox"><pre><code>{$bpath|filesize|formatsize}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Thu, 07 Apr 2016 11:12:47 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=38405#p38405</guid>
		</item>
	</channel>
</rss>
