Drupal 4.7 with Mobile Theme

Is anyone running a Mobile site.... and if so what theme are you using.

I'm thinking Wireframe just might work.

(can't use site search for the moment - not back yet from site upgrade)

like the upgrade and look froward to the new search engine :-))

thanks

Comments

green monkey’s picture

I was just thinking after the above post.

Would having "no theme" work?

( in planning stage - trying to decide 4.6 or 4.7 )

StevenSokulski’s picture

4.7 is expected to be fully operational very soon. Nobody knows quite when it'll be fully tested and de-bugged but it shouldn't be long. Also, the feature set doesn't shring from 4.6 to 4.7 so it makes the most sense to jump right into 4.7. Especially when you look at the list of 4.7 compatible modules.

Seems a bit of a waste to get your site operational on .6 only for .7 to be ready soon after. However you're talking to a guy whose running all of his sites on 4.6 still.

gateone’s picture

Now, what you achiev is more or less just a matter of themes, not so much of drupal. Drupal outputs some very neat and lean xHTML, so there is a brilliant start. Now, you might want to define with what you mean precisely by a "mobile site"! Is this a site you want to make available for Pocket PCs / Sidekicks / Palm devices, with a fairly "large" screen, or are you talking about a site to be viewed by mobile phones (WAP / iMode...)?

In the first case, things are quite easy as these devices carry a regular web browser and your screen design will work if it fits the size of the typical mobile device screen.

If you are talking about a WAP / iMode side: well, here things will get a bit more complicated. In theory WAP and iMode are (more or less) variations of xHTML, but all with their own headers etc. - on WAP e.g. we are talking WML not (x)HTML. WML still looks quite familiar if you comare it to HTML, but it has its specialties. iMode will look even a bit more like clean xHTML.

So for WAP / iMode sites your template needs to incorporate different structures, like a different head portion and I have not yet tested if that will fully work with Drupal or any other typical CRM out there; but in theory it should work.

What I would advice to you: set up your site with several themes. Of course, they all "look" the same, but are each specific to the user's hardware platform. The initial user visit would best be done from a regular computer. You will have these users create an account and log on, and then choose from the theme in the user profile to suit their favourite access device and save this choise there in the user profile.

To make more then one theme available, just enable the various themes in the admin/theme section, and choose the "regular Computer" one as the default. In each user/x area the user can then decide which theme to choose from!

Hope this gives you some idea about how to do it, you might want to Google for "WML" if you want to do a WAP site, or for "NTT DoCoMo iMode specifications" to find out how to code an iMode compatible site...

In the meantime, as someone earlier said, I also would opt for using 4.7 !

Good look, Steve

Mr Maggoo’s picture

It would be nice to use the frontpage module to detect the browser the user is using.
Then apply a theme in the same way as the drupal theme garden does.

I'm sure this could be done, i'm quite interested in this myself, so I'll have a look and get back to you.

M

jabba_29’s picture

My domain is running multiple themed sites that have been tweaked for mobile use too.
I have a device detection script running and it spits out the relevant templates accordingly.
I had to do quite a bit of changes to a few files so that it removed certain things,
pager.inc
common.inc
theme.inc

then run a script to change non-wml tags for example when the ob_start's in the settings.php file.

It is essentially a scaled down version of the full site, but it gives mobile browsers an idea of what is going on...

Regards

Jamie

227net

green monkey’s picture

that is cool - I didn't even about the automatic detection.

So are you happy with the results?

- got a URL for show and tell?

jabba_29’s picture

It is in my sig :)

You can see different versions at subdomains too, but main domain should detect the device:

http://mobi.227net.com
http://wap.227net.com
http://imode.227net.com
http://www.227net.com should show xhtml to gecko browsers and under normal circumstances html for internet explorer - however I haven't worked out how to (can't be bothered trying to) remove the xml declaration.

Regards

Jamie

227net

jabba_29’s picture

Further to this post,
I have actually built a module that emulates this feature.

There are a few issues currently, (caching),
though it is working almost as expected in a live environment.
Files and information can be found in the link in my signature.

The site in my sig, skiFFie, is a better example
as the content as been written with mobile access in mind.
The 227net site's contents were just made.
The content has been broken down in some parts of the site,
but if it is older than 3 months then it is really too large for mobile devices.

If anyone want to help me on this,
please get in touch through the site: skiFFie.

Regards

Jamie

skiFFie?

jabba_29’s picture

Please delete - this is a duplicate.

jabba_29’s picture

The accessibility module has been release at last to CVS.

You can get the latest files for Drupal v5x from the project pages: here
The latest module files for Drupal v4.7x can be found here.

Themes ideas are available here.

Please give feedback :)

Regards

Jamie

skiFFie: home of the accessibility module?