Site

Drupal and Internationalization

Well, I learned yesterday that you can do translation in drupal with the locale module but the posts don't show up correctly unless you have the internationalization module.

Without the internationalization module every blog entry I made was posted once for each language in which it was translated. When I enabled the content translation in the internationalization module everything was kosher.

One thing I wanted that I didn't see was for the language to be automatically detected when the someone used the url es.savanthongvanh.com. I'm still working on that.

Enabling Clean URLs

In the first step in the SEO process I've enabled clean URLs in Drupal. All I had to do was change my .htaccess file by uncommenting the line:

RewriteBase /

One step down, a dozen or so to go...

Contact

I'd love to hear from you. Email me using this for or just hit me up on twitter with the link in the right sidebar.

Email:
Subject:

Text:

Mobile client detection redux

Here's a quick snippet for detecting the major mobile cilents:

<?php
$isIphone=strpos($_SERVER['HTTP_USER_AGENT'],'iPhone');
$isRIM=strpos($_SERVER['HTTP_USER_AGENT'],'BlackBerry');
$isCE=strpos($_SERVER['HTTP_USER_AGENT'],'Windows CE');

$isNotIphone=(false==$isIphone);
$isNotRIM=(false==$isRIM);
$isNotCE=(false==$isCE);

$isFullBrowser = ($isNotIphone && $isNotRIM && $isNotCE);
?>

Note to self, don't disable login block...

So today I stood up another Drupal site. It's been a while since I'd done so. Everything was still pretty straight forward but I do want to note one thing.

I ignorantly disabled the login block. Ignorantly, not unknowingly or unwittingly, intentionally disabled it because I'm the only on that's going to be updating the site. The idea was to discourage people to attempt to sign up for a Drupal account. Great idea, I'll just disable the login block. Done!

Syndicate content