TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,220
  • Total Topics: 21,352
  • Online today: 633
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 611
  • Total: 611

Wap 1.0 error

Started by AcidBurN, March 02, 2006, 01:41:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bloc

It should do this automatic really..I will add it to the next release. :)

AcidBurN

Quote from: technodragon73 on March 09, 2006, 02:57:34 AM
QuoteThis should fix it...
Code:

function template_wap_above()
{

   global $context, $settings, $options;

   // Show the xml declaration...
header("Content-type: text/vnd.wap.wml");
   echo '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>';

}


change your wap above template

then make another template

function template_wap()
{
header('Location: ?action=forum;wap');
}

I had exactly the same problem with my forum...I cannot remember where I read it at but after you install TinyPortal you need to change the link to the following:

http://YOURFORUMADDRESS/index.php?action=forum;wap
http://YOURFORUMADDRESS/index.php?action=forum;wap2
http://YOURFORUMADDRESS/index.php?action=forum;imode

you do not need to edit any code...you just need to change the way you word the address in the cell phone.

That will only fix the URL, but the page itself will NOT be valid wml!

Quote from: Bloc on March 09, 2006, 10:01:32 AM
It should do this automatic really..I will add it to the next release. :)
Thanx Bloc... :)

technodragon73

only the frontpage of a TP site...if you stay within the board itself it works fine...I have been using my site in my cell phone for several weeks now with no problems as long as I navigate away from the tp frontpage (i solved that by having the front page turned off and go straight to the board index).

AcidBurN

lol i would not want to turn off my front page thou, as thats the reason why i installed tinyportal, to link everything to my forums :)

technodragon73

Quotelol i would not want to turn off my front page thou, as thats the reason why i installed tinyportal, to link everything to my forums

I can undersdtand that, i have a regular home page and for me the forum is an addition to it...but for many that I have seen the forum is their website.  More of a suggestion if many people use the cell phone way to access the forum.

This website is proudly hosted on Crocweb Cloud Website Hosting.