Sony Ericsson / Sony : GPRS, WAP, MMS and Email setup : phpBB WAP Script? Should I try it?
>
New Topic
>
Reply<
Esato Forum Index
>
Sony Ericsson / Sony >
GPRS, WAP, MMS and Email setup
> phpBB WAP Script? Should I try it?
Bookmark topic
what about image scrolling on k700i, and where are the creators of this site?
--
Posted: 2004-08-24 21:14:30
Edit :
Quote
As far as I know, the creator of this site is
laffen.
--
Posted: 2004-08-24 21:34:28
Edit :
Quote
then maybe Mr. Laffen, to whom I place my thanks for (t)his great site, can help us a little bit here?
--
Posted: 2004-08-24 21:38:36
Edit :
Quote
ok I found a way to make the browser on k700i scroll the damn picture for me.
I include the picture in a table with only 1 cell (with border 0 for the nice view of it) and add a space in the end of the cell. The stupid browser will let me see the space, it not knowing that in fact my evil purpose is to see the picture
However, I still do not know how to recognize if the user accesing the forum uses a mobile, and if it does, if it supports HTML (as I am asked when using my k700 to browse esato).
Could you help me, dear admin? Thanks.
--
Posted: 2004-08-25 00:44:20
Edit :
Quote
To recognise the browser you'd have to grab http_user_agent and compare that to known mobile browsers.. i suspect anyway. Can't see another way around it
--
Posted: 2004-08-25 01:01:08
Edit :
Quote
HTTP_ACCEPT is the magic header to look for:
text/html, application/xml;q=0.9, application/xhtml+xml;image/png, image/jpeg, image/gif, image/x-xbitmap
--
Posted: 2004-08-25 01:13:54
Edit :
Quote
thank you for you quick reply.
but can you please be more specific about this?
i am a novice php-user, so I am not entirely sure how to use this hint.
thanks.
--
Posted: 2004-08-25 01:20:07
Edit :
Quote
ok, i've figured out how what does that HTTP_ACCESS variable do. However, how do you know, from what it returns, that my sony ericsson phone is k700i and not T68i for example? you just compare all the possible strings? What is it that gives away the model of the phone?
It's easy to set up the xml / wml use now. Just take a global variable, and use the code that I use now (written below)
Code:
global $isxml;
$isxml = 0;
if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml") ||
stristr($_SERVER["HTTP_USER_AGENT"],"WDG_Validator") ||
stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator") ||
stristr($_SERVER["HTTP_USER_AGENT"],"W3C_CSS_Validator")) {
if(preg_match("/application\/xhtml\+xml;q=0(\.[1-9]+)/i",$_SERVER["HTTP_ACCEPT"],$matches)) {
$xhtml_q = $matches[1];
if(preg_match("/text\/html;q=0(\.[1-9]+)/i",$_SERVER["HTTP_ACCEPT"],$matches)) {
$html_q = $matches[1];
if($xhtml_q >= $html_q) {
$ixml = 1;
}
}
} else {
$isxml = 1;
}
}
// $isxml = = 1 means that we have xML, otherwise we don't have
I can now figure that if the $_SERVER["HTTP_USER_AGENT"] has nokia in it somewhere, the phone must be nokia, so that's how I usually would obtain the brand (there must be a link for the mms settings). But how about the model? :?
--
Posted: 2004-08-25 03:56:03
Edit :
Quote
Quote:
On 2004-08-24 17:24:01, JohnN4 wrote:
Cool! I am also working on wap forums, but i am basing them on my own system.

you can see them at wap.johnex.se.
This message was posted from a Z1010
Very nice, easy yet fully operational!
Mine goes more in-depth with navigation, plus my new script will be sweet! it'll be called cForums.
I'm tired of telling people about it so just wait til its comes out for more info, all I can say is it's basically run by skins...actually it's run entirely by skins and my skin parsing engine.
--
Posted: 2004-08-25 07:09:11
Edit :
Quote
Yeah i know what you mean....:-) I was planning on making a wap conversion of the ipb but decided to create a script of my own, adding new functions as feel they are needed. I still have many bugs, but its coming along.
This message was posted from a Z1010
--
Posted: 2004-08-25 07:41:17
Edit :
Quote
New Topic
Reply