This MOD will be helpful for those who use their smart phones to access, modify, and close existing tickets. It's not aesthetically pleasing, but loads a LOT faster over a cellular network, and gets the job done.

First off, we need to have a mobile browser detector, which I've attached the script courtesy of DetectMobileBrowsers.mobi. (If this is used for commercial software, please support them at (http://detectmobilebrowsers.mobi/?switch=full#upgrade))

The PHP code does a good job at detecting a wide range of browsers and allows the functionality of customizing depending on the mobile browser in use.

Simply unzip and upload the attached file into /include/staff

After that, edit /include/staff/header.inc.php

ADD:

<?

//MOD by michael.therrien 7/24/09

if(isset($_GET))$_SESSION="TRUE";

if(isset($_GET))unset($_SESSION);

include("mobile_device_detect.php");

if(!isset($_SESSION) && mobile_device_detect(true,true,true,true,true,true,false,false))

{

echo"Welcome to osTicket Mobile!<br>";

}

else

{ ?>

BEFORE:

<link rel="stylesheet" href="css/main.css" media="screen">

Then ADD:

<?}?>

Before:

</head>

Then ADD:

<?if(mobile_device_detect(true,true,true,true,true,true,false,false)){ if(isset($_SESSION))echo"<a href=\"index.php?mobile\">Mobile"; else echo"<a href=\"index.php?full\">Full";echo" Version</a> | ";};?>

BEFORE:

<a href="logout.php">Log Out</a></p>

Hope this is handy!!!

UPDATE FOR THOSE WHO'VE ALREADY INSTALLED THE MOD: Updated attachment, many more phones supported, no need to change any code. There is still a few known incompatibilities, however there are a few workarounds in the comments section (if you have issues).

[mobile_device_detect.php.zip](https://forum.osticket.com/assets/files/migrated/e/9104c763f2e5e3bd44aa19045831b76.zip)

14 days later

would be good if we can provide the ticket creation screen on mobile for client.

a month later

Example Site

Can you include a screengrab or example page to show how it displays the mobile version?

@[deleted]: This would be easy (nearly the exact same MODs). I haven't done it because I don't use client submissions at this point.

@[deleted]: Here's a screenshot from my iPhone with a few things editted out:

blank

a month later

Fantastic! I do a lot of my business on the go so this is just what I needed. Thank-you!

3 months later

Great mod! ! !

I use my phone to submit tickets and check the status on a daily basis. This is a great addition. Kudos and good work!

is it working on all mobiles?

exam: nokia, ericson, samsung?

does it have tutorial on how to implement it on client page?

thanks! and im loving it! hehehe

5 days later

Supported browsers/phones

Glad everyone is liking the MOD!! :)

Here's a list of the browsers/phones that are supported. Please forgive me for putting the ugly-code-looking text up, it would take a while to reformat, and I'm not even quite sure what some of them are:

ipod, iphone, Android, opera mini, blackberry, pre, palm os, palm, hiptop,

avantgo, fennec, plucker, xiino, blazer, elaine, iris, 3g_t, windows ce,

opera mobi, windows ce; smartphone;, windows ce; iemobile, mini 9.5, vx1000,

lge , m800, e860, u940, ux840, compal, wireless, mobi, ahong, lg380, lgku,

lgu900, lg210, lg47, lg920, lg840, lg370, sam-r, mg50, s55, g83, t66, vx400,

mk99, d615, d763, el370, sl900, mp500, samu3, samu4, vx10, xda_, samu5,

samu6, samu7, samu9, a615, b832, m881, s920, n210, s700, c-810, _h797, mob-x,

sk16d,848b, mowser, s580, r800, 471x, v120, rim8, c500foma:, 160x, x160, 480x,

x640, t503, w839, i250, sprint, w398samr810, m5252, c7100, mt126, x225, s5330,

s820, htil-g1, fly v71, s302, -x113, novarra, k610i, -three, 8325rc, 8352rc,

sanyo, vx54, c888, nx250, n120, mtk , c5588, s710, t880, c5005, i;458x, p404i,

s210, c5100, teleca, s940, c500, s590, foma, samsu, vx8, vx9, a1000, _mms, myx,

a700, gu1100, bc831, e300, ems100, me701, me702m-three, sd588, s800, 8325rc,

ac831, mw200, brew , d88, htc, htc_touch, 355x, m50, km100, d736, p-9521, telco,

sl74, ktouch, m4u, me702, 8325rc, kddi, phone, lg , sonyericsson, samsung, 240x,

x320vx10, nokia, sony cmd, motorola, up.browser, up.link, mmp, symbian,

smartphone, midp, wap, vodafone, o2, pocket, kindle, mobile, psp, treo

Did I do this right?

UPDATE: Updated attachment, many more phones supported, no need to change any code. There is still a few known incompatibilities, however there are a few workarounds in the comments section (if you have issues).

Let's see if I did this right.

I downloaded the file, placed it in include/staff and unzipped.

It created a subfolder with the same name as the file; the file is inside there.

Is that it or do I need to move this back into include/staff?

I can access the site with my Blackberry, but I don't think it looks as low-bandwidth friendly as your screen snap.

Thanks for all the work. I'm eager to get this going.

Murph

Let's see if I did this right.

I downloaded the file, placed it in include/staff and unzipped.

It created a subfolder with the same name as the file; the file is inside there.

Is that it or do I need to move this back into include/staff?

I can access the site with my Blackberry, but I don't think it looks as low-bandwidth friendly as your screen snap.

Thanks for all the work. I'm eager to get this going.

Murph

My "UPDATE" text was only for those who previously installed the MOD.

If you are new to this MOD, please follow ALL of the steps like normal. (You need to download the file, unzip it, and place the PHP file directly into include/staff)

My "UPDATE" text was only for those who previously installed the MOD.

If you are new to this MOD, please follow ALL of the steps like normal. (You need to download the file, unzip it, and place the PHP file directly into include/staff)

Thanks. I thought it was a bit easy!

4 months later

Page blank after code is inserted

I get a blank page for /scp when I access it w/ the full browser after I update the code in header.inc.php.

i even tried the header.inc.php.mobile file

Using Os ticket 1.6 (just upgraded and it nice)

Thank You

3 months later

Thanks!

Hi,

I've followed the steps laid out here and it works fine EXCEPT...

When I'm attempting to assign a ticket to a staff member, I click on the Assign button but all the browser does is reposition the screen so that the scroll bar is in the left hand position. Nothing else happens, even when the button is clicked again.

I'd be grateful for any help :)

Cheers,

Nick

Assign Issues

Hello Nick,

Are you sure that you're typing something into the Comments box before clicking the "Assign" button? This is a required field.

If so, what browser (phone) are you using? It works fine on my iPhone.

Thanks!

Michael Therrien

Hi,

I've followed the steps laid out here and it works fine EXCEPT...

When I'm attempting to assign a ticket to a staff member, I click on the Assign button but all the browser does is reposition the screen so that the scroll bar is in the left hand position. Nothing else happens, even when the button is clicked again.

I'd be grateful for any help :)

Cheers,

Nick

Hi,

First of all, thanks for the quick reply - I only posted that question a short while ago!

I included a very short note in the comment box - just the words "For you."

I also typed in a fairly lengthy reply in the first box and the same thing happened there.

Apologies, I should have said... I'm using a BlackBerry Bold 9700 with the standard BlackBerry browser :)

Many thanks again,

Nick

This sounds like a browser issue. The code below is the form on the mobile page, which is a standard HTML form.

Can you submit any of the forms on any of the mobile pages?

If you click on "Full Version", can you submit the forms there?

Assign to Staff

Staff Member:

-Select Staff Member.-

Therrien, Mike

 *

Comments/message for assignee.  ()

 *

wrap="soft" style="width%;">

Hi,

First of all, thanks for the quick reply - I only posted that question a short while ago!

I included a very short note in the comment box - just the words "For you."

I also typed in a fairly lengthy reply in the first box and the same thing happened there.

Apologies, I should have said... I'm using a BlackBerry Bold 9700 with the standard BlackBerry browser :)

Many thanks again,

Nick

19 days later

clarification on code to inject

ya i had a couple quick questions because when i go to load the page on computer it comes up blank and on android phone using dolphin browser and even iphone its telling me error page could not be found.. my questions are highlited in red.

on this part

Then ADD:

<?}?>

Before:

</head>

there already is a <?}?> do i add another one or is the one that is already there enough?

and on this part

Then ADD:

<?if(mobile_device_detect(true,true,true,true,true,true,false,false)){ if(isset($_SESSION))echo"<a href=\"index.php?mobile\">Mobile"; else echo"<a href=\"index.php?full\">Full";echo" Version</a> | ";};?>

BEFORE:

<a href="logout.php">Log Out</a></p>

| My Preference | Log Out

is my actual line so do i add it before the part highlited in green? or the line up above it.?

a month later

ya i had a couple quick questions because when i go to load the page on computer it comes up blank and on android phone using dolphin browser and even iphone its telling me error page could not be found.. my questions are highlited in red.

on this part

Then ADD:

<?}?>

Before:

</head>

there already is a <?}?> do i add another one or is the one that is already there enough?

and on this part

Then ADD:

<?if(mobile_device_detect(true,true,true,true,true,true,false,false)){ if(isset($_SESSION))echo"<a href=\"index.php?mobile\">Mobile"; else echo"<a href=\"index.php?full\">Full";echo" Version</a> | ";};?>

BEFORE:

<a href="logout.php">Log Out</a></p>

| My Preference | Log Out

is my actual line so do i add it before the part highlited in green? or the line up above it.?

Hey I just set this up for myself and I can answer you:

1. Yes add an additional <?}?> because the previous one closes php code _inside_ of what you're adding.

2. Your line should read:

..previous code..| <a href="profile.php?t=pref">My Preference</a> |<?if(mobile_device_detect(true,true,true,true,true,true,false,false)){ if(isset($_SESSION))echo"<a href=\"index.php?mobile\">Mobile"; else echo"<a href=\"index.php?full\">Full";echo" Version</a> | ";};?> <a href="logout.php">Log Out</a></p>

Hope this helps... although after a bit over a month, you probably figured it out. Maybe someone else reading this will find this helpful.

Thanks to the OP for this wonderful mod.

2 months later

Adapting this code for the client side

Hi has anyone one adapted the code for the client side? I tried using the same code however I only get a blank white page. Any help would be appreciated.

PS Thanks a million the code works flawlessly on the scp side.

Great MOD, works great. Thank you.