×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: mobile version

mobile version 13 years 2 months ago #14008

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi guys,

I know that someone was asking for this before, but I wanna be more specific. I am thinking in something like the following examples:
Img #1


Img #2


Img #3

mobile version 13 years 2 months ago #14011

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
WOW, to be honest - this looks so awesome and I want to sit down and code it :)

But first I'll need to learn everything about iphone development, android development + phone7 development :)

Cheers,
Daniel

mobile version 13 years 2 months ago #14014

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
:D
I am glad you like the idea, but it looks that will take a while to develop it if you are planning to create an application, but if you just create a website (only hotspot included) that fits a mobile screen, we can redirect the users in one direction or another one.

Our sites can detect users using mobile devices or computers, once this is done, we can redirect them to the mobile version of the website or to the regular version.

mobile version 13 years 2 months ago #14066

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
SO, for the last couple of days I've been playing with appcelerator: www.appcelerator.com/

It seems that I will be able to write a mobile app :) I just need to find out what the mobile google maps is able to do and what not, refactor hotspots code to be more RESTful, refactor the js so that is modular and can be used both in the desktop and mobile version...

Wow, actually it looks like a lot of work haha :)

Cheers,
Daniel

mobile version 13 years 2 months ago #14068

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Yes, it could be more work now, but that means less work in the future once everything is organized by modules.

Are you creating an application or a web mobile friendly version?

mobile version 13 years 1 month ago #14098

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm searching for ways to have a mobile app. Currently checking appcelerator and phonegap.

mobile version 13 years 1 month ago #14111

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Just a question:

How will you manage an application to be compatible with every single different use of hotspots?

I am still thinking that the best way to go will be a customized hotspots for mobile devices (based on web and not in an application)

mobile version 13 years 1 month ago #14126

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
I'm researching both options. A mobile view seems to be easier, but is actually not. To have a mobile view I should practically turn off your site template, and replace it with the hotspots mobile template - which doesn't seem easy to do.

On the other hand - a mobile app - here we have the problem that I need to insert url of your hotspots installation in the app. This means that I will always have to do some work for the client... But on the other hand - your app will be listed in the android/iphone/windows marketplaces - giving you bigger exposure...

Perhaps a combination of the 2 will be the right way to go. We will see what code epiphany is waiting for me around the corner :D

Cheers,
Daniel

mobile version 13 years 1 month ago #14133

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Hi Daniel,

About the mobile option:
You can create a mobile view of hotpots (out of joomla) - let's name it: mobile hotpots - but capable to read the database from hotspots. We will modify the database and info with our regular hotspots component using the admin panel in joomla, and - mobile hotpots - will automatically take the new values from hotspots database.
Once you create this mobile version of hotspots, you can zip the main file (php or html) with all the folders. We can take that file, unzip it, and upload the files to an specific folder in our server using an ftp software.

mobile version 13 years 1 month ago #14134

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Our users can be re-direct to that folder if they are using a mobile device with the following code:
<?php 
 
function detect_mobile()
{
    $_SERVER['ALL_HTTP'] = isset($_SERVER['ALL_HTTP']) ? $_SERVER['ALL_HTTP'] : '';
 
    $mobile_browser = '0';
 
    if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone|iphone|ipad|ipod|android|xoom)/i', strtolower($_SERVER['HTTP_USER_AGENT'])))
        $mobile_browser++;
 
    if((isset($_SERVER['HTTP_ACCEPT'])) and (strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml') !== false))
        $mobile_browser++;
 
    if(isset($_SERVER['HTTP_X_WAP_PROFILE']))
        $mobile_browser++;
 
    if(isset($_SERVER['HTTP_PROFILE']))
        $mobile_browser++;
 
    $mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
    $mobile_agents = array(
                        'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',
                        'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','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','palm','pana','pant','phil','play','port','prox',
                        '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(strpos(strtolower($_SERVER['ALL_HTTP']), 'operamini') !== false)
        $mobile_browser++;
 
    // Pre-final check to reset everything if the user is on Windows
    if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows') !== false)
        $mobile_browser=0;
 
    // But WP7 is also Windows, with a slightly different characteristic
    if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'windows phone') !== false)
        $mobile_browser++;
 
    if($mobile_browser>0)
        return true;
    else
        return false;
}
 
$mobile = detect_mobile();
 
if($mobile === true)
    header('Location: http://www.google.com');
else
	header('Location: http://www.cnn.com');
 
?>
The code has been tested on android system and it works.

mobile version 13 years 1 month ago #14209

  • Eliecer Marchante
  • Eliecer Marchante's Avatar Topic Author
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 493
  • Karma: 11
  • Thank you received: 13
Plus a mobile version of hotspots will be compatible with all mobiles because it will be based on a browser as the actual hotspots.

Creating an application, you will have to create one application for each mobile system.

Once the mobile version is created, we can create applications for each mobile system just pointing them to the mobile version of hotspots.

mobile version 13 years 1 month ago #14210

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Phonegap actually works on nearly all devices - as all they do is giving you a html5 browser to do your coding... We will see - the refactoring of the system goes well...
I'm following the ideas explained by Nicholas Zakas in this video:
yuilibrary.com/theater/nicholas-zakas/zakas-architecture/

and the new hotspots is going to be modular and cool! You could remove one part of the application and the rest will continue to function... yeaaaa ...

Cheers,
Daniel

mobile version 13 years 4 days ago #14537

  • Tommi Tossavainen
  • Tommi Tossavainen's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Would it be possible to get a KML and GPX export option for mobile users? No need for custom apps, when you can open all POI:s in Google Maps or your navigation software.
  • Page:
  • 1
Time to create page: 0.153 seconds