Unstoppable Domains

.mobi Open source cms & .mobi

Spaceship Spaceship
Watch

compubahn

Established Member
Impact
1
At the request of the OP on a related thread, I am starting this one re: drupal & .mobi.

I have been working with drupal for pc sites since early last year & started working with it for mobile sites. As mentioned on the other thread there is a mobile template available for 4.7 which can be easily edited to spice it up a bit if you have a little html/css ability.

http://drupal.org/project/mobile

Another theme that can easily be modified to work would be newsportal:
http://drupal.org/project/newsportal (no tables)

IMO, the largest opportunity is to use wurfl as mtld.mobi does to redirect based on device. There was no existing drupal module to do this so I had a programmer build a drupal module to switch themes or redirect based on device. Unfortunately, it doesn't work consistently yet & had to go on "hold" due to other projects which have a fixed due date. It just seems a shame to spend time & money developing & branding a "mobile" site without also being able to dynamically serve content formatted for a larger screen such as a laptop or upc. Traffic is traffic.

When the module is done, I will likely post a link for those that wish to try it out. It is doubtful that I will post it to drupal.org because I don't have the time resources to become it's maintainer.

Regardless, the topic of which cms is a fit for .mobi development is too important to let go.

There is also a wordpress plugin which does something similar (using wurfl) - but have not tested it & have no idea if it passes validation.

Eric
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
You are correct that this is an important topic in general, and I hope you don't mind my mentioning that I am working with another open source CMS called modx and will post back with results once completed.
 
0
•••
Good to know there are other options.

I read something about a wap plugin for joomla as well.

Scandiman, I don't mind at all. The thread is titled open source. I'll have to look into mdx as well.
 
0
•••
The subject of this thread is what i have been racking my brain on for the last month. I've posted about it a few times.

I have not tried drupal 4.7 with the mobile template. Do you have an example of what the default install would look like? Just out of curiosity. I am kinda hoping the will make the template for the newest version sometime soon. I don't like the idea of using older versions of a CMS as they get less support overtime.

I have been experimenting a bit with joomla (mamba) as well. I find it to be well supported and a bit more intuitive than drupal. However, I think drupal is excellent.

Basically, I have not found any CMS that out of the box is mobile compliant, they all seem to need a little bit of tweaking.

Hopefully, in the near future, their will be a CMS that supports a mobile and regular version of a site using wurfl right out of the box. For a few of the projects I will be working on I will definately need a PC version of the site to complement the mobile one.

I think CharlieA has been doing some great things lately, maybe he can chime in as well.
 
0
•••
Here is the link to a mobile module for drupal:

http://www.skiffie.com/mobile/module-files

http://www.leads.mobi has this module installed - but it was just a test. No content yet.

The drupal mobile theme linked in the first post looks similar without the 'accessibility' logo... plain text with a 'jump to menu' link at the top. The site nav appears at the bottom if enabled.
 
0
•••
I have experience with joomla.
It had wap addon, but it's too bugged and just forget about it.
I have mobile template, that i will share a bit later (but it's not mine). U can see it at http://n95.mobi

I must also mention SMF forum, that perfect works with wap, wap2, i-mode and web.
Try it at ubb.mobi

Great topic, wanna make it earlier
 
0
•••
karamba,
where did u get that template for joomla mobi?
did u use special version of Joomla as well?

i really want that!
:D
 
0
•••
Drupal templates are PHP. If you know PHP you can easily create one. Just plugin the Drupal variables around your own custom template and you're good to go.

If you have your own server switching between your mobi site and your "PC" site is easy also with Drupal's multi-hosting capabilties (no hacking of core files required). Everything can be run on the same codebase so upgrading is a snap.
 
0
•••
hm....then maybe 1st try with Drupal and then see if it worths migrating to Joomla.
I ve little knowledge with php but i always manage things as i want to.
Thank u...
 
0
•••
Poor man's user agent detection script(php)

If you don't care about screen size information and other info provided by wurfl, you can use the simple script I wrote for differentiating the traffic, it should cover most browsers(desktop and mobile phones). It is very simple and fast.

I use this script combined with wurfl.

Note: the script is not tested with all devices and may contain bugs. I welcome everyone to add and modify to make it as solid as possible. Also on the spider part, one should modify return value true/false according to one's need.

function isMobile()
{
$ua = $_SERVER["HTTP_USER_AGENT"];
// most desktop computers
if ( substr_count($ua, "Mozilla/5.0") > 0 || substr_count($ua, "Windows NT") >0 || substr_count($ua, "Macintosh") >0)
return false;
// spiders, need to add more
if ( substr_count($ua, "Googlebot") >0 ||
substr_count($ua, "msnbot") >0 ||
substr_count($ua, "Baidu") >0 )
return true;
// mobile devices, need to add more
$user_agent = strtolower($ua);
if ( substr_count($user_agent, "nokia") >0 ||
substr_count($user_agent, "up.browser") >0 ||
substr_count($user_agent, "mitsu") >0 ||
substr_count($user_agent, "sony") >0 ||
substr_count($user_agent, "sie-") >0 ||
substr_count($user_agent, "samsung") >0 ||
substr_count($user_agent, "mot-") >0 ||
substr_count($user_agent, "motorola") >0 ||
substr_count($user_agent, "sagem") >0 ||
substr_count($user_agent, "lg-") >0 ||
substr_count($user_agent, "nec-") >0 ||
substr_count($user_agent, "philips") >0 ||
substr_count($user_agent, "panasonic") >0 ||
substr_count($user_agent, "kwc-") >0 ||
substr_count($user_agent, "sanyo") >0 ||
substr_count($user_agent, "sharp") >0 ||
substr_count($user_agent, "vodafone") >0 ||
substr_count($user_agent, "wap") >0 ||
substr_count($user_agent, "opwv") >0 ||
substr_count($user_agent, "mobile") >0 ||
substr_count($user_agent, "blackberry") >0 ||
substr_count($user_agent, "ericsson") >0 ) {
return true;
}
return false;
}
 
Last edited:
1
•••
Thanks for the post hedgefund.

Would any of those user agents cover a pocket pc or smartphone running IE?

I have a (drupal) switch working on the mobi emulator but it fails on my pocket pc & loads the pc page.
 
0
•••
It should cover most popular brands, like nokia, motorola, sony/ericsson, blackberry. You can easily add more to the script.
 
0
•••
Thanks hedgefund.

I'll poke around & see if i can figure out what the agent is for this particular phone.

---------

I found this page on using drupal for mobile sites using multisites.

http://drake.roundpoint.co.uk/mtld_dev_site/drupal/?q=node/153

The (posted) code looks like the code from the accessibility module. However, none of the download links on the page work. The example given at 227net.com performs the switch properly with my phone & laptop.

The accessibility module I posted earlier does not. It works for some phones as tested on the mobi emulator... but my pocket pc phone loads the full version of the page using the accessibility module.
 
0
•••
here is template.
It's no need to use any other version of joomla. just this template.
But i must say that it gets only 3/5 on ready.mobi
 
0
•••
Hi there,

@compubahn - it is the same code.
I wrote it. The latest files are available on the accessibility homepage.

It hasn't been developed for a while, and hasn't yet been ported to Drupal v5 yet.
I am not sure whether it will be either, I find the "support" at Drupal a bit lacking :o

Anyhow, if you have any questions about the module, please ask here or
post comments on my site: skiFFie
 
0
•••
Hi Jabba,

Thanks for checking in & for the module! Nice work.

I figured out it was the same code. I left a comment a few days ago & I just saw your reply on the site. I just posted my results there. It looks like the trimmed version (mozi) would conflict/overlap with other browsers?

Best,

Eric
 
0
•••
0
•••
jabba_29 said:
Try the site now. I have also uploaded the new files on the site too...
accessibility file download

The original site I was testing has been updated to Drupal 5 so I dropped the new module on www.usbusinessleasing.com because it is running 4.7 & it didn't really matter if it broke... & it did (break).

Fatal error: Call to undefined function: stripos() in /home/usbusine/public_html/modules/accessibility/detect.inc.php on line 26.

For anyone else who wants to try this: stripos is a php5 function & will break a php4.x site.

I discovered this after I enabled accessibility in the settings as opposed to simply enabling the module. Guess I shouldn't have done that ;)

The quick fix is to delete the accessibility folder from the server. The site should work again.
 
Last edited:
0
•••
0
•••
Oops, seems I removed this from the detect.inc.php file.
New files are being uploaded currently.

PHP:
if (!function_exists('stripos')) {
    function stripos($haystack, $needle, $offset=0) {
        return strpos(strtolower($haystack), strtolower($needle), $offset);
    }
}
 
0
•••
Dynadot โ€” .com Registration $8.99Dynadot โ€” .com Registration $8.99
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back