<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Cruncht</title>
	<atom:link href="http://cruncht.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://cruncht.com</link>
	<description>Semantic web development and publishing</description>
	<lastBuildDate>Mon, 16 Jan 2012 17:27:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Mobile Drupal (part 2): Site setup by Katie</title>
		<link>http://cruncht.com/419/mobile-drupal-site-setup/#comment-17915</link>
		<dc:creator>Katie</dc:creator>
		<pubDate>Mon, 16 Jan 2012 17:27:58 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=419#comment-17915</guid>
		<description>I run a multisite where each site has a subdomain - site1.somedomain.com. Each site has it&#039;s own database, but shares code files. 

1. Is it possible to set up a subdomain of a subdomain for a mobile site? m.site1.somedomain.com. 
2. If that&#039;s not advisable, any suggestions on how to best set up the mobile sites?</description>
		<content:encoded><![CDATA[<p>I run a multisite where each site has a subdomain &#8211; site1.somedomain.com. Each site has it&#8217;s own database, but shares code files. </p>
<p>1. Is it possible to set up a subdomain of a subdomain for a mobile site? m.site1.somedomain.com.<br />
2. If that&#8217;s not advisable, any suggestions on how to best set up the mobile sites?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mobile Drupal (part 1): The groundwork by Michael Wagener</title>
		<link>http://cruncht.com/417/mobile-drupal-groundwork/#comment-12997</link>
		<dc:creator>Michael Wagener</dc:creator>
		<pubDate>Mon, 21 Nov 2011 19:27:17 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=417#comment-12997</guid>
		<description>Hi Peter:

As far as I understand, Mobile Tools is dependent upon a WURFL back-end for device detection, and WURFL has changed the licensing terms for their product.  May be worthwhile pausing a moment to contemplate the implications prior to implementation - basically not free for commercial use anymore, which I understand, having read their reasons (http://tech.groups.yahoo.com/group/wmlprogramming/message/34311), however there are cost implications that do need to be considered now.  More about the new license and pricing can be found at ScientiaMobile&#039;s website - http://www.scientiamobile.com/site/index


Kind regards :)</description>
		<content:encoded><![CDATA[<p>Hi Peter:</p>
<p>As far as I understand, Mobile Tools is dependent upon a WURFL back-end for device detection, and WURFL has changed the licensing terms for their product.  May be worthwhile pausing a moment to contemplate the implications prior to implementation &#8211; basically not free for commercial use anymore, which I understand, having read their reasons (<a href="http://tech.groups.yahoo.com/group/wmlprogramming/message/34311" rel="nofollow">http://tech.groups.yahoo.com/group/wmlprogramming/message/34311</a>), however there are cost implications that do need to be considered now.  More about the new license and pricing can be found at ScientiaMobile&#8217;s website &#8211; <a href="http://www.scientiamobile.com/site/index" rel="nofollow">http://www.scientiamobile.com/site/index</a></p>
<p>Kind regards <img src='http://cdn-small.cruncht.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The Uriverse Experiment is Over by Goonbroab</title>
		<link>http://cruncht.com/618/uriverse-experiment-over/#comment-11769</link>
		<dc:creator>Goonbroab</dc:creator>
		<pubDate>Wed, 09 Nov 2011 14:56:02 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=618#comment-11769</guid>
		<description>What is this</description>
		<content:encoded><![CDATA[<p>What is this</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mobile Drupal (part 3): Code by Murray Woodman</title>
		<link>http://cruncht.com/421/mobile-drupal-code/#comment-10457</link>
		<dc:creator>Murray Woodman</dc:creator>
		<pubDate>Sat, 29 Oct 2011 00:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=421#comment-10457</guid>
		<description>Good stuff Roger. That looks a nice way to do it.

Admittedly, I should have poked around with context a bit more to work out how to create my own before writing this article. It&#039;s not that hard. A little while after writing the article I noticed that Mobile Tools supports Context now. That might be another option.

http://mobiledrupal.com/content/using-context-module-mobile-tools-create-mobile-specific-contexts</description>
		<content:encoded><![CDATA[<p>Good stuff Roger. That looks a nice way to do it.</p>
<p>Admittedly, I should have poked around with context a bit more to work out how to create my own before writing this article. It&#8217;s not that hard. A little while after writing the article I noticed that Mobile Tools supports Context now. That might be another option.</p>
<p><a href="http://mobiledrupal.com/content/using-context-module-mobile-tools-create-mobile-specific-contexts" rel="nofollow">http://mobiledrupal.com/content/using-context-module-mobile-tools-create-mobile-specific-contexts</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mobile Drupal (part 3): Code by Roger Saner</title>
		<link>http://cruncht.com/421/mobile-drupal-code/#comment-10412</link>
		<dc:creator>Roger Saner</dc:creator>
		<pubDate>Fri, 28 Oct 2011 16:29:10 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=421#comment-10412</guid>
		<description>Thanks for the helpful guide - it got me started nicely :)


I&#039;m running my mobile site off a subdomain (so I have www.example.com and m.example.com). Both domains point to sites/example.com and then in my settings.php I do a check, and if the url starts with &quot;m&quot; then I set my mobile theme as the default.

I wanted to use contexts to do my block placements in my mobile theme - but as you say, it&#039;s not easy. Possible, though! First, I added the following to settings.php

&lt;code&gt;
 $parts = explode(&#039;.&#039;, $_SERVER[&#039;HTTP_HOST&#039;]);
 if ($parts[0] == &#039;m&#039;) {
    $conf[&#039;theme_default&#039;] = &#039;fusion_mobile&#039;;
    $conf[&#039;site_frontpage&#039;] = &#039;mobile&#039;;
}
&lt;/code&gt;

That sets the theme as default and gives me a custom frontpage that I want to show for mobile devices.

Then I created my context and did the block placements for it. Note: I didn&#039;t add any conditions to activate the context, since I&#039;m going to do that in a module, like so:

&lt;code&gt;
function mymodule_init() {
  if ($GLOBALS[&#039;conf&#039;][&#039;theme_default&#039;] == &#039;fusion_mobile&#039;) {
    $context = context_load(&#039;ui_mobile_sitewide&#039;);
    context_set(&#039;context&#039;, &#039;ui_mobile_sitewide&#039;, $context);
  }
}
&lt;/code&gt;

...and that loads my context whenever my theme is active. It works with aggressive page caching too.</description>
		<content:encoded><![CDATA[<p>Thanks for the helpful guide &#8211; it got me started nicely <img src='http://cdn-small.cruncht.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I&#8217;m running my mobile site off a subdomain (so I have <a href="http://www.example.com" rel="nofollow">http://www.example.com</a> and m.example.com). Both domains point to sites/example.com and then in my settings.php I do a check, and if the url starts with &#8220;m&#8221; then I set my mobile theme as the default.</p>
<p>I wanted to use contexts to do my block placements in my mobile theme &#8211; but as you say, it&#8217;s not easy. Possible, though! First, I added the following to settings.php</p>
<p><code><br />
 $parts = explode('.', $_SERVER['HTTP_HOST']);<br />
 if ($parts[0] == 'm') {<br />
    $conf['theme_default'] = 'fusion_mobile';<br />
    $conf['site_frontpage'] = 'mobile';<br />
}<br />
</code></p>
<p>That sets the theme as default and gives me a custom frontpage that I want to show for mobile devices.</p>
<p>Then I created my context and did the block placements for it. Note: I didn&#8217;t add any conditions to activate the context, since I&#8217;m going to do that in a module, like so:</p>
<p><code><br />
function mymodule_init() {<br />
  if ($GLOBALS['conf']['theme_default'] == 'fusion_mobile') {<br />
    $context = context_load('ui_mobile_sitewide');<br />
    context_set('context', 'ui_mobile_sitewide', $context);<br />
  }<br />
}<br />
</code></p>
<p>&#8230;and that loads my context whenever my theme is active. It works with aggressive page caching too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mobile Drupal (part 3): Code by Jayendra kumar</title>
		<link>http://cruncht.com/421/mobile-drupal-code/#comment-9159</link>
		<dc:creator>Jayendra kumar</dc:creator>
		<pubDate>Thu, 20 Oct 2011 06:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=421#comment-9159</guid>
		<description>This is really very helpful tutorial.</description>
		<content:encoded><![CDATA[<p>This is really very helpful tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mobile Drupal (part 3): Code by Brad</title>
		<link>http://cruncht.com/421/mobile-drupal-code/#comment-5482</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Thu, 15 Sep 2011 14:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=421#comment-5482</guid>
		<description>Thank you for the &quot;Custom Variables&quot; section.  The Google Analytics example really inspired me.  Combing the &#039;variables&#039; table resulted in another gem, turning off Mobile Tools redirection on a per site basis.
&lt;code&gt;
$conf = array(
 &#039;mobile_tools_redirect&#039; =&gt; &#039;0&#039;,
);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Thank you for the &#8220;Custom Variables&#8221; section.  The Google Analytics example really inspired me.  Combing the &#8216;variables&#8217; table resulted in another gem, turning off Mobile Tools redirection on a per site basis.<br />
<code><br />
$conf = array(<br />
 'mobile_tools_redirect' =&gt; '0',<br />
);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mobile Drupal (part 2): Site setup by Murray Woodman</title>
		<link>http://cruncht.com/419/mobile-drupal-site-setup/#comment-5160</link>
		<dc:creator>Murray Woodman</dc:creator>
		<pubDate>Sun, 11 Sep 2011 10:44:52 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=419#comment-5160</guid>
		<description>Hi Derek. If you want to customize the page output depending on the device AND use page caching then you are going to have to cache different versions for each site. The examples I give above assume that you have two sites: mobile and desktop. In your case it sounds like you have three. Following the recipe above I&#039;d say that you would need to have each on different sub domains and make sure each site is cached separately. This should stop the problem you are describing.

You might want to consider a more lightweight approach and hide menu options using CSS and JS. If the two sites are different only for the menu options, you could hide the options for iPhone/iPad users by testing the device client side and then setting display:none for the menu items. This would stop you from having to cache two mobile sites which were essentially the same.

Hope that helps.</description>
		<content:encoded><![CDATA[<p>Hi Derek. If you want to customize the page output depending on the device AND use page caching then you are going to have to cache different versions for each site. The examples I give above assume that you have two sites: mobile and desktop. In your case it sounds like you have three. Following the recipe above I&#8217;d say that you would need to have each on different sub domains and make sure each site is cached separately. This should stop the problem you are describing.</p>
<p>You might want to consider a more lightweight approach and hide menu options using CSS and JS. If the two sites are different only for the menu options, you could hide the options for iPhone/iPad users by testing the device client side and then setting display:none for the menu items. This would stop you from having to cache two mobile sites which were essentially the same.</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mobile Drupal (part 2): Site setup by Derek</title>
		<link>http://cruncht.com/419/mobile-drupal-site-setup/#comment-5074</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Fri, 09 Sep 2011 20:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=419#comment-5074</guid>
		<description>Hi. Read your article and found it very insightful and helpful.  We are in the midst of converting our site to mobile.

We are a kids site that uses primarily Flash to build educational games and are trying to find a way to hide that section from iPhone and iPad users and only use one theme for mobile via domain access module.

Is there a way to set a global variable via browser detection per user to hide 2 elements of an navigation or load a different drupal menu call?

So the navigation would be:

iPhone iPad user
Homepage &#124; Apps &#124; Schedule &#124; Contact

Android, RIM Users
Homepage &#124; Games &#124; Videos &#124; Apps &#124; Schedule &#124; Contact

I keep running into the fact that whoever hits the page caches the device variable which doesn&#039;t work if a user comes in with an iPad but the user who cached it had an Android device.

Any suggestions would be great.</description>
		<content:encoded><![CDATA[<p>Hi. Read your article and found it very insightful and helpful.  We are in the midst of converting our site to mobile.</p>
<p>We are a kids site that uses primarily Flash to build educational games and are trying to find a way to hide that section from iPhone and iPad users and only use one theme for mobile via domain access module.</p>
<p>Is there a way to set a global variable via browser detection per user to hide 2 elements of an navigation or load a different drupal menu call?</p>
<p>So the navigation would be:</p>
<p>iPhone iPad user<br />
Homepage | Apps | Schedule | Contact</p>
<p>Android, RIM Users<br />
Homepage | Games | Videos | Apps | Schedule | Contact</p>
<p>I keep running into the fact that whoever hits the page caches the device variable which doesn&#8217;t work if a user comes in with an iPad but the user who cached it had an Android device.</p>
<p>Any suggestions would be great.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Mobile Drupal (part 1): The groundwork by Murray Woodman</title>
		<link>http://cruncht.com/417/mobile-drupal-groundwork/#comment-4590</link>
		<dc:creator>Murray Woodman</dc:creator>
		<pubDate>Mon, 05 Sep 2011 12:04:25 +0000</pubDate>
		<guid isPermaLink="false">http://cruncht.com/?p=417#comment-4590</guid>
		<description>@peter It sure does. I didn&#039;t know about Omega when I wrote the article. However, since discovering it I&#039;d say that it would be my go to theme for sure when it comes to responsive web design. Mobile Tools has also made some big leaps forward since writing the article as well.</description>
		<content:encoded><![CDATA[<p>@peter It sure does. I didn&#8217;t know about Omega when I wrote the article. However, since discovering it I&#8217;d say that it would be my go to theme for sure when it comes to responsive web design. Mobile Tools has also made some big leaps forward since writing the article as well.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Content Delivery Network via cdn-small.cruncht.com

Served from: cruncht.com @ 2012-02-04 18:55:59 -->
