News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF4iPhone Mod

Started by Fabius85, May 14, 2010, 01:58:13 AM

Previous topic - Next topic

Fabius85

Link to Mod


A mod designed to work with SMF4iPhone Theme (Link).
If installed, SMF will use SMF4iPhone Theme if it detects that you're using an iPhone. No need to choose the theme in your layout settings!
The mod is highly configurable and gives the possibility to choose the best theme for every mobile device, even interacting with Curve Mobile, Mobile Theme or any other theme.

Summary
The mod uses the Movila Free Device Detection which is a free server that detects wether or not you are using a mobile device. This service takes some of the problems out of the picture. It will check the user agent and also the domain names that are used for mobile devices.

After the mobile device is detected, filters defined in "Admin > Configuration > Modification Settings > SMF4iPhone" are used to send a specified user agent to one of previously set themes. If a user agent is not found, the mobile device will go to the failsafe such as wap2 or a theme you specify.

Features Of This Mod
* Uses Movila Free Device Detection service to ensure that a mobile device is reading your forum
* Automatically detects iPhone device (and others) and transfers to the theme
* Can manage the transfer of up to four (4) themes
* User agent list can be adjusted in Modification Settings
* Theme ID can be changed in Modification Settings
* If SMF4iPhone Theme and some other themes are installed before the mod, it will automatically detect the theme IDs and set them by default in Modification Settings
* Supports SMF caching system

Languages
These are the supported languages:
* Dutch (Thanks to Mr. Jinx)
* Dutch-UTF8 (Thanks to Mr. Jinx)
* English
* English-UTF8
* French
* French-UTF8
* German (Thanks to Chili)
* German-UTF8 (Thanks to Chili)
* Italian
* Italian-UTF8
* Spanish_ES (Thanks to videoed)
* Spanish_ES-UTF8 (Thanks to videoed)
* Swedish (Thanks to Richard Roe)
* Swedish-UTF8 (Thanks to Richard Roe)

For SMF 2.0 RC2, RC3 and RC4 Only
SMF4iPhone Mod is for SMF 2.0 RC2, RC3 and RC4 only.

What's new in this version
v1.1   (26/11/2010)

* SMF 2.0 RC4 compatibility.
* Added checkbox to disable mobile theme automatic switch for every user in: Profile > Look and Layout
* Added theme names to the selection boxes in Mod's settings. Now they will appear like "(ID) Theme Name" so you dont need anymore to serach for theme ID by yourself.
* Added new languages: French, German and German-UTF8 (Thanks to Chili), Spanish_ES and Spanish_ES-UTF8 (Thanks to videoed), Swedish and Swedish-UTF8 (Thanks to Richard Roe).
* Fixed UTF-8 chars not converted to their respective HTML entity in some language files.
* Updated all language translations.
* Better alignment of "additional notes" at the end of SMF4iPhone Mod settings page.
* Some improvements to the code.

Donations
Please donate to support!
If you like SMF4iPhone Theme donate to Fabius:
If you like SMF4iPhone Mod donate to butchs:

farfromperfection

Hi, I know I've not been around for a while, and while I appreciate your editing of my theme I'm not too comfortable with the donation buttons there.

butchs

I am not sure why the theme is here with the mod.  I guess to keep things simple.  Nevertheless, the mod is an original work.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Fabius85

Quote from: butchs on May 18, 2010, 09:20:16 AM
I guess to keep things simple.
yep, even if theme and mod can work standalone, and were approved separately, i preferred to put both on both download pages

searchgr

I don't have iphone. Is there any way to check it through my browser?

butchs

I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

searchgr

UA faker is for those that use iphone. As i said, i don't have iphone.

searchgr

I had many cache errors and the instruction to turn the caching on.
I wonder what is better, to turn the caching of my forum on or to choose: Skip cache errors.

Fabius85

Quote from: searchgr on May 21, 2010, 05:43:33 PM
UA faker is for those that use iphone. As i said, i don't have iphone.
if you use firefox, try this:
https://addons.mozilla.org/en-US/firefox/addon/59/

Quote from: searchgr on May 22, 2010, 12:32:54 AM
I had many cache errors and the instruction to turn the caching on.
I wonder what is better, to turn the caching of my forum on or to choose: Skip cache errors.
well, if you dont want to use the cache, then enable "Skip caches errors". if you think that cache can be useful for you, then enables cache :D

butchs

To test wait 24 hours and use the following UA faker methods:
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

searchgr


searchgr

Quote from: butchs on May 22, 2010, 11:23:57 AM
To test wait 24 hours and use the following UA faker methods:


Strange but it doesn't work for firefox. Some members are able to get the theme, some others no.
Do i have to add some more phrases in the mod's textbox? The addon is for iphone3 (as it says).

butchs

I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

searchgr

#13
currently the phrases are the following: iphone|ipod|android|mobile|Safari Mobile

Can you give me a full list of them?


For example i can see with no problems Mr. Jinx's forum (http://www.chelloo.com/upc/) but the mod can't detect my forum. I wonder what's going wrong.

overyde

#14
Hi,
    I have installed the smf4iphone Theme followed by the mod.
When i load up the website on my iphone it directs me to the default curve theme (even though my default theme is N2010 (2.0 RC3).
I have set in the mod the correct theme id's of 36 for iphone theme and 35 for my N2010 theme but it still does not work.
Manually loading the theme on the phone works ok ([nofollow]http://www.baby-nation.com/?theme=36[nofollow] [nofollow])

Any help greatly appreciated :)

Update: after deleting the cache it loaded the iphone theme, however the moment i clicked logon it changed me to my N2010 theme. :-/

butchs

Quote from: overyde on May 25, 2010, 05:49:07 AM
Update: after deleting the cache it loaded the iphone theme, however the moment i clicked logon it changed me to my N2010 theme. :-/

The mod only switches you.  The theme does the rest.  Sounds like an old theme?  Please check the theme thread for help.
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

DEK24

I use Tiny Portal on my forum and it comes up all whacky on the mobile theme. Is there a way to disable it when browsing mobile?

Afro

In other words, this mod interacts with curve mobile theme without installing the associated mod. (curve-mobile-mod) ?

butchs

#18
It will load curve mobile theme and 3 others.  No need for the curve-mobile mod.
8)
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

butchs

Quote from: DEK24 on May 25, 2010, 11:45:24 AM
I use Tiny Portal on my forum and it comes up all whacky on the mobile theme. Is there a way to disable it when browsing mobile?

The mod switches once in 24 hours so you can manually change your theme ie "?theme=0"

Do not know much about Tiny Portal though..
I have been truly inspired by the SUGGESTIONS as I sit on my throne and contemplate the wisdom imposed upon me.

Advertisement: