News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

mobile version of forum?

Started by kjaonline, August 12, 2008, 10:42:47 AM

Previous topic - Next topic

kjaonline

Is it possible to setup a mobile version (cellphone) of my smf forum?

ccbtimewiz

There already is one. Use ;wap ;wap2 ;iphone at the end of your forum URL.

karlbenson


kjaonline


kallemac


questions_dude

Hi everybody, I just read the topic, but I stumbled upon with a question:


How does the URL has to be set in order to preview the mobile version?  ???

like this >

hxxp:localhost/mysite/forum/index.php;wap [nonactive]

hxxp:localhost/mysite/forum/index.php;wap2 [nonactive]

hxxp:localhost/mysite/forum/index.php;iphone [nonactive]

hxxp:localhost/mysite/forum/index.php;imode [nonactive]

???

I don-t get it
Thanks in advance.

Nathaniel

SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

axmanj

Newbie followup:  I have an interest in accessing my forum on my blackberry as well ...I notice that it does not show images (thumbs) attached to messages.  Is there some modification I can make to the wireless.css or template to allow this,

In reviewing a phpbb sample, the images show in each message....which must mean that there is some different code there allowing this? 


PLAYBOY

If there is no better option that takes care of all the mobile problems,
I would like to add these addresses as a drop down menu on my forum. How can i do it?

1.1.13

Or does smf recognize the mobile phone and shows the forum in that adress already?

Arantor

It recognises older styles of phone; remember 1.1 was originally released 5 years ago and has only had security updates since...
Holder of controversial views, all of which my own.


PLAYBOY

So what is the best advise i can get about mobile phones?
My members want to see the forum easier and more compatible with cell phones. Especially blackberry, android, Symbian^3, and iphone.

Arantor

There are no good solutions for 1.1 that I know of. There is a custom theme that works *really* well on modern smart phones but that's 2.0 only, and it's paid.
Holder of controversial views, all of which my own.


DavidCT

First, there is no ;iphone mode for 1.1.x, only ;imode.

Second, you can force Wireless modes in index.php (in forum root), look for // Determine if this is using WAP, WAP2, or imode..

I suppose you might be able to look at 2.0's detection code and copy it, depending what has changed.

or, do like I did, modifying /Themes/default/index.template.php (or, whatever theme you use), somewhere after <body> - outside an open ECHO...


if (stripos($_SERVER['HTTP_USER_AGENT'], 'Opera Mini') | stripos($_SERVER['HTTP_USER_AGENT'], 'Phone') | stripos($_SERVER['HTTP_USER_AGENT'], 'Mobile'))
{
echo '
', $scripturl, !empty($_SERVER['QUERY_STRING']) ? $_SERVER['QUERY_STRING'] . ';' : '', 'wap2" rel="nofollow"><span class="smalltext" style="color: #ffffff">Mobile users can switch to <u>WAP2</u> (no graphics, simpler display)</a><br /><br /></span>';
}


I don't bother with IMODE or WAP.  I actually detect if the user doesn't have compression and force them into WAP2 elsewhere (yes, I know some non-mobile people for some reason don't have compression, but that's their problem :) )

@PLAYBOY - since you seem to know this, does Blackberry and Android not support graphics/html?  Or is this an issue more about screen size and tiny text?  Thanks.

Also, there is a Curve Mobile for 2.0 theme.  Arantor says there is a paid one, but I'm assuming this one is free.  So, if it is, you could upgrade to 2.0...

PLAYBOY

Thank you very much for helpful info.

I used to have blackberry and it used wap2 or something. But i think nowadays blackberries use regular html like iphone. Maybe even including flash. But this is just a guess.
Right now i have an android and and android shows regular internet. I can watch youtube videos and stuff. There are only very few things i cant do with it.

I dont get the compression thing you have talked about. It would be helpful if you geve more details about it.
Most of my members are from overseas, therefore they may not have the latest technology computers. So i am afraid if i use your method i may end up showing the site in wap2 to too many people.

Who still uses compression in their computer and what is the general reason of it?

Arantor

Compression is to make the site load faster. But mobile devices tend not to support it.
Holder of controversial views, all of which my own.


PLAYBOY

So its like having cookies or not?
Its like using the memory of the computer?

Arantor

Not really anything like cookies, no.

The browser says, "Hey, if you want, you can send me the data in a compressed form, it'll save bandwidth"
The server decides if it can send it compressed, and if it can, it'll compress it.

Not all browsers support compression, and they indicate it when they make a request, because they put as part of the request that they don't accept compression - that's it. The process is 99% transparent and ignorable, it's only odd times like this it makes a difference.

Generally, though if the browser is saying it doesn't support compression, it's a mobile browser. If it doesn't support compression anyway, it's probably a good thing to use WAP2 mode because it'll save bandwidth.
Holder of controversial views, all of which my own.


PLAYBOY

Now he also talked about some computers dont support compression. Why is that? and what percentage is that?
Is it because they have old computers or is it only because they dont want to use much of bandwitdh?

DavidCT

Quote from: PLAYBOY on March 08, 2011, 09:07:46 PM
Now he also talked about some computers dont support compression. Why is that? and what percentage is that?
Is it because they have old computers or is it only because they dont want to use much of bandwitdh?

Old IE (5.0+) and all modern browsers support GZIP or DEFLATE (compression), but I have noticed some apparently real people apparently using modern browsers aren't supporting compression for some unknown reason, but real or not I force them into WAP2 to save bandwidth for me and them.  I'm sure plenty of people would think this isn't reasonable, but I have my reasons ;)  That's all I'll say about that, it's not worth discussing further.

The code I gave you above won't force people into WAP2, it'll simply display a text line on the top of your pages telling them WAP2 is available if they wish to use it if their USER-AGENT contains "Mobile" or "Phone" in it.  I prefer people use my regular pages, but I give them the option if they prefer to use it.

coolfx350

if you guys have seen tapatalk, then you know what a full version of true Mobile Forum should look like.

WAP and WAP2 aren't it. 


Advertisement: