PDA

View Full Version : WAP headers


Michi
09-30-2003, 12:03 PM
I'm making my vbulletin WAP- compatible, and have gotten to the point where unregistered users can post new threads and reply to old ones via WAP. But I got stuck with the redirect page (uses template standardredirect). I made a wap- version of the template, which is 100% validated WML. Still, the redirect page is the only one that my wap browser (WinWap 3.1 pro) says is not wml, but text/html.

In the beginning of the source code of a working page, WinWap shows this header:

HTTP/1.1 200 OK
Date: Tue, 30 Sep 2003 12:26:09 GMT
Server: Apache/1.3.28 (Unix) mod_watch/3.18 mod_gzip/1.3.26.1a PHP/4.3.3 FrontPage/4.0.4.3 mod_ssl/2.8.15 OpenSSL/0.9.6b
X-Powered-By: PHP/4.3.3
X-Accelerated-By: PHPA/1.3.3r2
Connection: close
Content-Type: text/vnd.wap.wml; charset=ISO-8859-1

But on the redirect page the last line of the header is

Content-Type: text/html

What can this be? All my files are in the same folder, so I guess that even though I tried to get rid of all Vbulletin's automatically created headers, there's still some line somewhere that tells the browser that it's dealing with html, not wml. The problem page is the only page that's made from customizing an original vb page, newthread.php & newreply.php.

Ideas?

Robink
10-20-2003, 06:49 PM
Sorry, Cant help you, but can you give me a link to your site?

I'd very much like to see a completely WAP enabled site running vB :)

Michi
10-21-2003, 07:59 AM
It's at fi.rocsport.com/forum/wap.php. And 100% in Finnish, so you propably won't understand anything!

I managed to fix the problem by adding a new @header row in global-wap.php (A version of global.php, modified for Wap.) It doesn't use that much of vbulletin's features, it ended up being a series of individual pages that make queries to the vb database. Works, though. Only downside is that I couldn't make it use the login- functions, so posting and replying work only in forums that don't require logging in.

Robink
10-23-2003, 02:29 PM
Great! Although I didnt understand anything, I could read posts and topics. Its done quite well.

Any plans of releasing this as a Hack?