News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Wap2 version for smf 2.0.2

Started by Kevin1, February 23, 2012, 09:27:49 AM

Previous topic - Next topic

Kevin1

How to design wap2 version for my site? Or there is any mod for it?
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

geek_andy

If you know CSS you can change the design in "Themes/default/css/wireless.css" I believe.

Kevin1

Bro i dont know css, is there any mod to do this work?
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

hcfwesker

Wap2 is already available once smf is installed.  Just check the very bottom of any page, you'll see a link 'WAP2' that can be clicked.

QuoteSMF 2.0.2 | SMF © 2011, Simple Machines
XHTML RSS WAP2

distante

Quote from: geek_andy on February 23, 2012, 09:41:26 AM
If you know CSS you can change the design in "Themes/default/css/wireless.css" I believe.

Anyone can confirm this?

Kevin1

Quote from: hcfwesker on February 23, 2012, 04:01:39 PM
Wap2 is already available once smf is installed.  Just check the very bottom of any page, you'll see a link 'WAP2' that can be clicked.

QuoteSMF 2.0.2 | SMF © 2011, Simple Machines
XHTML RSS WAP2
yeah i know the link is available. But we have to customize the wap mode by ourself to use it....
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

Kevin1

Ok I got the wap2 theme and the mod.
http://custom.simplemachines.org/themes/?lemma=2035

But, is there any other theme for wap mode??
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

pkrack

As far as i know, there are three themes for smf. I dont remember the urls but i can tell the names so that you can search them.
1. Curve
2.Smf4mobile
3.smf4iphone

the curve one has one benefit that its author has released  an auto switching mod, so whenever a mobile user visit your site, he will be automatically shown the curve theme, while desktop users can still enjoy your main theme.

Smf itself has three versions for handheld device.

1. Wml version at example.com?wap1

2.wap 2.0 version at example.com?wap2
3. Iphone version at example.com?imode

   i think we need a theme like gomobile created for mybb, if some one create like that, it will help us all very much, or if smf team brings a mobile theme which has registration feature, attachments capabilities and showing avators in posts, posts counts etc then it will be much help full. Because due to mobile browsers, people are able to use websites with huge pages so the mobile themes should have a twist.

hcfwesker

There's also SMF4Mobile , which is a paid theme.  I have it and it's great.  even auto-detects mobile devices.  http://smf-media.com/smf4mobile/

Kevin1

#9
How can I disable the wap1 theme?? I want to use wap2 theme instead of wap1. please help
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

pkrack

Theme can be switched via the url, use wap2 at end of url instead of wap1 . More over you can edit wap links in themes/theme_name/index.template.php folder under copyright section

Kevin1

I know about the links, i'm asking how to completely disable the wap1 theme, and want to use wap2 theme instead of wap1
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

hcfwesker

You can try what I did to remove wap1 and wap2 access from my site.

in the root file  index.php

Find
if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));


Replace with
if (!defined('WIRELESS'))
define('WIRELESS', isset($_REQUEST['wap2']) || isset($_REQUEST['imode']));


That should remove Wap1 access.

pkrack

I dont think removing wap1 version will help in any way instead it may cause a decrease in mobile traffic. Any how as you wish

Kevin1

Thanks. It disabled my wap1 mode. But now the browser like ucweb doesnt detecting the wap2 mode, which was previously detecting wap1 mode automatically.
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

Kevin1

bump. hey please help, how to add automatic detection of wap2 mode by ucweb.
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

pkrack

I think instead of removing  (isset($_REQUEST['wap'])
Replace it with
isset($_REQUEST['wap2']) so you will have two wap2 parameters.and one imode, i am not php expert , i think hcfwesker can tell weather having to same parameters declared will cause error or not, if if doesnt hurt any thing, then ucweb will redirect to wap2 but remember that opera mini isnt detected as wireless and is served by web version

NanoSector

I'll research this tomorrow, you can do a dirty yet quick check with $context['browser'].
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

NanoSector

Okay, fiddled with this, though it won't work for an odd reason:

Before this:

// Some settings and headers are different for wireless protocols.


Add:

// Using an iPhone or Android device? Lets get something WORKING, man!
if ($context['browser']['is_iphone'] or $context['browser']['is_android'])
redirectexit($scripturl . '?wap2');
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

distante

When you use an android with Opera browser, that script will be able to recognize it?

I don't have an android, but I have and old E65 with opera-mini, and the wap or imode form never get showed

Advertisement: