Advertisement:

Author Topic: Wap2 version for smf 2.0.2  (Read 7891 times)

Offline Kevin1

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • http://teknotech.in
    • Akram210712 on Facebook
    • @Akram210712 on Twitter
    • TeknoTech
Wap2 version for smf 2.0.2
« on: February 23, 2012, 09:27:49 AM »
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

Offline geek_andy

  • Semi-Newbie
  • *
  • Posts: 23
  • Gender: Male
    • @geek_andy on Twitter
Re: Wap2 version for smf 2.0.2
« Reply #1 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.

Offline Kevin1

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • http://teknotech.in
    • Akram210712 on Facebook
    • @Akram210712 on Twitter
    • TeknoTech
Re: Wap2 version for smf 2.0.2
« Reply #2 on: February 23, 2012, 02:25:22 PM »
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

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,144
  • Gender: Male
  • SMF 2.0.4
Re: Wap2 version for smf 2.0.2
« Reply #3 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.

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

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: Wap2 version for smf 2.0.2
« Reply #4 on: February 23, 2012, 04:40:01 PM »
If you know CSS you can change the design in "Themes/default/css/wireless.css" I believe.

Anyone can confirm this?
If I was of any help, please consider link one of my sites in your forum or mod :)
Si te fui de ayuda considera likear uno de mis sitios
www.desadaptados.net - www.musicaysonido.com
Adsense Compatible!!





Offline Kevin1

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • http://teknotech.in
    • Akram210712 on Facebook
    • @Akram210712 on Twitter
    • TeknoTech
Re: Wap2 version for smf 2.0.2
« Reply #5 on: February 23, 2012, 10:54:27 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.

Quote
SMF 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

Offline Kevin1

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • http://teknotech.in
    • Akram210712 on Facebook
    • @Akram210712 on Twitter
    • TeknoTech
Re: Wap2 version for smf 2.0.2
« Reply #6 on: February 25, 2012, 06:00:59 AM »
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

Offline pkrack

  • Jr. Member
  • **
  • Posts: 302
  • Gender: Male
  • Enjoying summer fruits
    • Free smf web hosting
Re: Wap2 version for smf 2.0.2
« Reply #7 on: February 25, 2012, 08:08:52 AM »
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.

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,144
  • Gender: Male
  • SMF 2.0.4
Re: Wap2 version for smf 2.0.2
« Reply #8 on: February 25, 2012, 12:57:35 PM »
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/

Offline Kevin1

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • http://teknotech.in
    • Akram210712 on Facebook
    • @Akram210712 on Twitter
    • TeknoTech
Re: Wap2 version for smf 2.0.2
« Reply #9 on: February 26, 2012, 09:51:00 AM »
How can I disable the wap1 theme?? I want to use wap2 theme instead of wap1. please help
« Last Edit: February 26, 2012, 10:12:02 AM by Akram210712 »
Get free Gprs tricks for all telecom operators here.
http://teknotech.in

Offline pkrack

  • Jr. Member
  • **
  • Posts: 302
  • Gender: Male
  • Enjoying summer fruits
    • Free smf web hosting
Re: Wap2 version for smf 2.0.2
« Reply #10 on: February 26, 2012, 12:33:05 PM »
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

Offline Kevin1

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • http://teknotech.in
    • Akram210712 on Facebook
    • @Akram210712 on Twitter
    • TeknoTech
Re: Wap2 version for smf 2.0.2
« Reply #11 on: February 26, 2012, 02:32:22 PM »
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

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,144
  • Gender: Male
  • SMF 2.0.4
Re: Wap2 version for smf 2.0.2
« Reply #12 on: February 26, 2012, 02:49:56 PM »
You can try what I did to remove wap1 and wap2 access from my site.

in the root file  index.php

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

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

That should remove Wap1 access.

Offline pkrack

  • Jr. Member
  • **
  • Posts: 302
  • Gender: Male
  • Enjoying summer fruits
    • Free smf web hosting
Re: Wap2 version for smf 2.0.2
« Reply #13 on: February 26, 2012, 03:06:50 PM »
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

Offline Kevin1

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • http://teknotech.in
    • Akram210712 on Facebook
    • @Akram210712 on Twitter
    • TeknoTech
Re: Wap2 version for smf 2.0.2
« Reply #14 on: February 27, 2012, 02:29:50 PM »
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

Offline Kevin1

  • Semi-Newbie
  • *
  • Posts: 66
  • Gender: Male
  • http://teknotech.in
    • Akram210712 on Facebook
    • @Akram210712 on Twitter
    • TeknoTech
Re: Wap2 version for smf 2.0.2
« Reply #15 on: February 29, 2012, 05:49:56 AM »
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

Offline pkrack

  • Jr. Member
  • **
  • Posts: 302
  • Gender: Male
  • Enjoying summer fruits
    • Free smf web hosting
Re: Wap2 version for smf 2.0.2
« Reply #16 on: February 29, 2012, 09:26:21 AM »
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

Offline NanoSector

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,745
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: Wap2 version for smf 2.0.2
« Reply #17 on: February 29, 2012, 02:32:07 PM »
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 / Support team member

Offline NanoSector

  • Support Specialist
  • SMF Hero
  • *
  • Posts: 9,745
  • Gender: Male
    • rick2288 on Facebook
    • Yoshi2889 on GitHub
    • Test Server
Re: Wap2 version for smf 2.0.2
« Reply #18 on: March 01, 2012, 10:57:27 AM »
Okay, fiddled with this, though it won't work for an odd reason:

Before this:
Code: [Select]
// Some settings and headers are different for wireless protocols.

Add:
Code: [Select]
// 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 / Support team member

Offline distante

  • SMF Hero
  • ******
  • Posts: 2,013
  • Gender: Male
  • Me pueden encontrar en : www.smfsimple.com
    • LosDesadaptados on Facebook
    • @LosDesadaptados on Twitter
    • Desadaptados.net!
Re: Wap2 version for smf 2.0.2
« Reply #19 on: March 01, 2012, 11:48:56 AM »
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
If I was of any help, please consider link one of my sites in your forum or mod :)
Si te fui de ayuda considera likear uno de mis sitios
www.desadaptados.net - www.musicaysonido.com
Adsense Compatible!!