Joomla! mobile template!

Discuss the development and implementation of Joomla! 1.0.x templates here.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Locked
mamola23
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu Jan 19, 2006 11:43 pm

Joomla! mobile template!

Post by mamola23 » Thu Jan 26, 2006 1:56 pm

Hi all,

In a short periode i installed Joomla and as far as i can see this is great stuff!
The main idea for me was to create a mobile site and there for i found this add-on/template
XE Mobile (XE Media)

A live preview of this template can be found here!

Now i was wondering if other members here also discoverd this template and if they can confirm it works with Joomla 1.0.7 or just with Mambo 4.5.2 or higher?

As for now i have problems using this template over Joomla 1.0.7 the problem is is that the navigation button's don't show up, the only thing that is displayed is the Newsflash item :(

Thanx for helping

Grentz
Joomla! Apprentice
Joomla! Apprentice
Posts: 29
Joined: Mon Jan 16, 2006 6:36 am

Re: Joomla! mobile template!

Post by Grentz » Sat Jan 28, 2006 4:35 am

On my site (http://www.techislands.com) I use a modified Xe Mobile for the mobile version of the site (you are automatically redirected there if you are on a mobile device and go to http://www.techislands.com)

For the nav, yes it does not work, but you can go and edit the index.php in an html editor (like frontpage) and add the links your self (just copy from your current main menu). For me it works great as i do not change my menu items that often.

you can click this to view the template on your main browser:
http://www.techislands.com/index.php?jo ... =xe_mobile

And to go back to the normal layout:
http://www.techislands.com/index.php?jo ... larflareII

surge
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Jun 22, 2006 10:06 am

Re: Joomla! mobile template!

Post by surge » Thu Jun 22, 2006 12:14 pm


User avatar
tfuller
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 218
Joined: Tue Sep 20, 2005 11:30 pm
Location: Oregon
Contact:

Re: Joomla! mobile template!

Post by tfuller » Wed Apr 18, 2007 11:05 pm

How does the automatic redirection to the mobile template work - what is the code you use?
Author of component Joomla Bible Study:
http://www.JoomlaBibleStudy.org

User avatar
zuze
Joomla! Explorer
Joomla! Explorer
Posts: 290
Joined: Sat Feb 11, 2006 9:43 pm
Location: Birmingham, USA
Contact:

Re: Joomla! mobile template!

Post by zuze » Wed May 09, 2007 9:45 pm

tfuller wrote: How does the automatic redirection to the mobile template work - what is the code you use?
I am interested in this as well.
The key to your life is how well you deal with plan "B".
Latvian Project http://joomlacode.org/gf/project/joomla_latvian/ | http://www.joomlalv.org

Bouvrie
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat May 19, 2007 3:34 pm
Location: Arnhem, Kingdom of the Netherlands

Re: Joomla! mobile template!

Post by Bouvrie » Sat May 19, 2007 3:39 pm

I got the following from somewhere ... Is the best one I found so far. Just put the code below in a "mobdetect.php" or something and require or include the file in your /index.php

Code: Select all

<?php
$mobile_browser = '0';
if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|vodafone|o2|pocket|mobile|pda|psp)/i',strtolower($_SERVER['HTTP_USER_AGENT']))){
$mobile_browser++;
}
if(((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'text/vnd.wap.wml')>0) or (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')>0)) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))){
$mobile_browser++;
}
$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
$mobile_agents = array('acs-','alav','alca','amoi','audi','aste','avan','benq','bird','blac','blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','htc','inno','ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-','maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-','newt','noki','oper','opwv','palm','pana','pant','pdxg','phil','play','pluc','port','prox','qtek','qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar','sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-','tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp','wapr','webc','winw','winw','xda','xda-');
if(in_array($mobile_ua,$mobile_agents)){
$mobile_browser++;
}
if($mobile_browser>0){
header ("Location: http://mobile.yoururl.com/"); // is a mobile device
exit;
}else{
// not a mobile, thus continue...
}
?>
Yet its not specific for Joomla. There might be something better like an extension out there :-)
Last edited by Bouvrie on Sat May 19, 2007 3:44 pm, edited 1 time in total.

User avatar
tfuller
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 218
Joined: Tue Sep 20, 2005 11:30 pm
Location: Oregon
Contact:

Re: Joomla! mobile template!

Post by tfuller » Sat May 19, 2007 6:15 pm

Thanks! I'll try it out.
Author of component Joomla Bible Study:
http://www.JoomlaBibleStudy.org

zarbizarre
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Apr 14, 2007 11:14 pm

Re: Joomla! mobile template!

Post by zarbizarre » Mon May 21, 2007 9:21 pm

Bouvrie wrote: I got the following from somewhere ... Is the best one I found so far. Just put the code below in a "mobdetect.php" or something and require or include the file in your /index.php

Code: Select all

<?php
$mobile_browser = '0';
if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|vodafone|o2|pocket|mobile|pda|psp)/i',strtolower($_SERVER['HTTP_USER_AGENT']))){
$mobile_browser++;
}
if(((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'text/vnd.wap.wml')>0) or (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')>0)) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))){
$mobile_browser++;
}
$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
$mobile_agents = array('acs-','alav','alca','amoi','audi','aste','avan','benq','bird','blac','blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','htc','inno','ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-','maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-','newt','noki','oper','opwv','palm','pana','pant','pdxg','phil','play','pluc','port','prox','qtek','qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar','sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-','tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp','wapr','webc','winw','winw','xda','xda-');
if(in_array($mobile_ua,$mobile_agents)){
$mobile_browser++;
}
if($mobile_browser>0){
header ("Location: http://mobile.yoururl.com/"); // is a mobile device
exit;
}else{
// not a mobile, thus continue...
}
?>
Yet its not specific for Joomla. There might be something better like an extension out there :-)


that works great, thanx!!!

robs22
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Fri Dec 29, 2006 7:05 pm

Re: Joomla! mobile template!

Post by robs22 » Wed May 23, 2007 3:48 pm


AmyStephen
Joomla! Champion
Joomla! Champion
Posts: 7056
Joined: Wed Nov 22, 2006 3:35 pm
Location: Nebraska
Contact:

Re: Joomla! mobile template!

Post by AmyStephen » Wed May 23, 2007 3:57 pm

Those of you exploring mobi and Joomla! -

I want to point out this post: dot mobi and joomla development where sa247 who built the Love My Poker mobi site with Joomla!, is looking to work with others to "to help move forward a joomla dot mobi solution for everyone to use."

Thanks for considering!
Amy :)

sa247
Joomla! Explorer
Joomla! Explorer
Posts: 271
Joined: Sat Sep 16, 2006 8:50 pm
Location: San Antonio, Texas
Contact:

Re: Joomla! mobile template!

Post by sa247 » Wed May 23, 2007 4:45 pm

hi guys,

awesome post glad people are taking to joomla and cell phone layouts - i like that layout!

not sure if it is a concern of yours though but check the site with the dot mobi ready report and you will notice a couple of issues that are minor. This report tests the mobile-readiness of your site using industry best practices & standards.

test link ---> http://ready.mobi/launch.jsp?locale=en_EN

We are working on a layout that meets all the standards required, the http://www.lmpoker.mobi, was until a few days meeting all but one of the criteria, client changed the site!

We are going to take the site and put it on another domain as a demo site but with the correct standards in place.

Since creating this initial site we have fixed some of the issues we had originally with this site and are about to design another one that we want to make 100% compatible.

Any input or comments greatly appreciated.

Spencer
Joomla! Apprentice
Joomla! Apprentice
Posts: 27
Joined: Tue Sep 19, 2006 8:09 pm

Re: Joomla! mobile template!

Post by Spencer » Tue Jun 05, 2007 12:59 am

How do you require ??? .....code for?


zarbizarre wrote:
Bouvrie wrote: I got the following from somewhere ... Is the best one I found so far. Just put the code below in a "mobdetect.php" or something and require or include the file in your /index.php

Code: Select all

<?php
$mobile_browser = '0';
if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|vodafone|o2|pocket|mobile|pda|psp)/i',strtolower($_SERVER['HTTP_USER_AGENT']))){
$mobile_browser++;
}
if(((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'text/vnd.wap.wml')>0) or (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')>0)) or ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))){
$mobile_browser++;
}
$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
$mobile_agents = array('acs-','alav','alca','amoi','audi','aste','avan','benq','bird','blac','blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','htc','inno','ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-','maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-','newt','noki','oper','opwv','palm','pana','pant','pdxg','phil','play','pluc','port','prox','qtek','qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar','sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-','tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp','wapr','webc','winw','winw','xda','xda-');
if(in_array($mobile_ua,$mobile_agents)){
$mobile_browser++;
}
if($mobile_browser>0){
header ("Location: http://mobile.yoururl.com/"); // is a mobile device
exit;
}else{
// not a mobile, thus continue...
}
?>
Yet its not specific for Joomla. There might be something better like an extension out there :-)


that works great, thanx!!!

Physicist
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Sat Apr 14, 2007 9:16 am
Location: Russia
Contact:

Re: Joomla! mobile template!

Post by Physicist » Thu Jun 07, 2007 11:28 am

Look at the simple way: PDA-mambot.
Last edited by Physicist on Thu Jun 07, 2007 11:30 am, edited 1 time in total.
Denis Ryabov, Lead Developer of Mobile Joomla! extension (https://www.mobilejoomla.com/)

AntiS3
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Fri Feb 03, 2006 1:47 am

Re: Joomla! mobile template!

Post by AntiS3 » Wed Jun 20, 2007 7:23 pm

The link to PDA-Mambot is not working!!!

I would appreciate any info to dowload this mambot

Thanks!!

Physicist
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Sat Apr 14, 2007 9:16 am
Location: Russia
Contact:

Re: Joomla! mobile template!

Post by Physicist » Thu Jun 21, 2007 3:17 am

There was a failure on a server therefore a site some days did not work. Now the site functions normally.

Just in case, here the link to mambot's page on joomlacode: http://joomlacode.org/gf/project/pda/
Denis Ryabov, Lead Developer of Mobile Joomla! extension (https://www.mobilejoomla.com/)

hansmik
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Mon Jun 25, 2007 11:35 am

Re: Joomla! mobile template!

Post by hansmik » Mon Jun 25, 2007 11:37 am

Great work, Physicist!

Is there any way to disable images in the template? All my articles have images, but I don't want these to be show in the WAP-version of my site, because they take too long to load. But how do I do this?

Best,
Hans Mikkelsen

Physicist
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 121
Joined: Sat Apr 14, 2007 9:16 am
Location: Russia
Contact:

Re: Joomla! mobile template!

Post by Physicist » Mon Jun 25, 2007 4:04 pm

hansmik wrote: Is there any way to disable images in the template?
http://physicist.phpnet.us/2007/06/22/p ... omment-102
Denis Ryabov, Lead Developer of Mobile Joomla! extension (https://www.mobilejoomla.com/)

AdamCox9
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Mar 12, 2008 8:12 pm
Contact:

Re: Joomla! mobile template!

Post by AdamCox9 » Wed Mar 12, 2008 8:14 pm

Will the generated code be XHTML compliant via the w3c verify website?
Signature rules: Literal URLs only - http://forum.joomla.org/viewtopic.php?f=8&t=65

dxwolf
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jul 05, 2008 9:09 am

Re: Joomla! mobile template!

Post by dxwolf » Wed Jul 09, 2008 8:39 am

The script works great, it redirects, but I have 1 question about the header redirection location. Is it possible to redirect to the same site but with a different template? what URL i need to give to redirect to the same site but changing the layout? Im asking this because i dont think its a good solution having 2 joomlas running :-S

dxwolf
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Jul 05, 2008 9:09 am

Re: Joomla! mobile template!

Post by dxwolf » Thu Jul 17, 2008 2:24 pm

I got 1 question, imagine i create a link in the mobile version saying, "see site full version"... how can I go there and bypass the redirecting script, I tryed many thing but because the script is included in the index.php of main site it always checks if its mobile...


any ideas?

sarshen
Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Mar 15, 2010 11:24 am
Location: Durban, South Africa

Re: Joomla! mobile template!

Post by sarshen » Tue Jun 01, 2010 10:00 am

good day I am also trying to create a mobile site but i have no idea where to begin, i have not been using joomla for long , can anyone help me
thanks

lucysweet
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jun 01, 2010 9:18 pm

Re: Joomla! mobile template!

Post by lucysweet » Tue Jun 01, 2010 9:30 pm

Here's a great mobile theme that works straight out of the box, I've installed it on a site with the demo data and worked perfectly.

All you need to do is tweak the CSS and you're done.

http://themeforest.net/item/joomla-mobi ... heme/16040

jayjoomluh
Joomla! Explorer
Joomla! Explorer
Posts: 365
Joined: Tue Aug 21, 2007 4:23 pm

Re: Joomla! mobile template!

Post by jayjoomluh » Sat Sep 10, 2011 4:52 am

for all you still struggling over this question may i suggest you just install and enable

plg mobile bot, it works out of the box on all phones no need to config anything or mess with any code, its even shown to be far better then the "mobile joomla" component, FAR BETTER

try it on my site, nothing live yet but it is running the mobile bot plugin, FYI on blackberrys the pics dont scroll this is a bb problem not joomla

works flawless on android phones

http://www.realityoneradio.com/ztek/myspec
Whats Wrong With It? All I Did Was Change That One Line Of Code!

:pop

jdadeksis
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Dec 24, 2011 8:08 pm

Re: Joomla! mobile template!

Post by jdadeksis » Sat Dec 24, 2011 8:20 pm

hello all,

after i enabled mobilebot i got this error

Code: Select all

Fatal error: Call to a member function isAdmin() on a non-object in C:\xampp\htdocs\Joomla\plugins\system\mobilebot\mobilebot.php on line 173
in mobilebot.php line 173 its written

Code: Select all

if ($mainframe->isAdmin()) return;
for a newbie i dont really know what to do rite now :(

Any help is appreciated, thanks.

ruegdeg
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Feb 06, 2011 1:37 am

Re: Joomla! mobile template!

Post by ruegdeg » Thu Oct 11, 2012 6:26 am

just remove the directory where mobile.php is.


Locked

Return to “Templates & CSS - 1.0.x”