News:

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

Main Menu

SMF4iPhone Mod

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

Previous topic - Next topic

DEK24

Quote from: butchs on May 26, 2010, 09:59:17 AM
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..

If you don't mind. Check out my forum on your mobile device.

http://johnnyjungle.com/forum

booch_21

#21
I have a Droid and found the Tapatalk app solution for good mobile use of my forum.  Then I come across this theme and mod.  Wow!  Nice work to everyone involved! 

One very minor suggestion.  Perhaps a rename from "iPhone" to something that includes all mobile smartphones, since that is what you are really doing.  I know, very nitpicky!   ;D

Donations have been sent!  Keep up the awesome work!




Afro

^ You have a point. Its not just for iPhone , The name is misleading.

Fabius85

Quote from: Afro on May 29, 2010, 05:14:59 AM
^ You have a point. Its not just for iPhone , The name is misleading.
yes, it's not just for iphone. however this mod was created originally to auto-switch between smf4iphone theme and other desktop themes, and so it's called SMF4iPhone Mod.
also SMF4iPhone theme can be viewd by other devices than an iPhone, but it's designed in an iPhone style and it's designed to fit on an iPhone display, so it's called SMF4iPhone Theme :D

Raffoz

is blackberry supported by the mod?

if not, how to add?
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

Afro


Raffoz

ok thanks... it's in the seocnd box... i couldn't read it, because i had to enlarge the box... :)
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

NaYa

But how to upload a file to forum by using this ?
Any IDEA ? Mobile internet is growing.

Nowadays peoples downloading and uploading DvD movies and Files with their Mobiles.

Is there any way to add upload option ?

http://www.filmyplanet.com - The entertainment portal !

Raffoz

Quote from: NaYa on June 05, 2010, 10:15:15 AM
But how to upload a file to forum by using this ?
Any IDEA ? Mobile internet is growing.

Nowadays peoples downloading and uploading DvD movies and Files with their Mobiles.

Is there any way to add upload option ?



the skin is for iPhone, principally...
and from iphone, you can't select any files on the device...
MacOsX (last)
SMF 2.0.15 and 2.1.2 (different forums)
Chrome (last) or Safari (last)

NEO-BAHAMUT-

#29
Hi guys,

just wondering if anyone can help me set this up. So ive just upgraded my forum to version 2.0 RC3. I have installed the mod and applied it. Everything has installed successfully.

Now to the problem. If you look at the image titles "What is this"... basically I am wondering what i set here?

Image "2" is all the themes i currently have installed. Im guessing 1 is the top theme?

Please can someone talk me through how to set this up. Basically when i go on my iphone and hit my forum i get this error...

"parse error: syntax error, unexpected '.' in
/hosted/subs/ulmb/p/s/pspgamerworld/public_html/themes/smf4iphone_theme/languages/iphone.language.english.php"

Im guessing there is a . in there that shouldnt be but not entirely sure.

Please help

thanks.

Added -  This is the code for the above file that seems to be having a problem..

<?php
// Version: 2.0 RC3; iPhone// Important! Before editing these language files please read the text at the top of index.language.english.php.

.language

$txt
['iClassic'] = 'Classic'//Label for the button which switches to full desktop theme
$txt['iMenu'] = 'Menu';
$txt['iBack'] = 'Back';
$txt['iTopics'] = 'Topics';
$txt['iLoading'] = 'Loading';

/* Board Index */

$txt['iBoards'] = 'Boards';
$txt['iLatestPosts'] = 'Latest Posts';

$txt['iPosted'] = 'Posted'//Example: *Posted* x minutes ago;

$txt['iShow'] = 'Show'//Childboards
$txt['iHide'] = 'Hide'//Childboards

/* Time, singular and plural */

$txt['iSecondsAgo'] = 'seconds ago';
$txt['iMinutesAgo'] = 'minutes ago';
$txt['iHoursAgo'] = 'hours ago';
$txt['iDaysAgo'] = 'days ago';
$txt['iWeeksAgo'] = 'weeks ago';
$txt['iMonthsAgo'] = 'months ago';

$txt['iSecondAgo'] = 'second ago';
$txt['iMinuteAgo'] = 'minute ago';
$txt['iHourAgo'] = 'hour ago';
$txt['iDayAgo'] = 'day ago';
$txt['iWeekAgo'] = 'week ago';
$txt['iMonthAgo'] = 'month ago';

$txt['iBy'] = 'by';

/* Tab Bar */

$txt['iHome'] = 'Home';
$txt['iSearch'] = 'Search';
$txt['iMessages'] = 'Messages'
$txt['iProfile'] = 'Profile';
$txt['iLogout'] = 'Logout';

/* Topic display */

$txt['iQuoting'] = 'Quoting';
$txt['iOn'] = 'On';
$txt['iOff'] = 'Off';


/* Pages */

$txt['iPage'] = 'Page';
$txt['iOf'] = 'of'//for example: page 1 *of* 2.
$txt['iPrev'] = 'Prev'//short for "previous"
$txt['iNext'] = 'Next';

/* Posting */

$txt['iSubject'] = 'Subject';
$txt['iCode'] = 'Code'//Verification code
$txt['iVerify'] = 'Verify'//Field to fill in with verifcation code

$txt['iMessage'] = 'Message'//The heading of the message field when posting or sending a PM
$txt['iPost'] = 'Post'//The submit button

/* PM */

$txt['iTo'] = 'To'//Name for the "To: " field
$txt['iSend'] = 'Send'//The submit button

/* Profile */

$txt['iPosts'] = 'posts'//kept lowercase as in the iPhone Contacts application. Try to kep these short.
$txt['iEmail'] = 'email';
$txt['iRegistered'] = 'registered';
$txt['iTitle'] = 'title'//Custom title
$txt['iText'] = 'text'//Personal text
$txt['iKarma'] = 'karma';
$txt['iGender'] = 'gender';
$txt['iAge'] = 'age';
$txt['iLocation'] = 'location';

$txt['iLastActive'] = 'last active';
$txt['iIP'] = 'ip';
$txt['iHostname'] = 'hostname';
$txt['iLocalTime'] = 'local time';

$txt['iSendPM'] = 'Send PM';
$txt['iSendEmail'] = 'Send Email';

/* Search */

$txt['iAlert'] = 'Please enter a word of at least 3 letters to search';

/* Login */

$txt['iRemember'] = 'Remember';
$txt['iSubmit'] = 'Submit';

/* Register */

$txt['iChoose'] = 'Choose';
$txt['iRegisterVerify'] = 'Verify';
$txt['iVerification'] = 'Verification';
$txt['iAgreement'] = 'Registration Agreement';
$txt['iMore'] = 'more'//example: more...
$txt['iDone'] = 'Done';
$txt['i13yo'] = 'I am at least 13 years old';
$txt['agree'] = 'I Agree';

?>

Fabius85

About the settings of the mod, if you first installed SMF4iPhone Theme, and then SMF4iPhone Mod, then the ID of SMF4iPhone Theme is automatically selected as theme #1 in Mod's settings. The theme IDs are numbered in order of installation, so don't think that the first one in the list shown in "2.jpg" image is the theme has ID 1. To check theme id you can just type your forum URL followed by "?theme=N" where N is the number of the ID. So:
http://www.yoursite.com/forum/index.php?theme=5
will show your forum using the theme which has ID number 5.
you can setup to 3 theme's with SMF4iPhone Mod and assign auto switch to that themes for the user agents you prefer.
Then you have to set the ID of your default forum theme, and the theme which should be used as "safe mode", you can keep default settings (wap2).
In the next release of the mod i'll add the possibilty to select themes by name instead of ID, as it is easier to configure.

About the parse error you get, you should extract again "iPhone.language.english.php" from the package, and reupload it, without touching anything in it.

NEO-BAHAMUT-

Hi Mate,

thanks for the quick reply. I managed to sort it out with your help. There must have been an error when installing the theme.... Not too sure but it works now.

Ive now ran in to another problem. If you take a look at your self at... www.pspgamerworld.ulmb.com (on your phone)... It takes you to the Index page but not the mobile view. However if you click on one of the categories it then takes you to the mobile view. Is there something i have missed out here? Im sure that if i hit www.pspgamerworld.ulmb.com then it should take me to the Mobile view where i can login etc?

NEO-BAHAMUT-

Hi Fabius,

Can you help me with my problem its still happening.

Fabius85

Quote from: NEO-BAHAMUT- on June 14, 2010, 11:40:56 AM
Hi Mate,

thanks for the quick reply. I managed to sort it out with your help. There must have been an error when installing the theme.... Not too sure but it works now.

Ive now ran in to another problem. If you take a look at your self at... www.pspgamerworld.ulmb.com (on your phone)... It takes you to the Index page but not the mobile view. However if you click on one of the categories it then takes you to the mobile view. Is there something i have missed out here? Im sure that if i hit www.pspgamerworld.ulmb.com then it should take me to the Mobile view where i can login etc?
if i open your website with my iphone it takes me directly to the iphone theme, so you maybe had the cookie already set. if you clear your cookies you'll se that it works properly ;)

NEO-BAHAMUT-

Ahh i thank you for letting me know that... I was only clearing my history which in turn i thought cleared my cookies and cache. Works a treat thanks.

pingpongrob

Hi Fabius,
I had SMF R.0 RC2 installed and the Mod and theme work well on my iphone, when I installed (not upgraded) RC3 and installed the Theme and the Mod, I get nothing on my iphone.

Can you help please.

Fabius85

Quote from: pingpongrob on June 16, 2010, 07:56:58 PM
Hi Fabius,
I had SMF R.0 RC2 installed and the Mod and theme work well on my iphone, when I installed (not upgraded) RC3 and installed the Theme and the Mod, I get nothing on my iphone.

Can you help please.

it is a bit hard to help if you just tell me "it doesnt work" without any specific information about what's wrong with it but follow these steps and see if it helps...




STEP  1
Did you get any errors while installing theme and/or mod?
If not go to next step. If you got errors, tell me what happened so i can help you.

STEP 2
Check if you configured correctly SMF4iPhone Mod settings (in Admin > Modification Settings > SMF4iPhone)
Check if theme's IDs you set are correct. If not, then set them correctly and click "Save".

STEP 3
You need to clear your forum cache, not only your browser cache, so:
First go to Admin > Forum Maintenance, and under "Empty the file cache" click on Run task now.
Then if you have an iPhone/iPodTouch -> into your iPhone/iPodTouch go to Preferences > Safari and tap on Clear history, Clear cookies, Clear cache. Go to next step.
If you're testing theme/mod using a desktop browser with a User Agent Faker -> Set your fake iPhone User Agent. Clear your browser cookies related to your forum and your browser cache. Go to next step.

STEP 4
Using Safari Mobile (or your desktop browser) try to open your forum index. Be sure that "?theme=#" parameter is NOT set at the end of the url you enter, so just "http://www.yoursite.com/forum/index.php".

pingpongrob

Hi Fabius,
Thanks for taking the time to help.
1. No errors on installation of both the Mod & Theme.
2. Not 100% sure about the number that I should select.
3. Cleared both Cache & Cookies on my iPhone - Cleared cache on my Firefox Browser
4. When I open http://www.affordablett.com.au/smf/index.php, in Firefox I get my standard web page - as expected.

Fabius85

Quote from: pingpongrob on June 16, 2010, 11:19:44 PM
Hi Fabius,
Thanks for taking the time to help.
1. No errors on installation of both the Mod & Theme.
2. Not 100% sure about the number that I should select.
3. Cleared both Cache & Cookies on my iPhone - Cleared cache on my Firefox Browser
4. When I open http://www.affordablett.com.au/smf/index.php, in Firefox I get my standard web page - as expected.
Did you set SMF4iPhone Theme selectable by users? Go to:
Admin > Themes and Layout > Manage and Install > Themes that the user is able to select
click on [ Show the list of themes ] and see if SMF4iPhone is checked.

2. You can check the proper ID of your SMF4iPhone Theme this way:
Profile > Look and Layout > Current Theme
click on (change)
Search for SMF4iPhone Theme and move your mouse on [Use this theme] -without clicking on it!-
In your browser statusbar you should see a link like this:
http://www.yoursite.com/forum/index.php?action=theme;sa=pick;u=1;th=3;
"th" is the ID of your theme, and you have to set it in SMF4iPhone Mod settings.

3. You need to clear also your FORUM CACHE:
Admin > Forum Maintenance > Empty the file cache
click on "Run task now" button.

After following all these steps, clear again you Safari Mobile cookies and cache, and see if the theme loads correctly.

pingpongrob

Its really strange, I wasnt logged in (just Guest), and the standard view was present. Once I logged in the iPhone Theme worked.
I find RC3 really buggy with packages compared with RC2.

Thanks for your help Fabius  :)

Advertisement: