<?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>G-ROC web applications</title>
	<atom:link href="http://www.g-roc.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.g-roc.com</link>
	<description>PHP freelancer, web developer, mobile web enthusiast</description>
	<lastBuildDate>Sun, 22 Nov 2009 18:34:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Ext JS Book by Packt to be reviewed</title>
		<link>http://www.g-roc.com/36_ext-js-book-by-packt-to-be-reviewed.html</link>
		<comments>http://www.g-roc.com/36_ext-js-book-by-packt-to-be-reviewed.html#comments</comments>
		<pubDate>Sun, 22 Nov 2009 18:23:48 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[Ext JS]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/36_ext-js-book-by-packt-to-be-reviewed.html</guid>
		<description><![CDATA[I have been working on an Ext JS related project during the last year and there was a lot to be learnt. Meanwhile Ext JS&#8217; version jumped to 3.0 and it seems the library is gaining quite some traction.While working as a consultant at T-Home, I have seen an increase of projects employing the library. [...]]]></description>
			<content:encoded><![CDATA[<p>I have been working on an Ext JS related project during the last year and there was a lot to be learnt. Meanwhile Ext JS&#8217; version jumped to 3.0 and it seems the library is gaining quite some traction.<br />While working as a consultant at T-Home, I have seen an increase of projects employing the library. The demand for knowledge in this area is accordingly high, so we will see a number of new books on Ext JS.</p>
<p><img src="http://www.g-roc.com/wp-content/uploads/2009/11/ext-js-30-cookbook.thumbnail.jpg" alt="Ext JS Cookbook" style="float: right; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 10px" />Packt Publishing has sent me a copy of their new <a href="http://www.packtpub.com/ext-js-3-0-cookbook?utm_source=g-roc.com&amp;utm_medium=link&amp;utm_content=blog&amp;utm_campaign=mdb_001545">Ext JS 3.0 Cookbook</a>, which I will be reviewing here soon. You can <a href="http://www.packtpub.com/ext-js-3-0-cookbook?utm_source=g-roc.com&amp;utm_medium=link&amp;utm_content=blog&amp;utm_campaign=mdb_001545">check out the book on the publisher&#8217;s website</a>, more here soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/36_ext-js-book-by-packt-to-be-reviewed.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ext JS User Group in Frankfurt</title>
		<link>http://www.g-roc.com/34_ext-js-user-group-in-frankfurt.html</link>
		<comments>http://www.g-roc.com/34_ext-js-user-group-in-frankfurt.html#comments</comments>
		<pubDate>Sun, 05 Jul 2009 11:28:45 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Ext JS]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/34_ext-js-user-group-in-frankfurt.html</guid>
		<description><![CDATA[I was attending the Ext JS user group in Frankfurt the other night and thought it might be a good thing to write a blog post again: it was a nice event and I didn&#8217;t blog in about a year or so (at least not here). If you are unfamiliar with Ext JS, make sure [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.g-roc.com/wp-content/uploads/2009/07/extjs_ug_frankfurt.png" alt="Ext JS UG Frankfurt" style="margin: 0pt 0pt 10px 10px; float: right" />I was attending the Ext JS user group in Frankfurt the other night and thought it might be a good thing to write a blog post again: it was a nice event and I didn&#8217;t blog in about a year or so (at least not here).</p>
<p>If you are unfamiliar with <a href="http://extjs.com/products/extjs/">Ext JS</a>, make sure you <a href="http://extjs.com/products/extjs/">bring yourself up to date</a>! In short it is a JavaScript library providing a set of nicely styled and very functional widgets, such as grids and tree structures that you can use  to create rich, desktop-like web applications.</p>
<p>This user group was the first in Germany. Attendees were mostly freelancers, but also employees. 6 of the 15 attendees were fellow consultants from <a href="http://www.t-home.de">T-Home </a>where I am currently doing some contracting/consulting work; and Ext JS happens to be one of my main topics there. Barcampy as we were we didn&#8217;t have an agenda. Yet 3 people were giving presentations and they were all worth the trip to the <a href="http://www.dkd.de/de/home/">d.k.d</a> offices in Frankfurt where the UG was held. I am a bad name rememberer so sorry for not giving credits here to the presenters, but honestly you all did a great job guys and I gained some good insight.</p>
<p>We also had some thought-provoking discussions about memory management and -leaks and about our experiences switching over to the brand-new Ext JS version 3.0. I can just encourage anybody interested in the topic to join us next time &#8211; we&#8217;re not sure when the next session will be, but watch this space or the <a href="http://extjs.com/forum/">Ext JS forum</a> for updates.</p>
<p>A big thank you goes out to <a href="http://www.dkd.de">d.k.d, Germany&#8217;s leading TYPO3 agency</a>, for hosting the user group and especially to <a href="http://www.nils-dehl.de/">Nils Dehl</a> for organizing the whole thing and getting the crowd together. Till next time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/34_ext-js-user-group-in-frankfurt.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Poedit xgettext parser setup reminder</title>
		<link>http://www.g-roc.com/33_poedit-xgettext-parser-setup-reminder.html</link>
		<comments>http://www.g-roc.com/33_poedit-xgettext-parser-setup-reminder.html#comments</comments>
		<pubDate>Fri, 30 May 2008 00:09:13 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[i18n]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/33_poedit-xgettext-parser-setup-reminder.html</guid>
		<description><![CDATA[This is more or less a reminder to myself. Since there do not seem to be many sources about this exact issue and I had to search for it a couple of times already I thought it might be nice to have it up on my own blog. Working on many international project I&#8217;ve been [...]]]></description>
			<content:encoded><![CDATA[<p>This is more or less a reminder to myself. Since there do not seem to be many sources about this exact issue and I had to search for it a couple of times already I thought it might be nice to have it up on my own blog.</p>
<p>Working on many international project I&#8217;ve been using <a href="http://www.poedit.net/">Poedit</a> for a while now. <a href="http://www.poedit.net/">Poedit</a> is an editor for gettext catalogs (.po files). To gether with PHP and the gettext extension it&#8217;s a great tool to implement multilingual web applications.</p>
<p>The issue is that you can set up a parsers in Poedit, basically definitions of file types and command line parameters for <a href="http://www.scit.wlv.ac.uk/cgi-bin/mansec?1+xgettext">xgettext</a>, which is executed fo find the parts in a file that should be translated. So there is a parser for PHP in there, but often, for example in the <a href="http://www.cakephp.org/">CakePHP</a> framework, you have to deal with files that are PHP files, but that have a different extension, in the CakePHP case views end with .thtml &#8230; Just adding &#8220;*.thtml&#8221; to the list of extensions in the PHP parser setup does not cut the mustard and you end up getting an error message like this:</p>
<p><strong><em>xgettext: warning: file &#8216;[...].thtml&#8217; extension &#8216;thtml&#8217; is unknown; will try C</em>.</strong></p>
<p>To solve this, you need to tell xgettext that it has to deal with PHP files by adding &#8220;&#8211;language=PHP&#8221; to the list of commandline options. This is done by opening Poedit&#8217;s preferences and navigating to the parsers section there. In the PHP parser under &#8220;Parser command&#8221; (btw. this is the MAC version of Poedit) I have now the following line:</p>
<p><code>xgettext --language=PHP --force-po -o %o %C %K %F</code></p>
<p>Voila, .thtml files or any file specified in the PHP parser is now treated as PHP and my translation sections are found.</p>
<p>Thanks to <a href="http://thread.gmane.org/gmane.editors.poedit.user/633">Vaclav for his answer here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/33_poedit-xgettext-parser-setup-reminder.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Linux on a Samsung R20 (with 3D and Atheros-WiFi)</title>
		<link>http://www.g-roc.com/32_linux-on-a-samsung-r20-with-3d-and-atheros-wifi.html</link>
		<comments>http://www.g-roc.com/32_linux-on-a-samsung-r20-with-3d-and-atheros-wifi.html#comments</comments>
		<pubDate>Sun, 16 Mar 2008 13:10:33 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/32_linux-on-a-samsung-r20-with-3d-and-atheros-wifi.html</guid>
		<description><![CDATA[I have been playing around with various LiveCDs to figure out which Linux distribution would best work on my Samsung R20. The laptop is relatively cheap, but I had expected it to be better supported by the major distros at least. Using the currently available LiveCDs I could basically choose between openSUSE 10.3 and Mandriva [...]]]></description>
			<content:encoded><![CDATA[<p>I have been playing around with various LiveCDs to figure out which Linux distribution would best work on my Samsung R20. The laptop is relatively cheap, but I had expected it to be better supported by the major distros at least. Using the currently available LiveCDs I could basically choose between <a href="http://www.opensuse.org/">openSUSE 10.3</a> and <a href="http://www.mandriva.com/">Mandriva 2008</a>, because it were the only ones that actually were able to startx out of the box. The R20 has an integrated ATI Radeon Xpress 1250 graphics chip that seems to cause problems with many Linux distributions and I was especially disappointed by my previous Linux of choice: <a href="http://www.ubuntu.com/">Ubuntu</a> &#8211; it booted fine (7.10, also no luck with Kubuntu 7.10), but no X.</p>
<p>openSUSE works nicely out of the box, except for: correct screen size (forced me to 1024&#215;768 in the beginning), 3D support (didn&#8217;t work out of the box, and I never touched it henceforth) and WiFi (major point and I had no luck of getting it up and running). So openSUSE was a good option for an install because with a little tweaking here an there it would probably work well.</p>
<p>Looking at the <a href="http://www.mandriva.com/">Mandriva homepage</a> they claim to support 3D desktops, namely <a href="http://insitu.lri.fr/metisse/">Metisse</a> and <a href="http://www.compiz-fusion.org/">Compiz Fusion</a>. Looking at <a href="http://www.youtube.com/watch?v=E4Fbk52Mk1w">several YouTube videos</a> I know I wanted to see this in reality. The Mandriva 2008 LiveCD behaves almost identical to the openSUSE one, maybe it boots a bit faster. Screen resolution also had to be changed, but Mandriva supported the ATI x1250 out of the box, so I was looking forward to decent WiFi suport as well&#8230;no such luck! I played around with Compiz Fusion too and it works like a charm and really looks stunning! Sound and peripherals seem to work too, even the SD card reader. So I went on installing Mandriva 2008 on my Samsung R20, keeping the Vista Partition.</p>
<p>Finally the last thing to get up and running was WiFi. And here it gets dirty. I think I googled about 10 hours during the last 2 days, without finding the solution. Many people seem to be happy using the <a href="http://madwifi.org/">MadWiFi</a> drivers, some people seem to get it to work using <a href="http://ndiswrapper.sourceforge.net/joomla/">NDISwrapper</a> (you need the windows driver for the WiFi card). I started playing with both approaches, but since compiling new kernels and patching kernel modules are not really everyday tasks for me I kept on googling&#8230;and voila! I got it to work with changing only one boot option in <a href="http://en.wikipedia.org/wiki/GRUB">GRUB (the boot manager)</a>.</p>
<p>The problem seems to be generally related to a <a href="http://www.nvnews.net/vbulletin/showthread.php?t=75299#post968273">broken MMCONFIG implementation</a> on many systems. <a href="http://www.linlap.com/wiki/Samsung+R20#comment_1255">ACPI also seems to have related issues there</a>, but luckily the solution is as easy as editing a single line in a file.</p>
<p>You basically just need to add &#8220;<strong><em>pci=nommconf</em></strong>&#8221; as one of the boot options to your GRUB menu file: <em>/boot/grub/menu.lst</em></p>
<p>Here&#8217;s how my GRUB menu file looks now (line breaks inserted):<br />
<code>title linux<br />
kernel (hd0,4)/boot/vmlinuz<br />
    BOOT_IMAGE=linux<br />
    root=/dev/sda5<br />
    resume=/dev/sda6<br />
    splash=silent<br />
    vga=788<br />
    <span style="color: #ffffff">pci=nommconf</span><br />
initrd (hd0,4)/boot/initrd.img</code></p>
<p>After rebooting I could select the WiFi card in Mandriva Linux Control Center. Apparently it&#8217;s an &#8220;Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01)&#8221; &#8211; I thought it would be an AR5006X, but as long as it works I couldn&#8217;t care less.</p>
<p>I hope this helps somebody. For me as a non-Linux-geek, the problem would still have been easy to solve with my first search many hours ago if people that know what they&#8217;re talking about would take into consideration that this might not be the case for everybody else: the search basically led me <a href="http://www.linlap.com/wiki/Samsung+R20">here</a> (I was googling for &#8220;Samsung R20 Linux&#8221;) and the 2nd comment by Albert just says: &#8220;<em>Load kernel with option pci=nommconf</em>&#8221; &#8211; that&#8217;s like telling a Linux geek to just &#8220;<em>change the float gauge in the carb of a car</em>&#8221; or something.</p>
<p>Anyways it works and I think I can recommend the Samsung R20 as a Linux machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/32_linux-on-a-samsung-r20-with-3d-and-atheros-wifi.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>SSH vs. Putty private key files (.ppk) on MAC OS X</title>
		<link>http://www.g-roc.com/29_ssh-vs-putty-private-key-files-ppk-on-mac-os-x.html</link>
		<comments>http://www.g-roc.com/29_ssh-vs-putty-private-key-files-ppk-on-mac-os-x.html#comments</comments>
		<pubDate>Fri, 22 Feb 2008 17:05:45 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[Servers]]></category>
		<category><![CDATA[.ppk]]></category>
		<category><![CDATA[.ssh]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[passphrase]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[private key]]></category>
		<category><![CDATA[publickey]]></category>
		<category><![CDATA[putty]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/29_ssh-vs-putty-private-key-files-ppk-on-mac-os-x.html</guid>
		<description><![CDATA[I had some problems lately trying to connect to a customer&#8217;s server via SSH on my mac running Mac OS X 10.4.11. I was trying to use the provided .ppk file in mac&#8217;s OpenSSH command line tool, which didn&#8217;t work and just told me: &#8220;Permission denied (publickey).&#8221; after promting me to &#8220;Enter passphrase for key [...]]]></description>
			<content:encoded><![CDATA[<p>I had some problems lately trying to connect to a customer&#8217;s server via SSH on my mac running Mac OS X 10.4.11. I was trying to use the provided .ppk file in mac&#8217;s OpenSSH command line tool, which didn&#8217;t work and just told me: &#8220;Permission denied (publickey).&#8221; after promting me to &#8220;Enter passphrase for key &#8216;[keyfile.ppk]&#8216;&#8221;&#8230; so I looked around a bit and after a while came across a great little article on the topic <a href="http://leadingedgescripts.co.uk/converttosshkey.php">right here</a>.</p>
<p>So in order to use the private key file for putty.exe (the .ppk file) you need to convert it to a OpenSSH file first. The tool you need is called <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTYgen</a> and only runs in Windows. I have not come across a mac app to do that (too bad). Anyways, the only thing you have to do after launching puttygen.exe is to open the .ppk file, enter your passphrase and go to &#8220;Conversions&#8221; in the menu. Then save the file as an OpenSSH file.</p>
<p>Finally, after you put the .ssh file on your mac, you need to restrict the .ssh file&#8217;s permissions (&#8220;Get Info&#8221;, then under &#8220;Ownership &amp; Permissions&#8221;-&gt;&#8221;Details&#8221; set &#8220;No Access&#8221; for both &#8220;Group&#8221; and &#8220;Others&#8221;). Otherwise OpenSSH won&#8217;t let you use the file. Now you can connect to the server using this command line:</p>
<p><code>comp:~ your$: ssh -2 -i /path/sshfilename.ssh user@server.domain</code></p>
<p>Option &#8220;-2&#8243; is not required, at least for me and in this case. It forces ssh to protocol version 2, but it works without. This depends on the protocol the server requires and you need to try this. Also check out the ssh manual (type &#8220;man ssh&#8221;).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/29_ssh-vs-putty-private-key-files-ppk-on-mac-os-x.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New Gig</title>
		<link>http://www.g-roc.com/28_new-gig.html</link>
		<comments>http://www.g-roc.com/28_new-gig.html#comments</comments>
		<pubDate>Wed, 06 Feb 2008 22:48:30 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/28_new-gig.html</guid>
		<description><![CDATA[I&#8217;m doing some freelancing for Studio9 at the moment. Nice people there, lots of interesting work too, mostly Typo3, but also jQuery, HTML/CSS. So I am going to Munich a couple days a week&#8230;boy am I glad I got a new car last year.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m doing some freelancing for <a HREF="http://studioneun.de/">Studio9</a> at the moment. Nice people there, lots of interesting work too, mostly Typo3, but also jQuery, HTML/CSS. So I am going to Munich a couple days a week&#8230;boy am I glad I got a new car last year.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/28_new-gig.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Safari-Bug or Not? DOM Exception 7</title>
		<link>http://www.g-roc.com/27_safari-bug-or-not-dom-exception-7.html</link>
		<comments>http://www.g-roc.com/27_safari-bug-or-not-dom-exception-7.html#comments</comments>
		<pubDate>Tue, 11 Dec 2007 10:37:51 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/27_safari-bug-or-not-dom-exception-7.html</guid>
		<description><![CDATA[Here&#8217;s what happened: I was working on the Frost Ajax Library and using Safari Version 3.0.4 (523.12) for testing things. The document, index.php, was serverd to the browser using this content-type header: &#8220;application/xhtml+xml&#8221; and the DOCTYPE was &#8220;-//WAPFORUM//DTD XHTML Mobile 1.0//EN&#8221;. Now in Frost here&#8217;s a simple function that can put some text or HTML [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s what happened: I was working on the <a HREF="http://frostlib.org">Frost Ajax Library</a> and using Safari Version 3.0.4 (523.12) for testing things.</p>
<p>The document,<em> index.php</em>, was serverd to the browser using this content-type header: <em>&#8220;application/xhtml+xml&#8221;</em> and the DOCTYPE was <em>&#8220;-//WAPFORUM//DTD XHTML Mobile 1.0//EN&#8221;</em>.</p>
<p>Now in Frost here&#8217;s a simple function that can put some text or HTML to a container, basically using simple innerHTML like this:</p>
<p><code>//id and cont are passed to the function<br />
var ob = document.getElementById(id);<br />
ob.innerHTML = cont;</code></p>
<p>The strange behavior appeared when <em>cont</em> was empty. In this case Safari throws an exception:<strong> NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7</strong>.<br />
There is no exception thrown if <em>cont</em> is not empty though.</p>
<p>If you serve the document with content-type headers as <em>&#8220;text/html&#8221;</em> there is no exception and everything works as it should.</p>
<p>The consclusion so far is that Safari has a bug and rejects to see an empty string as a valid value for a container, apparently only when the document is pure XML.</p>
<p>A quick search produces <a HREF="http://readlist.com/lists/lists.rubyonrails.org/rails/3/18974.html">some</a> <a HREF="http://lists.apple.com/archives/Web-dev/2004/Apr/msg00122.html">similar</a> issues  floating around the web since a couple of years.</p>
<p>As a workaround my current solution is to encapsulate <em>cont</em> with proper tags like this:</p>
<p><code>//id and cont are passed to the function<br />
var ob = document.getElementById(id);<br />
<span STYLE="color: #ffffff">cont = "<_span_>"+cont+"<_/span_>";</span><br />
ob.innerHTML = cont;</code>(&lt;_span_&gt; should be &lt;span&gt; really &#8211; needed for showing this code)</p>
<p>Could make sense in one way, because documents served as real XML should be handled more restrictive and modifications should produce valid XML documents again. However if I just want to put some text in a tag and if this text happens to be empty this should work too. So why is Safari making a difference if the value filled into a tag with innerHTML is empty or not &#8211; is this a bug?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/27_safari-bug-or-not-dom-exception-7.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How-To Style Thickbox Inline Content Correctly</title>
		<link>http://www.g-roc.com/24_how-to-style-thickbox-inline-content-correctly.html</link>
		<comments>http://www.g-roc.com/24_how-to-style-thickbox-inline-content-correctly.html#comments</comments>
		<pubDate>Thu, 25 Oct 2007 09:02:25 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/24_how-to-style-thickbox-inline-content-correctly.html</guid>
		<description><![CDATA[ThickBox is a great library extension for jQuery. I use it often for showing messages and other dialogs on a page. There are 2 things to keep in mind when you want to show inline content (that&#8217;s content on the same page/in the same DOM, e.g. in a div with display:none;) using ThickBox: First of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jquery.com/demo/thickbox/">ThickBox</a> is a great library extension for <a href="http://jquery.com/">jQuery</a>. I use it often for showing messages and other dialogs on a page. </p>
<p>There are 2 things to keep in mind when you want to show inline content (that&#8217;s content on the same page/in the same DOM, e.g. in a div with display:none;) using ThickBox:</p>
<p>First of all, ThickBox takes an id of the container that contains the stuff you want to show in the box as an argument like this:<code>?height=300&#038;width=300&#038;inlineId=myOnPageContent</code>&#8230;here &#8220;myOnPageContent&#8221; is the id of the container. <strong>However ThickBox does not put the container element itself into the box that pops up!</strong> </p>
<p>Consequently you will have to surround the content of the box with another container that you then reference from your stylesheet in order to style the content of the box. Here&#8217;s an example:<br />
<code></p>
<div id="myOnPageContent">
<div id="contact">
<h2>Contact</h2>
<p>
            ...box content here...
        </p>
</p></div>
</div>
<p></code>This illustrates that &#8220;<em>myOnPageContent</em>&#8221; is the container ThickBox is looking for and we will use &#8220;<em>#contact {}</em>&#8221; to reference our elements from CSS.</p>
<p>Another problem is that the <strong>ThickBox CSS in thickbox.css already includes definitions for the box content</strong>, e.g. at line 9:<br />
<code><br />
#TB_window {<br />
    font: 12px Arial, Helvetica, sans-serif;<br />
    color: #333333;<br />
}<br />
</code>&#8230;and at some other places, so you either have to take this out the thickbox.css file (that&#8217;s what i do) or you overrule this with your own stylesheet definitions &#8211; watch out for the cascades!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/24_how-to-style-thickbox-inline-content-correctly.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>levelmedia in multi-language Typo3 sites</title>
		<link>http://www.g-roc.com/23_levelmedia-in-multi-language-typo3-sites.html</link>
		<comments>http://www.g-roc.com/23_levelmedia-in-multi-language-typo3-sites.html#comments</comments>
		<pubDate>Tue, 23 Oct 2007 10:35:02 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[Typo3]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/23_levelmedia-in-multi-language-typo3-sites.html</guid>
		<description><![CDATA[Problem: you have a Typo3 site with several languages you are using the media field in the page setup to show a header image or similar (under &#8220;Files:&#8221; in the page setup) you are using levelmedia in the typo3 template setup to put this media somewhere on the page the header image (media in general) [...]]]></description>
			<content:encoded><![CDATA[<p>Problem: </p>
<ul>
<li>you have a Typo3 site with several languages</li>
<li>you are using the media field in the page setup to show a header image or similar (under &#8220;Files:&#8221; in the page setup)</li>
<li>you are using levelmedia in the typo3 template setup to put this media somewhere on the page</li>
<li>the header image (media in general) is not shown in languages other than the default one</li>
</ul>
<p>Solution:</p>
<ul>
<li>go to the install tool of your Typo3 site</li>
<li>search for &#8220;pageOverlayFields&#8221; under &#8220;All Configuration&#8221;</li>
<li>take out &#8220;media&#8221; in the list of fields under [FE][pageOverlayFields]</li>
</ul>
<p>That&#8217;s it. Please keep in mind that ALL media now will be taken from the media field of the default language.</p>
<p>Thanks to <a href="http://www.typo3.net/forum/list/list_post//60726/?page=1&#038;sword=levelmedia%20sprache#pid225966">just2b at TYPO3.net</a> for mentioning the solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/23_levelmedia-in-multi-language-typo3-sites.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing FCE Error &#8220;langChildren = 0&#8243; in Typo3</title>
		<link>http://www.g-roc.com/21_fixing-fce-localization-error-langchildren-0-in-typo3.html</link>
		<comments>http://www.g-roc.com/21_fixing-fce-localization-error-langchildren-0-in-typo3.html#comments</comments>
		<pubDate>Sun, 16 Sep 2007 10:00:23 +0000</pubDate>
		<dc:creator>Rocco</dc:creator>
				<category><![CDATA[Typo3]]></category>

		<guid isPermaLink="false">http://www.g-roc.com/?p=21</guid>
		<description><![CDATA[Have you come across a strange error message in your Typo3 Flexible Content Elements (FCE) saying that &#8220;langChildren = 0&#8221; and it is probably a configuration error? You will probaby have looked around where to set this configuration value&#8230;and you will probably not have found it. So here&#8217;s how you can fix it: In TemplaVoila [...]]]></description>
			<content:encoded><![CDATA[<p>Have you come across a strange error message in your Typo3 Flexible Content Elements (FCE) saying that &#8220;<strong>langChildren = 0</strong>&#8221; and it is probably a configuration error? You will probaby have looked around where to set this configuration value&#8230;and you will probably not have found it. So here&#8217;s how you can fix it:</p>
<p>In  TemplaVoila look for your FCE&#8217;s data structure (DS) and klick on the pen next to the title, not the title, then you should see the XML of this DS starting like this:</p>
<p><code><br />
<?xml version="1.0" encoding="utf-8" standalone="yes" ?><br />
<T3DataStructure><br />
    <ROOT type="array"><br />
        ...<br />
    </ROOT><br />
</T3DataStructure><br />
</code><br />
There you need to add the meta section and add the langDisable and langChildren properties. For container Elements you will most likely not require different language versions, so setting the values to 1 for both properties works well. The XML of your DS should now look like this:</p>
<p><code><br />
<?xml version="1.0" encoding="utf-8" standalone="yes" ?><br />
<T3DataStructure><br />
    <span style="color: #fff"><meta type="array"><br />
        <langDisable type="integer">1</langDisable><br />
        <langChildren type="integer">1</langChildren><br />
    </meta></span><br />
    <ROOT type="array"><br />
        ...<br />
    </ROOT><br />
</T3DataStructure><br />
</code></p>
<p>This way translations are in the &#8220;separate&#8221; mode. However, for DS in multi-language sites a good way to go is the &#8220;Inheritance&#8221; mode. There you keep the page layout and structure across multiple pages, and content is inherited from the default language, so basically the translated version looks exactly the same as the one in the default language. The cool thing is that you can now translate selected content elements to other languages and keep others the way they are. So e.g. images can stay the same, but texts can now be translated.</p>
<p>You should definitely have a look at section &#8220;FlexForms&#8221; in the <a HREF="http://typo3.org/documentation/document-library/core-documentation/doc_l10nguide/1.0.0/view/1/3/">Frontend Localization Guide</a> , <a HREF="http://194.117.233.66/t3dl/localization_guide_2.pdf" TITLE="typo3 frontent localization guide">also available as PDF</a> for further reference! Hope this helps somebody.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.g-roc.com/21_fixing-fce-localization-error-langchildren-0-in-typo3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
