Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > 3rd Party Projects > Projects > Mythbuntu
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Mythbuntu
Discussions for the Mythbuntu project.

 
Thread Tools Display Modes
Old September 10th, 2008   #1
volkswagner
Fresh Brewed Ubuntu
 
volkswagner's Avatar
 
Join Date: May 2007
Location: NY's first capitol
Beans: 1,250
Ubuntu 9.04 Jaunty Jackalope
Can I force Mythweb not to use WAP

I have a flash enabled cell phone. Even if I try to force mythweb to reset template it still uses wap.

Code:
http://mydomain.com/mythweb/'?RESET_TMPL=true'
I tried the above on my N95 via Nokia browser and Opera mini. It still uses the WAP settings.

Can I watch media on my phone?
__________________
Nothing is ever easy, but if it is difficult you must be doing it wrong.
volkswagner is offline   Reply With Quote
Old September 10th, 2008   #2
managementboy
Just Give Me the Beans!
 
Join Date: Jul 2008
Beans: 48
Re: Can I force Mythweb not to use WAP

Quote:
Originally Posted by volkswagner View Post
I have a flash enabled cell phone. Even if I try to force mythweb to reset template it still uses wap.

Code:
http://mydomain.com/mythweb/'?RESET_TMPL=true'
I tried the above on my N95 via Nokia browser and Opera mini. It still uses the WAP settings.

Can I watch media on my phone?
I guess there are two ways of doing this, either change the referer settings on your phone (if even possible) to something like firefox or check the

mythweb/includes/mobile.php

file, that contains all the mobile phones
managementboy is offline   Reply With Quote
Old September 10th, 2008   #3
volkswagner
Fresh Brewed Ubuntu
 
volkswagner's Avatar
 
Join Date: May 2007
Location: NY's first capitol
Beans: 1,250
Ubuntu 9.04 Jaunty Jackalope
Re: Can I force Mythweb not to use WAP

Thanks for the reply. I can't find the file you listed.

Code:
find: mobile.php: No such file or directory
EDIT: I found it. I was using the wrong syntax, to find in any directory.
__________________
Nothing is ever easy, but if it is difficult you must be doing it wrong.

Last edited by volkswagner; September 10th, 2008 at 08:16 PM..
volkswagner is offline   Reply With Quote
Old September 10th, 2008   #4
volkswagner
Fresh Brewed Ubuntu
 
volkswagner's Avatar
 
Join Date: May 2007
Location: NY's first capitol
Beans: 1,250
Ubuntu 9.04 Jaunty Jackalope
Re: Can I force Mythweb not to use WAP

Not sure if this helps.

From apache access.log, using phone from outside network wap.

Code:
12.168.xx.xx - - [10/Sep/2008:20:41:56 -0400] "GET /mythweb/'?RESET_TMPL=true' HTTP/1.1" 401 504 "-" "Mozilla/5.0 (SymbianOS/9.2; U; Series60/3.1 NokiaN95_8GB-3/1.2.011 Profile/MIDP-2.0 Configuration/CLDC-1.1 ) AppleWebKit/413 (KHTML, like Gecko) Safari/413"
I get the same on local network.

Attached mobile.php, if anyone can suggest how/what to edit. I am open to global WAP off if need be.
__________________
Nothing is ever easy, but if it is difficult you must be doing it wrong.
volkswagner is offline   Reply With Quote
Old September 14th, 2008   #5
volkswagner
Fresh Brewed Ubuntu
 
volkswagner's Avatar
 
Join Date: May 2007
Location: NY's first capitol
Beans: 1,250
Ubuntu 9.04 Jaunty Jackalope
Re: Can I force Mythweb not to use WAP

Even if I could get mythweb to display the non wap interface, playing flash vids on the N95 is far off.

http://www.gossamer-threads.com/list...v/users/337645

__________________
Nothing is ever easy, but if it is difficult you must be doing it wrong.
volkswagner is offline   Reply With Quote
Old September 14th, 2008   #6
Nikas
Gee! These Aren't Roasted!
 
Join Date: Oct 2007
Location: Sweden
Beans: 175
Ubuntu 9.10 Karmic Koala
Re: Can I force Mythweb not to use WAP

Do you need the ' ?

Try with http://mydomain.com/mythweb/?RESET_TMPL=true
Nikas is offline   Reply With Quote
Old September 15th, 2008   #7
volkswagner
Fresh Brewed Ubuntu
 
volkswagner's Avatar
 
Join Date: May 2007
Location: NY's first capitol
Beans: 1,250
Ubuntu 9.04 Jaunty Jackalope
Re: Can I force Mythweb not to use WAP

Thanks for the suggestion. I get a page that says

"An unknown module was specified"

Do you know how I can disable WAP?
__________________
Nothing is ever easy, but if it is difficult you must be doing it wrong.
volkswagner is offline   Reply With Quote
Old March 7th, 2009   #8
ufgrat
First Cup of Ubuntu
 
Join Date: Sep 2006
Beans: 2
Re: Can I force Mythweb not to use WAP

It's an old post, but since I found it while looking for the answer (and it put me on the right track), I figured I should contribute.

In the file 'includes/mobile.php', force the function 'isMobileUser' to return a false value:

Code:
function isMobileUser() {
  return false;
#  return (getScreenSize() === false) ? false : true;
}
Note... this COMPLETELY disables WAP support. No, really. Your mythweb installation will never, ever, ever recognize a device as needing WAP.

Hope that helps someone...
ufgrat is offline   Reply With Quote
Old July 1st, 2009   #9
volkswagner
Fresh Brewed Ubuntu
 
volkswagner's Avatar
 
Join Date: May 2007
Location: NY's first capitol
Beans: 1,250
Ubuntu 9.04 Jaunty Jackalope
Re: Can I force Mythweb not to use WAP

Quote:
Originally Posted by ufgrat View Post
It's an old post, but since I found it while looking for the answer (and it put me on the right track), I figured I should contribute.

In the file 'includes/mobile.php', force the function 'isMobileUser' to return a false value:

Code:
function isMobileUser() {
  return false;
#  return (getScreenSize() === false) ? false : true;
}
Note... this COMPLETELY disables WAP support. No, really. Your mythweb installation will never, ever, ever recognize a device as needing WAP.

Hope that helps someone...

Thanks, It sure helped me!
__________________
Nothing is ever easy, but if it is difficult you must be doing it wrong.
volkswagner is offline   Reply With Quote
Old July 8th, 2009   #10
molder
5 Cups of Ubuntu
 
Join Date: Feb 2006
Location: Austin
Beans: 28
Ubuntu 9.04 Jaunty Jackalope
Re: Can I force Mythweb not to use WAP

My MythWeb is stuck in WAP mode. http://ubuntuforums.org/showthread.php?t=919440

I changed /usr/share/mythtv/mythweb/includes/mobile.php per http://ubuntuforums.org/showthread.php?t=919440

I preferred the original better.

I tried following the instructions in reverse but now everything still gets the WAP treatment. I added the suggested above line of code
Quote:
function isMobileUser() {
return false;
# return (getScreenSize() === false) ? false : true;
}
Still getting WAPed in Firefox.

Last edited by molder; July 8th, 2009 at 07:40 PM..
molder is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:36 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry