LinHES Forums http://forums.linhes.org/ |
|
cell phones and mythweb wap/wml http://forums.linhes.org/viewtopic.php?f=3&t=13615 |
Page 1 of 1 |
Author: | elgordo123 [ Thu Jan 18, 2007 5:41 pm ] |
Post subject: | cell phones and mythweb wap/wml |
I used to be able to use my cell phone to schedule recordings in previous versions of mythweb. It doesn't work anymore and is a known problem. I tried to follow posts on mythtv-users, editing init.php and mobile.php, but nothing worked. I couldn't fix it, but I made a nice work around. I created a second mythweb directory called mythwap. I forced the skin/theme to use wap rather than full size default and created an entry on the initial index.html page. As root: cp -R /usr/share/mythtv/mythweb /usr/share/mythtv/mythwap chmod -R a+rw /usr/share/mythtv/mythwap (A little much but so what) ln -s /usr/share/mythtv/mythwap /var/www/mythwap cd /var/www/mythwap/modules/_shared/tmpl mv default default-orig ln -s wap default (creates a symlink so it thinks wap is the default skin) nano /var/www/index.html and after <dif style="text-align: left;"><big><br> <br> add this: <a href="mythwap/mythweb.php">MythWap</a>:<br> <br> Save and test from your mobile phone. Works great on older PPC's too. One more thing: If you want to run your own wap gateway or want to have your own customizable web page of links for your cell phone you can create a file called findurl.php in /var/www. Mine includes a url entry window along with my own links. You will also want to add another entry in index.html as before, except it will look like: <a href="findurl.php">Cell links</a><br> My findurl.php file: (The URL entry part how-to was very hard to find) <?php if(isset($_POST['Submit'])){ $base = "http://"; $url = $base . $_POST['url']; $file = @fopen($url,"r"); if($file){ header("Location: $url"); } else{ $err = "$url URL does not exist"; } } ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Cell Links</title> </head> <body> <?php if(isset($err)){ echo $err; } ?> <form id="form1" name="form1" method="post" action=""> <label> <input type="text" name="url" /> </label> <label> <input type="submit" name="Submit" value="Submit" /> </label> </form> <br><a href="http://www.google.com/pda">Google</a><br> <a href="http://m.gmail.com">Gmail</a><br> <a href="http://mobile.srh.weather.gov">Ntl Wthr Serv</a><br> <a href="http://www.yahoo.com">Yahoo</a><br> </body> </html> |
Author: | thornsoft [ Thu Jan 18, 2007 5:59 pm ] |
Post subject: | |
Great - I will try this. I may also hack a little and get a better page showing the upcoming schedule, with a lot less verbage/garbage than it has now. |
Author: | tzoom84 [ Thu Jul 05, 2007 3:02 pm ] |
Post subject: | |
Bringing up an old thread here but I just trieid this verbatim and I am now getting the following error when I click on that MythWap Link: Database Setup Error The database environment variables are not correctly set in the included .htaccess file. Please read through the comments included in the file and set up the db_* environment variables correctly. Some possible solutions are to make sure that mod_env is enabled in httpd.conf, as well as having followed the instructions in the README about the AllowOverride settings. Any ideas? I have httpd.confs in the following folders: ./etc/apache2/httpd.conf ./usr/share/apache/default-configs/apache/httpd.conf ./usr/share/apache/default-configs/apache-perl/httpd.conf ./usr/share/apache/default-configs/apache-ssl/httpd.conf I assumed it is the /etc/apache2 one, but that is empty. Hmm. |
Author: | elgordo123 [ Thu Jul 05, 2007 6:28 pm ] |
Post subject: | |
try doing this also: cd to /etc/apache2/site-enabled cp mythwebdir mythwapdir edit mythwapdir and change path to /var/www/mythwap restart apache2, /etc/init.d/apache2 restart (if that doesnt work then change to basicAuth type of security) |
Author: | tzoom84 [ Fri Jul 06, 2007 7:45 am ] |
Post subject: | |
Thanks! It worked out. Although mythwebdir in /etc/apache2/sites-enabled was a symlink to mythwebdir in /etc/apache2/sites-available. So I just copied/adjusted that one and created a new symlink in /etc/apache2/site-enabled. Worked great. I noticed that the wap directory created in this workaround only had css.php, footer.php, header.php, and welcome.php. The listings page is still currently big for a cell phone screen. So I'll adjust the mythwap directory to clean up the display. It also looks like /etc/mythtv/mythweb-config.php has switch-cases for the template type (tmpl). So I'll see if can somehow force the mythwap directory into the 'wap' template so that adjusting the display is easier. Thanks again! |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |