vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   WAP headers (https://vborg.vbsupport.ru/showthread.php?t=57512)

Michi 09-30-2003 12:03 PM

WAP headers
 
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?


All times are GMT. The time now is 11:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00981 seconds
  • Memory Usage 1,708KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete