LACUNY Mobile Technology Roundtable

Public Group active 5 months ago ago

LACUNY Mobile Technology Roundtable

Group logo of LACUNY Mobile Technology Roundtable
← All Topics Leave a Reply

Browser Sniffer Code (5 posts)

Topic tags:
  • Profile picture of Stephen Klein Stephen Klein said 2 years, 6 months ago:

    This PHP snippet is what I use for re-directing to a mobile version of a page:
    (merely edit name of page on bottom of snippet from “home_mobile.html” to the name of your mobile page.

    Caveats:
    =>Not sure if EZProxy web-server (not Apache with PHP) can handle PHP code. Will test and let you know.
    => Not sure if OCLC hosted ILLiad service can handle PHP either. Will test and let you know.

    Also have code that redirects from standalone PHP to WP based site, if desired.

  • Profile picture of Stephen Klein Stephen Klein said 2 years, 6 months ago:

    OK, info from OCLC suggests we need to find a non-PHP based solution:

    To begin with, you can add whatever you like to the HTML pages. Though, there is no guarantee that they will work with EZproxy. Sadly, we do not provide PHP or HTML support, only EZproxy support. So, any changes that you make will not be something that we can/will assist with customizing.

    There have been no development plans made for ILLiad to work on mobile devices. However, the ILLiad patron web pages out of the box should mostly work using mobile browsers, but they are not currently optimized for mobile access. Using the current web pages and the CSS files, a site with technical web developers could make these changes for themselves.

  • Profile picture of Stephen Klein Stephen Klein said 2 years, 6 months ago:

    Was not able to post PHP, so you can see here:

    http://library.gc.cuny.edu/mobile.txt

  • Profile picture of Stephen Klein Stephen Klein said 2 years, 6 months ago:

    Think the ticket according to EZProxy list is:

    CSS media queries instead. See http://css-tricks.com/css-media-queries/ for an excellent demonstration of this.

  • Profile picture of Junior Tidal Junior Tidal said 2 years, 6 months ago:

    Thanks for posting this Stephen. Here at City Tech, we’re using a Drupal plug-in called mobile tools to redirect the site, but we’re having trouble redirecting Android devices. This could be an appropriate solution!

css.php