Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: farfromperfection on March 10, 2009, 11:09:28 AM

Title: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: farfromperfection on March 10, 2009, 11:09:28 AM
Official URL
http://www.farfromperfection.com/

SMF4iPhone is now 100% free!

Even if you don't have an iPhone or iPod touch, millions of potential users of your site do. In fact, 40% of mobile web usage is from these devices - and this number is growing.

This theme will make it much easier for these users to browse your forum... and best of all – its completely free.

The plugin provided will switch your site to use ths theme into action whenever a user one one of these devices accesses your site. It's completely transparent and doesn't affect any other users. You're also free to modify this theme however you wish for your own use (e.g., by adding mobile ads, etc.)

Follow me on Twitter:
@ffperfection (twitter) (http://twitter.com/ffperfection)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: shadow82x on March 10, 2009, 11:39:11 AM
Wow! Very impressive. :)
Tell us If you need any testing.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 11, 2009, 01:31:00 PM
I shouldnt need much testing. Everything seems to be going smoothly. Thanks though!

Here's a screenshot from inside a thread (I borrowed posts and avatars from a thread on this forum ;) )

You tap a post to quote it. (Unless you turn quoting off with the button at the top so that you can follow links in posts)

(http://farfromperfection.com/beta/iphone/inthread.png)

I'm still thinking of how and where I can implement page numbers
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Dragooon on March 11, 2009, 01:41:26 PM
Wow impressive. I got a iPod touch so if you got a URL I'd love to see this in action(I may even hack code to automatically switch to this theme if safari mobile is detected).
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Mr. Jinx on March 11, 2009, 02:39:34 PM
Very nice! I've been waiting for this.
One more reason for me to upgrade to SMF 2.0 :)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 12, 2009, 09:17:21 AM
Quote from: Dragooon on March 11, 2009, 01:41:26 PM
Wow impressive. I got a iPod touch so if you got a URL I'd love to see this in action(I may even hack code to automatically switch to this theme if safari mobile is detected).
I'm going to write a plugin that will do that. It should be very simple.
I'm done with all the HTML and CSS right now I'm working on the PHP and everything else.

Here's a shot of the login template.

(http://farfromperfection.com/beta/iphone/photo3.png)

and some more:

(http://farfromperfection.com/beta/iphone/photo4.png)

(http://farfromperfection.com/beta/iphone/photo5.png)

(http://farfromperfection.com/beta/iphone/photo6.png)

(http://farfromperfection.com/beta/iphone/photo7.png)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 12, 2009, 09:43:12 AM
I just realised I hadnt included the time the message was sent/posted.  Don't worry the final version will have that.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: BxK on March 12, 2009, 09:49:52 AM
Very nice. I created an iphone template already. But yours seems much better than mine. Also created a wap template over at http://mobile.empireofthesun.net  Nice work!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 12, 2009, 02:49:22 PM
OH GOD I just heard about iPhone OS 3 and I fear its going to be VERY different. I hope all this work isn't going to waste. Info (http://www.engadget.com/2009/03/12/iphone-os-3-0-is-coming-march-17th/)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: BxK on March 12, 2009, 06:09:50 PM
dont worry its apple!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 13, 2009, 04:54:16 PM
I'm not sure what you mean!

Anyway I should be done with this theme on time. (I originally said within a week).

I'll release it as a version 0.9 then get feedback from people and fix any bugs (there shouldn't be m/any) before releasing the bugfree version 1.0

Then I'll be working towards a version 2.0 with more features, and more integration with the iPhone.

HOWEVER, I never want to break the simplicity of the theme, and I don't think this will project will ever have support for the admin CP.
I'm considering support for moderation actions like locking and deleting, but apart from that, do you really need to edit features and create new boards from an iPhone?!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Leemy on March 14, 2009, 03:21:48 PM
Wow, looks good. Cant wait for a URL to preview this.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: altivec on March 17, 2009, 06:23:44 PM
If you need help testing the software let me know i have the dev kit also so i can test it on my side also.

Feel free to contact me!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Jade Elizabeth on March 17, 2009, 07:39:50 PM
NICE!!!

I'll use it on my forum when you release :D
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: KahneFan on March 17, 2009, 08:29:48 PM
I don't have an iPhone, but that's outstanding!!

BTW, if you need filler text you can always use http://www.lipsum.com/

At the bottom there's a generator for how many words/paragraphs you want.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 18, 2009, 09:15:52 PM
Sorry for being a little late. My Macbook died on me and I had to reinstall everything. But I'm back on track now. Hopefully I'll have this ready for you guys by this weekend, if not earlier.
Also, if you have anything to suggest let me know!

p.s. the 3.0 update looks like it won't affect anything I'm doing here so  :D
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: vbgamer45 on March 18, 2009, 10:46:03 PM
Looks awesome keep up the great work!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 19, 2009, 03:00:06 AM
Okay first release coming within the hour
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 19, 2009, 03:33:24 AM
download (http://www.farfromperfection.com/blog/2009/03/smf-for-iphone-05-beta/)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Dragooon on March 19, 2009, 03:52:35 AM
The version in theme-info.xml is SMF's not theme's, so it should be SMF 2.0 RC 1. I did that and re-packaged it and then it was working fine, great job! I"ll dig into this as soon as possible.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Dragooon on March 19, 2009, 03:55:49 AM
A few issues :
Hiding or showing child boards doesn't make a difference, it does show new boards with greyed name and time, but the name is parent's only as well as the URL.

No child boards on message index.

EDIT : For first issue
Open BoardIndex.template
Code (Find) Select
foreach ($board['children'] as $child)
{



echo '
<li class="child', !$board['new'] ? ' off' : '', '">
<a href="', $board['href'], '"', $i==count($category['boards']) ? ' class="last"' : '' ,'>', $board['name'],'
<div class="description">', $board['last_post']['time']=='N/A' ? $txt['no'] . ' ' . $txt['topics'] : $board['last_post']['time'] . ' ' . $txt['by'] . ' ' . $board['last_post']['member']['name'],
'</div></a>
</li>
';

}

Replace with
foreach ($board['children'] as $child)
{



echo '
<li class="child', !$child['new'] ? ' off' : '', '">
<a href="', $child['href'], '"', $i==count($category['boards']) ? ' class="last"' : '' ,'>', $child['name'],'
<div class="description">', $child['last_post']['time']=='N/A' ? $txt['no'] . ' ' . $txt['topics'] : $child['last_post']['time'] . ' ' . $txt['by'] . ' ' . $child['last_post']['member']['name'],
'</div></a>
</li>
';

}
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Antechinus on March 19, 2009, 04:02:26 AM
Great job. Thank you for your efforts. I'm sure this theme will be very popular.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 19, 2009, 04:27:12 AM
Quote from: Dragooon on March 19, 2009, 03:55:49 AM
A few issues :
Hiding or showing child boards doesn't make a difference, it does show new boards with greyed name and time, but the name is parent's only as well as the URL.

No child boards on message index.

EDIT : For first issue
Open BoardIndex.template
Code (Find) Select
foreach ($board['children'] as $child)
{



echo '
<li class="child', !$board['new'] ? ' off' : '', '">
<a href="', $board['href'], '"', $i==count($category['boards']) ? ' class="last"' : '' ,'>', $board['name'],'
<div class="description">', $board['last_post']['time']=='N/A' ? $txt['no'] . ' ' . $txt['topics'] : $board['last_post']['time'] . ' ' . $txt['by'] . ' ' . $board['last_post']['member']['name'],
'</div></a>
</li>
';

}

Replace with
foreach ($board['children'] as $child)
{



echo '
<li class="child', !$child['new'] ? ' off' : '', '">
<a href="', $child['href'], '"', $i==count($category['boards']) ? ' class="last"' : '' ,'>', $child['name'],'
<div class="description">', $child['last_post']['time']=='N/A' ? $txt['no'] . ' ' . $txt['topics'] : $child['last_post']['time'] . ' ' . $txt['by'] . ' ' . $child['last_post']['member']['name'],
'</div></a>
</li>
';

}

I just realized this! I just put it onto an SMF 1.x site of mine (with a few changes) and saw this. Can't believe I was so stupid  :-[
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: farfromperfection on March 19, 2009, 04:29:17 AM
another issue is I forgot to include the SMF copyright stuff! I had it hidden from the start since I wasn't sure what to do with it so I thought I'd leave it until the end. Then I completely forgot. The version for download now has the copyright stuff.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Jade Elizabeth on March 19, 2009, 08:57:49 AM
Hey you arent stupid, just learning!

And what you have is AWESOME! So be proud, don't put yourself down ;D.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD NOW)
Post by: farfromperfection on March 19, 2009, 03:15:34 PM
Thanks!
To all who download, let me know of any issues you have! Thanks
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: KahneFan on March 19, 2009, 03:43:01 PM
Hmm, I just loaded this from your blog to a 2.0RC1 test site of mine that has 0 mods and I get...

Quote
Unable to load the 'main_above' template.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Adish - (F.L.A.M.E.R) on March 19, 2009, 03:47:01 PM
Quote from: Jade on March 19, 2009, 08:57:49 AM
Hey you arent stupid, just learning!

And what you have is AWESOME! So be proud, don't put yourself down ;D.

+1 to that!

People cant be perfect in all the things. These AWSOME creations are quite unique and you rock in that!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 19, 2009, 04:22:41 PM
Quote from: KahneFan on March 19, 2009, 03:43:01 PM
Hmm, I just loaded this from your blog to a 2.0RC1 test site of mine that has 0 mods and I get...

Quote
Unable to load the 'main_above' template.
This is the same problem I mentioned before when I uploaded the zip directly in SMF. All the files are there but they're empty! I thought it was just my server.
You'll have to upload the files directly to your Themes dir
Hopefully somebody can tell me what I'm doing wrong so I can fix this asap!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: KahneFan on March 19, 2009, 04:29:42 PM
Replace your theme_info file with this...


<?xml version="1.0"?>
<theme-info xmlns="http://www.simplemachines.org/xml/theme-info" xmlns:smf="http://www.simplemachines.org/">
<id>farfromperfection:smf4iphone05</id>
<version>2.0 RC1</version>
<name>smf4iphone05</name>
<author name="FarFromPerfection.com">[email protected]</author>
<website>http://www.farfromperfection.com/</website>
<layers>html,body</layers>
<templates>index</templates>
</theme-info>


Your names didn't match and they didn't match the file name. I made it so all three match and it loads just fine.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: KahneFan on March 19, 2009, 04:31:42 PM
Should there not be a scroll bar? I'm testing on a full size screen and there doesn't appear to be a way to scroll?

http://ipostyoupost.com/SMFThemes/index.php?theme=34
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 19, 2009, 04:36:46 PM
Quote from: KahneFan on March 19, 2009, 04:31:42 PM
Should there not be a scroll bar? I'm testing on a full size screen and there doesn't appear to be a way to scroll?

http://ipostyoupost.com/SMFThemes/index.php?theme=34
The theme isn't for full size screens ;)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: KahneFan on March 19, 2009, 04:46:05 PM
I figured that, just wasn't sure if there's still a way to allow scrolling. FYI, it works on my blackberry with no issues that I've seen so far. My BB has a scroll ball and it scroll just fine. When my Wife gets home I'll test it on her Treo as well. I know it's for "iPhone", but it's always good to work on multiple mobile versions :D

1 Thought, if there's a site with a lot of boards, it could take a while to get to the menu buttons (home). If you were to shrink the menu bar to about hald the size, can you use "position: fixed; bottom: 0px;" to fix it to the bottom of the screen? Since the iPhone is touch screen, you would always have the ability to press home.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 19, 2009, 04:47:08 PM
Quote from: KahneFan on March 19, 2009, 04:46:05 PM
I figured that, just wasn't sure if there's still a way to allow scrolling. FYI, it works on my blackberry with no issues that I've seen so far. My BB has a scroll ball and it scroll just fine. When my Wife gets home I'll test it on her Treo as well. I know it's for "iPhone", but it's always good to work on multiple mobile versions :D

1 Thought, if there's a site with a lot of boards, it could take a while to get to the menu buttons (home). If you were to shrink the menu bar to about hald the size, can you use "position: fixed; bottom: 0px;" to fix it to the bottom of the screen? Since the iPhone is touch screen, you would always have the ability to press home.
Thats what the menu button at the top right is for. It scrolls to the bottom of the page.
Position: fixed doesn't work on iPhone,
I tried to get around it so that the menubar could be fixed to the bottom but there was no way to do it smoothly.
And the tab bar couldnt be made any smaller since iphones have a high ppi so its small enough already. Also its a standard iphone ui element.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on March 20, 2009, 01:03:18 AM
One thing, you seem to be missing the page indexes from the message view, topic view, PM view pages :).
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 02:22:55 AM
I know they're missing from the PM. but theyre not missing from messageindex.template or display.template  ??? which do you mean
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 02:25:59 AM
???
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on March 20, 2009, 02:40:07 AM
Never checked, that. Great :). Just the PM then.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 02:50:40 AM
okay I've just fixed that, and some other problems and released it as 0.6 link (http://www.farfromperfection.com/blog/2009/03/smf-for-iphone/)

To everybody who tries it out: let me know of any issues or feature requests. I want to get the final release out asap so that I can work on porting it to SMF 1.x  ;D
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 02:56:33 AM
However...I have the name and everything right in the theme_info.xml file but STILL all files are blank once SMF unzips them if I upload them in a zip!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on March 20, 2009, 02:58:23 AM
Its missing the help button(helptopics.gif), as well as the admin menu doesn't appear. It is also missing the admin_menu template. And the child boards are still a but messed up(It now shows the child boards on index as normal boards, but when clicked "Show child boards" it shows another copy of Main boards as child boards).

It is a very awesome effort you have made, a few issues and it'll be perfect for iPhone/iPod users.

About your SMF unzipping issue, I was experiencing the same, I unzipped it on my computer and re-zipped it. Now it was fine. And theme-info.xml doesn't need to have the name same as the file, it can very well be different.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 03:01:27 AM
Quote from: Dragooon on March 20, 2009, 02:58:23 AM
Its missing the help button(helptopics.gif), as well as the admin menu doesn't appear. It is also missing the admin_menu template. And the child boards are still a but messed up(It now shows the child boards on index as normal boards, but when clicked "Show child boards" it shows another copy of Main boards as child boards).

It is a very awesome effort you have made, a few issues and it'll be perfect for iPhone/iPod users.

About your SMF unzipping issue, I was experiencing the same, I unzipped it on my computer and re-zipped it. Now it was fine. And theme-info.xml doesn't need to have the name same as the file, it can very well be different.
Well the help buttons and admin template aren't used in the theme. the theme isn't made for administrating the forum.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on March 20, 2009, 03:20:11 AM
Well yes but you did remove most of the code from GenericMenu.template.php. Would it be possible to have a simplified version of that? Enough that an iPhone/iPod can handle, because in future they'll be used in more than just ACP/MCP, like Profile, PMs, Help section etc? And I believe the admin_login template is in Login.template.php
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 04:45:53 PM
GenericMenu is already used in profile and some of that stuff. But the sidebar isnt needed for this theme. Nobody needs to edit their profile that badly on an iPhone!
This theme allows you to easily do the things that 99% of members do 99% of the time, on an iPhone.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Antechinus on March 20, 2009, 05:06:58 PM
I agree. Keep it simple. It's wonderfully lightweight as it is. I wouldn't have believed a theme for anything could be made that small.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 20, 2009, 05:26:32 PM
There no picture in IMG folder on the 0.6 version

Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 05:46:43 PM
Quote from: altivec on March 20, 2009, 05:26:32 PM
There no picture in IMG folder on the 0.6 version
argh you're right. Sorry. Fixing now.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 20, 2009, 06:05:59 PM
Thanks! You have done a amazing job!

Also where do i need to put this in the load.php.... can't get it to work on 2.0 rc1:
   if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone'))
         $user_info['theme'] = 8;
   if(strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
         $user_info['theme'] = 8;
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 20, 2009, 06:15:27 PM
Up to now little thing for version 1.0 i would suggest i'll try to do some mods and give you the code.

- Image resize... have a try u'll see what i mean ;)
- URL stay on one line and are off the layout since they are too long.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 06:57:07 PM
Quote from: altivec on March 20, 2009, 06:15:27 PM
Up to now little thing for version 1.0 i would suggest i'll try to do some mods and give you the code.

- Image resize... have a try u'll see what i mean ;)
- URL stay on one line and are off the layout since they are too long.
Oooh yes. You mean image resizing in posts right? I'll add that. And the URL thing.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 20, 2009, 08:14:26 PM
Sorry for repost but could u help me on that part ?
Made different try but nothing worked.

Also where do i need to put this in the load.php.... can't get it to work on 2.0 rc1:
   if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone'))
         $user_info['theme'] = 8;
   if(strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
         $user_info['theme'] = 8;
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Nibogo on March 20, 2009, 08:38:40 PM
Awesome job!!

Pretty nice theme :)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 20, 2009, 08:43:38 PM
Quote from: altivec on March 20, 2009, 08:14:26 PM
Sorry for repost but could u help me on that part ?
Made different try but nothing worked.

Also where do i need to put this in the load.php.... can't get it to work on 2.0 rc1:
   if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone'))
         $user_info['theme'] = 8;
   if(strstr($_SERVER['HTTP_USER_AGENT'],'iPod'))
         $user_info['theme'] = 8;

Okay first make sure that the theme id is actually 8.

Then search for
'theme' => empty($user_settings['id_theme']) ? 0 : $user_settings['id_theme'],

and replace with

'theme' => (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false ? 8 : (empty($user_settings['id_theme']) ? 0 : $user_settings['id_theme'])),
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 21, 2009, 05:58:06 AM
My theme ID is really 8.

Still can't get it to work.... tried on my account (admin) and on guest.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on March 21, 2009, 06:02:01 AM
Load.php
Find this
// The theme was specified by parameter.
if (!empty($ID_THEME))
$ID_THEME = (int) $ID_THEME;
// Use the board's specific theme.

Replace with
// The theme was specified by parameter.
if (!empty($ID_THEME))
$ID_THEME = (int) $ID_THEME;
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod'))
$ID_THEME = 8;
// Use the board's specific theme.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Leemy on March 21, 2009, 12:46:07 PM
Do you (or anyone) have a sample forum I can try??
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Leemy on March 21, 2009, 12:47:47 PM
Does this work with SMF 1.1.8?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: KahneFan on March 21, 2009, 01:04:46 PM
This is currently built for 2.0. I've thrown a sample copy on my test forum...

http://ipostyoupost.com/SMFThemes/index.php?theme=34
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: ArkServer on March 21, 2009, 01:08:34 PM
The theme looks pretty awesome :) Gonna try it out soon. Thanks
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 21, 2009, 06:11:26 PM
Quote from: Saleem on March 21, 2009, 12:47:47 PM
Does this work with SMF 1.1.8?
Not yet.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 21, 2009, 06:12:36 PM
Quote from: altivec on March 21, 2009, 05:58:06 AM
My theme ID is really 8.

Still can't get it to work.... tried on my account (admin) and on guest.
That should definitely work. Are you testing on an iPhone/iPod ?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 21, 2009, 06:59:27 PM
Yup on my iPhone

Give it a try:
http://www.clubmr2quebec.com/forums/

Link for iPhone theme:
http://www.clubmr2quebec.com/forums/?theme=8

Running SMF 2 rc1
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Antechinus on March 21, 2009, 07:33:13 PM
Just out of interest what is the default screen resolution for an iPhone?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 22, 2009, 12:24:58 AM
Quote from: Antechinus on March 21, 2009, 07:33:13 PM
Just out of interest what is the default screen resolution for an iPhone?
320x480
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 22, 2009, 12:27:50 AM
Okay so theres an issue with the time/date on some servers.

SMF must store the timestamp of posts as different than the servers default time or something.

Because to get the "number of seconds ago" that a topic was posted, this theme does time()-$topic['first_post']['timestamp'] or whatever, and its showing like -2000 seconds and stuff on some sites. so how do I get the CURRENT timestamp according to SMF as opposed to time() which gives the time the server says?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 22, 2009, 12:29:36 AM
I also need to fix how quotes appear in posts.

So thats:

- image resizing
- long links
- quotes
- topic start times

any other issues?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on March 22, 2009, 12:38:28 AM
Quote from: farfromperfection on March 22, 2009, 12:27:50 AM
Okay so theres an issue with the time/date on some servers.

SMF must store the timestamp of posts as different than the servers default time or something.

Because to get the "number of seconds ago" that a topic was posted, this theme does time()-$topic['first_post']['timestamp'] or whatever, and its showing like -2000 seconds and stuff on some sites. so how do I get the CURRENT timestamp according to SMF as opposed to time() which gives the time the server says?
Try forum_time();

Quote from: farfromperfection on March 21, 2009, 06:12:36 PM
Quote from: altivec on March 21, 2009, 05:58:06 AM
My theme ID is really 8.

Still can't get it to work.... tried on my account (admin) and on guest.
That should definitely work. Are you testing on an iPhone/iPod ?
Your code won't work. The theme does not load based upon that variable. Use the code I posted here (http://www.simplemachines.org/community/index.php?topic=298258.msg1984635#msg1984635).
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 22, 2009, 12:56:18 AM
Quote from: Dragooon on March 22, 2009, 12:38:28 AM
Try forum_time();
Thanks!

Quote from: Dragooon on March 22, 2009, 12:38:28 AM
Your code won't work. The theme does not load based upon that variable. Use the code I posted here (http://www.simplemachines.org/community/index.php?topic=298258.msg1984635#msg1984635).
Are you sure? Because that code works fine on my forum, on line 483 of Load.php ???
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on March 22, 2009, 12:57:50 AM
Maybe because you're already switched to that theme on your iPod(Using URL)?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 22, 2009, 12:59:23 AM
Quote from: Dragooon on March 22, 2009, 12:57:50 AM
Maybe because you're already switched to that theme on your iPod(Using URL)?
Nope. I'm switching user agents between Safari 4 (desktop browser) and the iPhone's browser and its switching theme as I do this.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 22, 2009, 08:40:25 AM
Still doesn't work :S

Quote from: Dragooon on March 21, 2009, 06:02:01 AM
Load.php
Find this
// The theme was specified by parameter.
if (!empty($ID_THEME))
$ID_THEME = (int) $ID_THEME;
// Use the board's specific theme.

Replace with
// The theme was specified by parameter.
if (!empty($ID_THEME))
$ID_THEME = (int) $ID_THEME;
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod'))
$ID_THEME = 8;
// Use the board's specific theme.

Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on March 22, 2009, 08:52:28 AM
Are you sure the ID of that theme is 8?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: LS1Tiger on March 22, 2009, 05:48:32 PM
hey guys, tryin to use this and im gettin a server 500 error...any ideas?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 22, 2009, 11:39:31 PM
Quote from: LS1Tiger on March 22, 2009, 05:48:32 PM
hey guys, tryin to use this and im gettin a server 500 error...any ideas?
Thats odd.
Can you check your server error logs?

When are you getting the error exactly?
Is it when you edit load.php or just when you try to use the theme?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: LS1Tiger on March 22, 2009, 11:59:38 PM
Can't get my server logs. On my iPhone right now

I edited Load to make it send to the correct forum. Mine is 15. I put 1 in and it works. 15 gets me the 500 error.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 23, 2009, 05:57:34 AM
Yup am sure it's them 8, have a look at the other post i made and gave links.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Leemy on March 23, 2009, 07:35:29 PM
Quote from: altivec on March 21, 2009, 06:59:27 PM
Yup on my iPhone

Give it a try:
http://www.clubmr2quebec.com/forums/

Link for iPhone theme:
http://www.clubmr2quebec.com/forums/?theme=8

Running SMF 2 rc1

Tried this and it loaded the normal page. I had to manually go to theme=8 url to make it iphone. Is that normal????? I thought it should be autoload
I have an iPhone 3G.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 23, 2009, 11:46:19 PM
Quote from: Saleem on March 23, 2009, 07:35:29 PM
Quote from: altivec on March 21, 2009, 06:59:27 PM
Yup on my iPhone

Give it a try:
http://www.clubmr2quebec.com/forums/

Link for iPhone theme:
http://www.clubmr2quebec.com/forums/?theme=8

Running SMF 2 rc1

Tried this and it loaded the normal page. I had to manually go to theme=8 url to make it iphone. Is that normal????? I thought it should be autoload
I have an iPhone 3G.
I don't think he has it set up to do that.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on March 24, 2009, 05:40:28 PM
It's suposse to be setup, i tried both option in load.php
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 25, 2009, 01:02:36 AM
Are you sure you have the correct theme ID? I've tried this on two new installations and it works just fine!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 26, 2009, 09:30:56 AM
Ls1 tiger did you manage to solve your problem, or get a look at the server logs?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: SgtMic on March 29, 2009, 10:01:01 PM
Is there a way you might consider adding in one admin option? The option to approve member accounts as well as modify them?
My forum requires admin approval and an admin to assign a membergroup.

Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Rumbaar on March 30, 2009, 12:23:31 AM
Nice theme, I like the look an layout.  Will certainly have to test it out.

Just a few things, I know there is code for testing for an iphone and then displaying the theme.  But can there be an option to force 'normal' view, so the functions of moderation and administration can be accessed?  Might be an option, like 'view this forum in full' button.  Like Facebook and others do.

Also I read 'not yet' for 1.1 support.  Does that mean there will be a release for this?  Then support for sites that run TP or other portals, so it just renders the forum?

EDIT:  Did find one issue.  If you have visual verification or 'custom' spam questions enable for a user using this theme, they'll return an error and not be able to post.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Leemy on March 30, 2009, 03:36:38 AM
Is it feasible to make this an 'auto' change for theme based on the iphone browser's user-agent??
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Rumbaar on March 30, 2009, 04:39:23 AM
Have you read the thread? I'm sure two sets of code on how to do that has been posted. If I get what your asking.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 30, 2009, 01:40:38 PM
Quote from: SgtMic on March 29, 2009, 10:01:01 PM
Is there a way you might consider adding in one admin option? The option to approve member accounts as well as modify them?
My forum requires admin approval and an admin to assign a membergroup.
For the 1.0 release I'm just trying to get all the basic functions in, but I will have a look into this for a later release if enough people would like it.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 30, 2009, 01:40:54 PM
Quote from: Rumbaar on March 30, 2009, 12:23:31 AM
Nice theme, I like the look an layout.  Will certainly have to test it out.

Just a few things, I know there is code for testing for an iphone and then displaying the theme.  But can there be an option to force 'normal' view, so the functions of moderation and administration can be accessed?  Might be an option, like 'view this forum in full' button.  Like Facebook and others do.

Also I read 'not yet' for 1.1 support.  Does that mean there will be a release for this?  Then support for sites that run TP or other portals, so it just renders the forum?

EDIT:  Did find one issue.  If you have visual verification or 'custom' spam questions enable for a user using this theme, they'll return an error and not be able to post.
Oh I must have missed that. I'll look into it. Thanks!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on March 30, 2009, 02:39:07 PM
0.9 now available for download
Fixes most issues.

http://www.farfromperfection.com/blog/2009/03/smf-for-iphone/
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: fals on March 31, 2009, 06:29:01 PM
This theme is so freaking awesome !

I bought an iPhone last friday and of course my forum needed this.

I spend most af the last few days modding your theme so now it works with my 1.1.8 forum !
including attached images, board icons (cbi), subforums on messege index, smfBuy and a few other things....

(http://img27.imageshack.us/img27/4835/img0017i.png) (http://img27.imageshack.us/my.php?image=img0017i.png) (http://img27.imageshack.us/img27/1378/img0004l.png) (http://img27.imageshack.us/my.php?image=img0004l.png)
Topics with attached images
Only name, age, location and posttime
(http://img21.imageshack.us/img21/5268/img0016i.png)


Topicstarter ("tråd forfatter") is marked with blue header
(http://img11.imageshack.us/img11/9075/img0018w.png)

PM inbox - same layout as topic display
(http://img27.imageshack.us/img27/1386/img0008fzu.png)

Search didnt work, so i changed that menu til action=unread

Exsamples (danish): http://www.fg-forum.dk/smf/index.php?topic=27745.0 (http://www.fg-forum.dk/smf/index.php?topic=27745.0)

Keep up the good work (http://www.fg-forum.dk/smf/Smileys/fg/punk%5B1%5D.gif)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: N3RVE on March 31, 2009, 09:44:54 PM
Awesome theme ;D

-[n3rve]
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: LS1Tiger on April 05, 2009, 11:45:02 PM
Quote from: farfromperfection on March 26, 2009, 09:30:56 AM
Ls1 tiger did you manage to solve your problem, or get a look at the server logs?

Nope. Couldn't get the server logs. I'm tinkering with it. I'll get back to u this week whether I get it running or not.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Xarcell on April 06, 2009, 07:35:44 PM
Yes this looks promising. Can't wait to test it out on my iPhone.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Knome on April 07, 2009, 10:26:23 PM
Is there a time table for 1.0? i'm waiting on that before i apply it to my forum.  Also will the mod that redirects the users also support other mobile devices or just the iphone ipod?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 09, 2009, 04:54:43 AM
Quote from: Knome on April 07, 2009, 10:26:23 PM
Is there a time table for 1.0? i'm waiting on that before i apply it to my forum.  Also will the mod that redirects the users also support other mobile devices or just the iphone ipod?
No real timetable, but hopefully within a few weeks, I want people to test as much as possible and let me know of any bugs, etc.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Cyr1us on April 09, 2009, 02:39:19 PM
Great Job, I love it.
It would be wonderful  to have a link to see new posts only !
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Xarcell on April 09, 2009, 03:27:06 PM
1.| I do hope that there is an on-screen option to revert to back to normal theme, in case a person on the iphone doesn't want to use the iphone theme.

2.| Any chance of getting an option to add a banner to the top of the theme?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: cflforum on April 09, 2009, 10:23:39 PM
Quote from: farfromperfection on March 20, 2009, 04:45:53 PM
GenericMenu is already used in profile and some of that stuff. But the sidebar isnt needed for this theme. Nobody needs to edit their profile that badly on an iPhone!

?

why wouldnt peope want to edit their profile?

the profile contains the sig and other options right?

why wouldnt people want to change it when they feel like?
It's not as if you have to justify your design/coding choices to anyone is it?

(forgive me, I've had a long day arguing with programmers covering coding reluctance /inability with pseudostats,lol)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: KahneFan on April 09, 2009, 11:35:18 PM
I think the key part of that line was "Nobody needs to edit their profile that badly on an iPhone!"

They will more than likely make edits on a full screen (AKA computer/notebook)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: fals on April 10, 2009, 04:19:36 AM
Quote from: Cyr1us on April 09, 2009, 02:39:19 PM
It would be wonderful  to have a link to see new posts only !
No problem, you can change the links in index.template.php

Quote from: Xarcell on April 09, 2009, 03:27:06 PM
1.| I do hope that there is an on-screen option to revert to back to normal theme, in case a person on the iphone doesn't want to use the iphone theme.
Good idea... i would like this option too. Not just a theme change (i dont allow this on my forum), but some other kind of change option from iphone mode <-> normal

Quote from: KahneFan on April 09, 2009, 11:35:18 PM
I think the key part of that line was "Nobody needs to edit their profile that badly on an iPhone!"
They will more than likely make edits on a full screen (AKA computer/notebook)
I totally agree, keep this theme as simply as possible. I dont think its necessary to have all function "on the go"...

Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Cyr1us on April 10, 2009, 01:27:01 PM
Quote from: fals on April 10, 2009, 04:19:36 AM
Quote from: Cyr1us on April 09, 2009, 02:39:19 PM
It would be wonderful  to have a link to see new posts only !
No problem, you can change the links in index.template.php

Could you explain please ?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: BxK on April 10, 2009, 09:46:35 PM
Quote from: Xarcell on April 09, 2009, 03:27:06 PM
1.| I do hope that there is an on-screen option to revert to back to normal theme, in case a person on the iphone doesn't want to use the iphone theme.

2.| Any chance of getting an option to add a banner to the top of the theme?

These edits are in index.template.php

For 1.
FIND
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '<div id="copyright" style="text-align:center;margin-top:8px;margin-bottom:8px;"><h4 style="margin-left:0;font-size:8px;">', theme_copyright(), '</div>';


if ($context['user']['is_logged']){



REPLACE
function template_body_below()
{
global $context, $settings, $options, $scripturl, $txt;

echo '<div id="copyright" style="text-align:center;margin-top:8px;margin-bottom:8px;"><h4 style="margin-left:0;font-size:8px;">', theme_copyright(), '</div>';

echo '<div id="copyright" style="text-align:center;margin-top:8px;margin-bottom:8px;"><h4 style="margin-left:0;font-size:8px;"><a href="http://YOURSITE.com/index.php?theme=YOUR DEFAULT THEME NUMBER">Desktop Version</a</div>';

if ($context['user']['is_logged']){



For 2

Just the Logo

FIND
<div id="topbar">

<h1 id="pageTitle">', iPhoneTitle(), '</h1>
<a class="back" href="', $backlink ,'"', !$_GET ? ' style="display:none;"' :'', '>Back</a>
<a class="button" href="#" id="menubutton" onclick="window.scrollTo(0,99999); return false">Menu</a>

</div>';



REPLACE
<div id="topbar">

<h1 id="pageTitle"><img src="http://YOUR LOGO URL" style="margin: 0px;" alt="', iPhoneTitle(), '" width="320px" height="48px">
<a class="back" href="', $backlink ,'"', !$_GET ? ' style="display:none;"' :'', '>Back</a>
<a class="button" href="#" id="menubutton" onclick="window.scrollTo(0,99999); return false">Menu</a></h1>

</div>';


OR to show the title AND the logo

<div id="topbar">
<h1 id="pageTitle"><img src="http://YOUR LOGO URL" style="margin: 0px;" alt="', iPhoneTitle(), '" width="320px" height="48px">
<p>', iPhoneTitle(), '</p>
<a class="back" href="', $backlink ,'"', !$_GET ? ' style="display:none;"' :'', '>Back</a>
<a class="button" href="#" id="menubutton" onclick="window.scrollTo(0,99999); return false">Menu</a></h1>

</div>';



Good Luck
and
Make sure to change the YOUR SITE URL ect....
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: ysNoi on April 10, 2009, 10:00:44 PM
Wow..! Great work...!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 11, 2009, 09:15:48 AM
1.0 rc1 will be released soon

Some new features:

- New "unread board" and "unread topic" icon. The old one was from Dashcode but it just wasn't iPhoney enough so there's now an icon just like the "unread mail" icon in Mail, for boards and topics.

- A "new posts" button on threads if 1) you've read the topic before and 2)  there are new replies since you last read it. Tapping it will go to the first unread post.

- "iPhone / Full Version" switcher. I need to make a mod for this to work properly since it requires editting a few files, and the default theme (so that you can switch back)

- Fixed some bugs: It no longer says "page 1 of 0" if a board has no topics; the copyright is centered properly; PM and Email buttons in Profile now work (if the user is allowed to PM/Email of course) 
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Rumbaar on April 11, 2009, 09:30:49 PM
Will 1.0 RC1 also include a fix/support for anti-spam measures, like Verification Questions or Post count under which users must pass verification to make a post?

Still get an error if a person tries to post and these settings are in place for 0.9.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 12, 2009, 07:04:38 AM
Quote from: Rumbaar on April 11, 2009, 09:30:49 PM
Will 1.0 RC1 also include a fix/support for anti-spam measures, like Verification Questions or Post count under which users must pass verification to make a post?

Still get an error if a person tries to post and these settings are in place for 0.9.
Yes hopefully  :D
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Dragooon on April 12, 2009, 07:15:49 AM
Just wanted to say that you're doing an amazing job, keep it up!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: BxK on April 12, 2009, 01:54:15 PM
What files would you have to eat to go back to the normal version I mean it should be just a simple link to the theme you want correct? as I have done.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: fals on April 12, 2009, 03:04:01 PM
This dosnt work on my forum... proberbly because of this :
in Sources/Load.php, look for: 
if (!empty($id_theme))
$id_theme = (int) $id_theme;  and add below it: 
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false)
$id_theme = 4;  Replace 4 with the id of this theme on your forum.


Quote from: MATT C on April 12, 2009, 01:54:15 PM
What files would you have to eat to go back to the normal version I mean it should be just a simple link to the theme you want correct? as I have done.
Quote from: MATT C on April 10, 2009, 09:46:35 PM
These edits are in index.template.php

For 1.
FIND
function template_body_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '<div id="copyright" style="text-align:center;margin-top:8px;margin-bottom:8px;"><h4 style="margin-left:0;font-size:8px;">', theme_copyright(), '</div>';


if ($context['user']['is_logged']){



REPLACE
function template_body_below()
{
   global $context, $settings, $options, $scripturl, $txt;

   echo '<div id="copyright" style="text-align:center;margin-top:8px;margin-bottom:8px;"><h4 style="margin-left:0;font-size:8px;">', theme_copyright(), '</div>';

   echo '<div id="copyright" style="text-align:center;margin-top:8px;margin-bottom:8px;"><h4 style="margin-left:0;font-size:8px;"><a href="http://YOURSITE.com/index.php?theme=YOUR DEFAULT THEME NUMBER">Desktop Version</a</div>';

if ($context['user']['is_logged']){

Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: BxK on April 12, 2009, 03:13:39 PM
Works on mine fine and I also have that. Lol
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: fulltimecasual on April 12, 2009, 10:33:24 PM
Quote from: Cyr1us on April 10, 2009, 01:27:01 PM
Quote from: fals on April 10, 2009, 04:19:36 AM
Quote from: Cyr1us on April 09, 2009, 02:39:19 PM
It would be wonderful  to have a link to see new posts only !
No problem, you can change the links in index.template.php

Could you explain please ?

Yeah, could you explain this for me too! I love the theme, but i have certain threads that are 20 pages long, i need the "new" button option... :)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 13, 2009, 01:47:23 AM
Quote from: fulltimecasual on April 12, 2009, 10:33:24 PM
Quote from: Cyr1us on April 10, 2009, 01:27:01 PM
Quote from: fals on April 10, 2009, 04:19:36 AM
Quote from: Cyr1us on April 09, 2009, 02:39:19 PM
It would be wonderful  to have a link to see new posts only !
No problem, you can change the links in index.template.php

Could you explain please ?

Yeah, could you explain this for me too! I love the theme, but i have certain threads that are 20 pages long, i need the "new" button option... :)
Coming soon!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Cyr1us on April 17, 2009, 04:18:33 AM
When the new theme will be available please  :D ?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: fals on April 17, 2009, 04:59:34 AM
Hi
Anyone know how to add Windows Mobile detect to this ?
in Sources/Load.php, look for: 
if (!empty($id_theme))
$id_theme = (int) $id_theme;  and add below it:

elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false)
$id_theme = 4;

I would also  like windows mobile users to use this theme (fx. Samsungs)
http://msdn.microsoft.com/en-us/library/bb159684.aspx

Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 18, 2009, 01:01:58 PM
cyr1us: Hopefully the first week of May. It would be earlier but my macbook's power adapter has stopped working and all my stuff is on there!

fals: I'm not sure if the theme would look right on those other platforms, but if you want to go ahead with it anyway, change:

elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false


to

elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'IEMobile') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false

Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: alxz310 on April 19, 2009, 12:00:51 AM
I've noticed that large images in posts don't shrink correctly when viewing it on my iPod Touch or iPhone.
The images are stretched vertically. Anyone know a fix for this?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 19, 2009, 11:58:14 AM
Quote from: alxz310 on April 19, 2009, 12:00:51 AM
I've noticed that large images in posts don't shrink correctly when viewing it on my iPod Touch or iPhone.
The images are stretched vertically. Anyone know a fix for this?
What version of iPhone OS
And can you provide a link to a page where this happens?
And just to clarify, you're on SMF4iPhone 0.9?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: altivec on April 20, 2009, 11:26:19 AM
I got it to work with version 0.9!

I have the same problem with picture shrinking, they shrink badly on the vertical side.

Also it would be nice when you click on a topic that it would go to last page.... on a 8/9 page topics going all the way down and do next and repeat 8 times is kind a frustrating.

Else then that just work great!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 20, 2009, 05:36:51 PM
Quote from: altivec on April 20, 2009, 11:26:19 AM
I got it to work with version 0.9!

I have the same problem with picture shrinking, they shrink badly on the vertical side.

Also it would be nice when you click on a topic that it would go to last page.... on a 8/9 page topics going all the way down and do next and repeat 8 times is kind a frustrating.

Else then that just work great!
That's awesome, what was the issue that prevented it from working?

If anybody wants to follow me on twitter I'm @ffperfection (http://twitter.com/FFPerfection), I'll post updates to Twitter first
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Leemy on April 20, 2009, 11:10:04 PM
Dude, just wanted to say keep up the good work. *clapping*
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 22, 2009, 04:04:55 PM
 v1.0b

New features:

- [New] button on threads you've previously visited with unread posts.

- Header where you can put you own image. Just replace img/logo.jpg with your logo.

- "Classic" mode. Don't like the iPhone version? Go back to the site's classic theme with a simple tap of a button. iPhone users will also have a "switch to iphone" button on the default theme. It will come as an SMF package for 1.0, but for now I've provided 3 files you need to replace: index.php, Sources/Load.php and Themes/Default/index.template.php.

- You can now switch between viewing [Boards] and [Latest Posts] on the board index.

- Better unread topic/board icons, as mentioned in my previous post.

- No "hide/show child boards" button if you don't actually have any child boards to hide/show

- Fixed the avatar for PMs if they didn't have an avatar. It now displays the "no avatar" image like it does in topics.

- If you have 0 topics in a board,  the "next page" button is now disabled (as it should be). Same for PMs.

- Login/register buttons have been replaced with a single login button at the top right. It's not in this release but there will be tabs at the top like this: http://i44.tinypic.com/qsscbp.jpg - only with login / register.

- Added verification box when sending PMs or posting and it requires verification.

- Better labels for the "back" button in some places.

I'll be posting the link to www.farfromperfection.com/blog and www.twitter.com/ffperfection very soon.


If there are issues you would like to be fixed that still haven't with this release then let me know!

Thanks.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Leemy on April 22, 2009, 05:01:58 PM
Do you have any screenshots in Landscape?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 22, 2009, 05:21:15 PM
Sure, why?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Rumbaar on April 22, 2009, 06:10:06 PM
Nice work, it's looking good.  This is one of the features I currently like about phpBB, on a forum I visit it seems to automatically change for my iPhone.  Though not sure if it's custom coding or a default feature, as it's a iPhone software based forum.

Quote from: farfromperfection on April 22, 2009, 04:04:55 PM- Added verification box when sending PMs or posting and it requires verification.
What about custom verification question/s and answer/s?  They are also required if implemented for a successful post to be made.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: farfromperfection on April 22, 2009, 08:14:57 PM
Quote from: Rumbaar on April 22, 2009, 06:10:06 PM
Nice work, it's looking good.  This is one of the features I currently like about phpBB, on a forum I visit it seems to automatically change for my iPhone.  Though not sure if it's custom coding or a default feature, as it's a iPhone software based forum.

Quote from: farfromperfection on April 22, 2009, 04:04:55 PM- Added verification box when sending PMs or posting and it requires verification.
What about custom verification question/s and answer/s?  They are also required if implemented for a successful post to be made.
I didn't even know this existed :-X
Will implement soon.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (DOWNLOAD LINK INSIDE)
Post by: Rumbaar on April 22, 2009, 08:27:47 PM
heHE, I did mention them twice in the previous posts I've made in regards to that error ;)

But good-o, best of luck catering for that option.  As there can be a variable amount of questions.

Look forward to the finished product! :D
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: farfromperfection on April 25, 2009, 11:01:38 PM
boomp.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: Dragooon on April 26, 2009, 12:21:58 PM
I was wondering, what is the difference between paid and free version?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: Rumbaar on April 26, 2009, 06:00:19 PM
Well there currently doesn't appear to be a free version, or from what I can tell.  But also are all the bugs out, in particular the verification to post issues?  That certainly is a stopper, I'm sure most sites employ that protection to stop spammers.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: Knome on April 26, 2009, 09:19:19 PM
Installed it and the mod. When i install the mod it resets my custom theme to the default theme. WTF. 
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: farfromperfection on April 27, 2009, 12:22:39 AM
Quote from: Knome on April 26, 2009, 09:19:19 PM
Installed it and the mod. When i install the mod it resets my custom theme to the default theme. WTF.
Can you be more specific? When does it reset your theme to the default theme?

edit: I tried this on a new installation and managed to recreate your issue. Its a very small problem in the modification that it makes to Load.php

It's now fixed.

I will send you an email in a few minutes with a download link for the update. You will only need to install the mod, please uninstall the original mod and then install the new one.

Sorry for any inconvience caused!
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: Knome on April 27, 2009, 02:54:08 AM
Sweet!

I have quite a few errors.  This one seems to appear when i do any sort of SSI function.   

Notice: Undefined index: action in /var/www/beta.thebcclan.com/forums/Sources/Load.php on line 1253

And when i click to go to the forums only the plain text shows up.     

Here is the site address. www.beta.thebcclan.com and this is the mobile site that the error is on. www.omgwtfbbq.thebcclan.com


EDIT: Hard coding the theme number in statement next to the error above fixed the problem where nothing would come up.  But the error is still there.

Also have you thought about putting this on the template index?


<script type="text/javascript">
                window.addEventListener("load", function() { setTimeout(loaded, 100) }, false);

                function loaded() {
                        window.scrollTo(0, 1); // pan to the bottom, hides the location bar
                }
        </script>

It hides the safari menu bar when the page loads.  I could have sworn it was on an earlier build but it doesn't seem to be working on the one i just downloaded tonight.

EDIT EDIt: looks like you have it in the theme but it doesn't seem to be working.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: farfromperfection on April 27, 2009, 05:15:42 AM
Quote from: Knome on April 27, 2009, 02:54:08 AM
Sweet!

I have quite a few errors.  This one seems to appear when i do any sort of SSI function.   

Notice: Undefined index: action in /var/www/beta.thebcclan.com/forums/Sources/Load.php on line 1253

And when i click to go to the forums only the plain text shows up.     

Here is the site address. www.beta.thebcclan.com and this is the mobile site that the error is on. www.omgwtfbbq.thebcclan.com


EDIT: Hard coding the theme number in statement next to the error above fixed the problem where nothing would come up.  But the error is still there.

Also have you thought about putting this on the template index?


<script type="text/javascript">
                window.addEventListener"load", function() { setTimeout(loaded, 100) }, false);

                function loaded() {
                        window.scrollTo(0, 1); // pan to the bottom, hides the location bar
                }
        </script>

It hides the safari menu bar when the page loads.  I could have sworn it was on an earlier build but it doesn't seem to be working on the one i just downloaded tonight.

EDIT EDIt: looks like you have it in the theme but it doesn't seem to be working.
Thanks for letting me know. I fixed the second bug you mentioned, but I see the fix isn't in the code. Sorry about that.
I've fixed the bug which displays that notice too.
Thanks.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: Knome on April 30, 2009, 06:01:01 PM
Uhh no its still broken for me. 
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (Version 1.0 released)
Post by: farfromperfection on May 02, 2009, 05:24:37 AM
Sorry you've had trouble getting it to work. I refunded your SMF4iPhone purchase.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Robin1989 on May 02, 2009, 09:45:23 PM
this looks great - im definatly going to follow the rest of its changes and will almost certainly get it when i have some money - ive started to follow you on twitter
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: ~WannaBeDie on May 04, 2009, 02:32:02 PM
Nice :) I like that .
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: kaamaru on May 13, 2009, 06:08:56 AM
Can you add moderation and let ppl edit there profiles another good thing to do would be to get rid of the email and pm buttons when viewing your own profile.

For anyone who wants to view this mod you can go to www.nightgamer.net/iphone/ and view mine.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: lilounec on May 20, 2009, 07:14:36 AM
Hi,

i just buy your template.

Install of both zip (theme and mod) is OK.

But when i try to connect with my iphone, got the default template  :-[ is there something to change or vérify after install ?

Ok, i've found the problem.

Your theme is load with the ID 4 (modficiation in load.php) but in my forum the theme have ID 33 so i've modified the load.php file with th good ID, and now it's OK.

I think it wille be great to get automatically the good ID theme in the install script if it's possible, or add a mention about in the readme file.  ;)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: rjscott on May 22, 2009, 12:35:01 PM
Hi-
I bought the template even though we're not moving to SMF 2.x anytime soon. I don't even have a forum to install it on :-). My purpose was to throw my $2.95 into the hat and hope for an SMF 1.1.x version to come out. I know fals has worked up a version from your template and I would love to get a copy of that from him, if he would be so kind.
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: fals on May 22, 2009, 03:03:10 PM
Quote from: rjscott on May 22, 2009, 12:35:01 PM
...hope for an SMF 1.1.x version to come out. I know fals has worked up a version from your template and I would love to get a copy of that from him, if he would be so kind.
Hi
My iphone theme is based on farfromperfection's 0.9 free beta, but with lots of manual translations, addons, cbi og edits... dont know how much it looks like the official release...  8)

So as-is it probably wont work on your forum....
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: rjscott on May 22, 2009, 03:11:39 PM
Quote from: fals on May 22, 2009, 03:03:10 PM
Quote from: rjscott on May 22, 2009, 12:35:01 PM
...hope for an SMF 1.1.x version to come out. I know fals has worked up a version from your template and I would love to get a copy of that from him, if he would be so kind.
Hi
My iphone theme is based on farfromperfection's 0.9 free beta, but with lots of manual translations, addons, cbi og edits... dont know how much it looks like the official release...  8)

So as-is it probably wont work on your forum....
Bummer. I'll try to be patient then... :-)
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template
Post by: Leemy on May 22, 2009, 03:15:17 PM
Will this show ads i have on the forum? Any special place to put them?
Title: Re: SMF 2.0 iPhone and iPod Touch Theme Template (NOW FREE!)
Post by: farfromperfection on June 20, 2009, 03:25:56 AM
SMF4iPhone is now free
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: TheDisturbedOne on June 20, 2009, 11:22:46 AM
Thanks for making this free!  I saw it yesterday and thought "I would use this if it was free!" and now it is.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Leemy on June 20, 2009, 05:14:57 PM
Awesome to hear it's free.  How can ads be integrated into this?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dugbug on August 10, 2009, 09:40:01 AM
Any news on smf4iphone?  In particular, since SMF 2.0 may not come out this year, @ffp have you thought about targeting SMF 1.x?  I don't know what would be lost in the process as far as features...

-d
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: nay27uk on August 13, 2009, 09:38:35 PM
I dont get it its just a blank picture background with nothing else
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on August 22, 2009, 03:03:04 AM
His main page doesn't seem to work on IE8, but you can go directly to http://www.farfromperfection.com/smf4iphone.html (or use FF).
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mick. on August 24, 2009, 11:52:55 PM
This is great!   Please make this available to 1.1.9
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kai920 on August 25, 2009, 12:37:13 AM
Tagging this topic for later :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: timned88 on September 05, 2009, 03:40:43 PM
can anyone help me get this running?
i got an email from farfromperfection today stating he can no longer support this modification.

i have the theme and the mod installed but it is not working properly.  does someone have a better set of instructions to offer?

www.themagicinpixels.com/forum
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: timned88 on September 05, 2009, 04:09:40 PM
okay, i got this working (wrong theme number in load.php - easy fix) but the formatting is kind of askew.  anyone have any other luck with getting this to work properly?

symptom:  when a post is shorter than the height of the avatar, the post does not get white space added in so the next post in the thread gets indented and things go to heck.
see photo3.jpg

work around - view the forum in landscape mode.   formatting issues disapper!
see photo.jpg

then when you switch back to portrait, you can see that the formatting issue goes away and stays away! 
see photo2.jpg


can someone help make this so that the issue does not occur at all?  thanks!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: timned88 on September 05, 2009, 04:20:05 PM
another issue that i found was when i set my iphone to use this mod, it also switched my desktop to use the mod as well.  i had to logout on my phone and log back in on my computer to get the default them back up and running.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: timned88 on September 05, 2009, 05:27:01 PM
ok, i fixed the alignment issue by adding a few <br>'s into display.template.php. 
works great now. 
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on September 09, 2009, 05:42:18 AM
Anyone getting this error: udefined index: action do the following.

Find

$_GET['action']=='iphone'

Replace

(isset ($_GET['action']) && $_GET['action']=='iphone')
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on September 17, 2009, 07:02:17 PM
Quote from: Calumks on September 09, 2009, 05:42:18 AM
Anyone getting this error: udefined index: action do the following.

Find

$_GET['action']=='iphone'


Replace

(isset ($_GET['action']) && $_GET['action']=='iphone')




Just to be sure you mean both occurences in Load.php?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mick. on September 23, 2009, 06:25:33 PM
some of you modified this to work with 1.1

Do you mind uploading the modified mod here?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on October 01, 2009, 01:02:14 PM
It works fine with SMF 2.0 RC1.2, however I'm getting some errors in the log:
8: Undefined variable: isprofile
Bestand: ../public_html/forum/Themes/smf4iphone/Display.template.php (body_below sub template - eval?)
Regel: 210

(and alot more like ispm, issearch, action, etc..)

Also this one:
8: Undefined index: action
Bestand: ../public_html/forum/Sources/Load.php
Regel: 1247


Load.php:

if((!isset($_COOKIE['noiphone']) && $_GET['action']!='noiphone')||(isset ($_GET['action']) && $_GET['action']=='iphone'))
$id_theme = 7;


Any idea's?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: rjscott on October 28, 2009, 05:27:38 AM
Quote from: farfromperfection on October 28, 2009, 02:09:27 AM
I have some free time and want to fix the issues with SMF 4 iPhone that you're having.

I will do this as soon as I finish porting SMF 4 iPhone to SMF 1.1.10

Follow me on Twitter (http://twitter.com/ffperfection) for more frequent updates.

Thanks,
Scott.
I'm very happy to read that you're porting this to SMF 1.1.10!
Thank you
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mick. on October 28, 2009, 09:27:17 PM
Quote from: rjscott on October 28, 2009, 05:27:38 AM
Quote from: farfromperfection on October 28, 2009, 02:09:27 AM
I have some free time and want to fix the issues with SMF 4 iPhone that you're having.

I will do this as soon as I finish porting SMF 4 iPhone to SMF 1.1.10

Follow me on Twitter (http://twitter.com/ffperfection) for more frequent updates.

Thanks,
Scott.
I'm very happy to read that you're porting this to SMF 1.1.10!
Thank you

Yes, very cool. I cant wait.   hehehe
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: AmphetaMarinE on October 29, 2009, 07:10:36 PM
Quote from: timned88 on September 05, 2009, 05:27:01 PM
ok, i fixed the alignment issue by adding a few <br>'s into display.template.php. 
works great now. 
Where did you put the <br />'s?
I have the same issue with certain members avatars. (Alignment is whacky...)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on October 30, 2009, 04:46:24 AM
+1
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: 7s-1k on November 02, 2009, 04:09:42 AM
I'm inpressed!  :D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: tsp_derek on November 09, 2009, 04:32:18 PM
i accidentally hit the "classic" button.  now i can't seem to get the iphone interface back.  what do i need to do to revert back on the iphone?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: tsp_derek on November 09, 2009, 05:25:46 PM
nevermind.  cleared the cache, and that did it.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mick. on November 09, 2009, 06:09:55 PM
How is this installed?    Theme page or package manager?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on November 10, 2009, 12:25:52 PM
Quote from: 7s-1k on November 02, 2009, 04:09:42 AM
I'm inpressed!  :D

action=iphone.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: tsp_derek on November 10, 2009, 04:52:32 PM
i have one suggestion for this theme, which is to add a way to select your page.  You have next and previous buttons, which is good, but if you have a long thread, that could get old very, very fast.

i'm also noticing that posts that don't extend further than the avatar cause the following post to wrap around the avatar of the previous post.  i can only assume that's a bug, rather than by design.

what does quoting on/quoting off do?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Doug on November 11, 2009, 08:29:25 PM
I'm getting "Unable to load the 'main_above' template." on RC2

Any ideas guys?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on November 20, 2009, 02:10:18 PM
register form does not appear with RC2 :-\
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on November 28, 2009, 11:46:40 PM
no matter, i made it work and corrected all the eval errors and other bugs of this theme. finally it works completely properly now
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on November 29, 2009, 09:52:17 AM
And are you going to share it with us?  :-*
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on November 29, 2009, 02:51:38 PM
Quote from: Mr. Jinx on November 29, 2009, 09:52:17 AM
And are you going to share it with us?  :-*
well, i made changes on almost half of the files of the theme. i corrected the PM icon bug (in the menubar on the bottom), made a localizable system so that can be used more than one iPhone.language template and localized strings changes switching language in users profile, added a Users Online box at the end of the Index, and some other changes and bugfixes. so i would really have the author's approval before sharing such a change to his theme...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on November 30, 2009, 02:33:08 PM
Well I for one would be very grateful if you could get permission to share the changes. It was apparent in the pub last night that showing iPhone users how to access the wap2 version wasnt cutting it. and that a theme designed for the phone was what is needed mostly so I dont get moaned at).

And this theme looks good even on my low rent Nokia E63

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: LC on December 01, 2009, 11:03:13 AM
I love this. Awesome theme for iphone users.  :D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on December 02, 2009, 05:06:02 PM
I also made some changes. Check out mine: click on my signature on iphone.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on December 02, 2009, 05:50:54 PM
Anyone having problems with registering on SMF 2.0 RC2 do replace your register.template.php with this code:

<?php
// Version: 2.0 RC1; Register
// Before showing users a registration form, show them the registration agreement.
function template_registration_agreement()
{
global $context$settings$options$scripturl$txt$modSettings;

echo '
<form action="'
$scripturl'?action=register" method="post" accept-charset="'$context['character_set'], '" id="registration">
<h3 class="catbg"><span class="left"></span>
'
$txt['registration_agreement'], '
</h3>
<ul class="posts">

<li>
<div class="last message" style="font-size:11px;">
'
,$agreement[0],' <a href="#" onclick="this.parentNode.innerHTML=\''addslashes($context['agreement']) ,'\'; return false;">Read Agreement (recomended)</a>
</div>
</li>

</ul>

<div id="confirm_buttons">'
;

// Age restriction in effect?
if ($context['show_coppa'])
echo '
<input type="submit" name="accept_agreement" value="'
$context['coppa_agree_above'], '" class="button_submit" /><br /><br />
<input type="submit" name="accept_agreement_coppa" value="'
$context['coppa_agree_below'], '" class="button_submit" />';
else
echo '
<div class="child buttons">

<button name="accept_agreement">'
'I Accept' .'</button>

</div>'
;

echo '
</div>
<input type="hidden" name="step" value="1" />
</form>'
;

}
// Before registering - get their information.
function template_registration_form()
{
global $context$settings$options$scripturl$txt$modSettings;

// Make sure they've agreed to the terms and conditions.
echo '
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/scripts/register.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function verifyAgree()
{
if (currentAuthMethod == \'passwd\' && document.forms.creator.smf_autov_pwmain.value != document.forms.creator.smf_autov_pwverify.value)
{
alert("'
$txt['register_passwords_differ_js'], '");
return false;
}'
;

// If they haven't checked the "I agree" box, tell them and don't submit.
if ($context['require_agreement'])
echo '

if (!document.forms.creator.regagree.checked)
{
alert("'
$txt['register_agree'], '");
return false;
}'
;

// Otherwise, let it through.
echo '

return true;
}

var currentAuthMethod = \'passwd\';
function updateAuthMethod()
{
// What authentication method is being used?
if (!document.getElementById(\'auth_openid\') || !document.getElementById(\'auth_openid\').checked)
currentAuthMethod = \'passwd\';
else
currentAuthMethod = \'openid\';

// No openID?
if (!document.getElementById(\'auth_openid\'))
return true;

document.forms.creator.openid_url.disabled = currentAuthMethod == \'openid\' ? false : true;
document.forms.creator.smf_autov_pwmain.disabled = currentAuthMethod == \'passwd\' ? false : true;
document.forms.creator.smf_autov_pwverify.disabled = currentAuthMethod == \'passwd\' ? false : true;
document.getElementById(\'smf_autov_pwmain_div\').style.display = currentAuthMethod == \'passwd\' ? \'\' : \'none\';
document.getElementById(\'smf_autov_pwverify_div\').style.display = currentAuthMethod == \'passwd\' ? \'\' : \'none\';

if (currentAuthMethod == \'passwd\')
{
verificationHandle.refreshMainPassword();
verificationHandle.refreshVerifyPassword();
document.forms.creator.openid_url.style.backgroundColor = \'\';
}
else
{
document.forms.creator.smf_autov_pwmain.style.backgroundColor = \'\';
document.forms.creator.smf_autov_pwverify.style.backgroundColor = \'\';
document.forms.creator.openid_url.style.backgroundColor = \'#FCE184\';
}

return true;
}'
;

if ($context['require_agreement'])
echo '
function checkAgree()
{
document.forms.creator.regSubmit.disabled =  (currentAuthMethod == "passwd" && (isEmptyText(document.forms.creator.smf_autov_pwmain) || isEmptyText(document.forms.creator.user) || isEmptyText(document.forms.creator.email))) || (currentAuthMethod == "openid" && isEmptyText(document.forms.creator.openid_url)) || !document.forms.creator.regagree.checked;
setTimeout("checkAgree();", 1000);
}
setTimeout("checkAgree();", 1000);'
;

echo '
// ]]></script>'
;

// Any errors?
if (!empty($context['registration_errors']))
{
foreach ($context['registration_errors'] as $error)
echo '
<h2>'
$error'</h2>';

}

echo '
<form action="'
$scripturl'?action=register2" method="post" accept-charset="'$context['character_set'], '" name="creator" id="creator" onsubmit="return verifyAgree();">';

echo
'

<h2></h2>

<ul class="login" style="clear:both;">


<li>
<div class="field">
<div class="fieldname">'
$txt['username'] .'</div>
<div class="fieldinfo"><input type="text" name="user" id="smf_autov_username" size="30" tabindex="'
$context['tabindex']++, '" maxlength="25" value="', isset($context['username']) ? $context['username'] : '''" /></div>
</div>
</li>

<li>
<div class="last field">
<div class="fieldname">'
$txt['email'] .'</div>
<div class="fieldinfo"><input type="text" name="email" id="smf_autov_reserve1" size="30" tabindex="'
$context['tabindex']++, '" value="', isset($context['email']) ? $context['email'] : '''" /></div>
</div>
</li>

</ul>

<h2>'
$txt['password'] .'</h2>

<ul class="login">

<li>
<div class="field">
<div class="fieldname">'
$txt['iChoose'] .'</div>
<div class="fieldinfo"><input type="password" name="passwrd1" id="smf_autov_pwmain" size="30" tabindex="'
$context['tabindex']++, '" /></div>
</div>
</li>

<li>
<div class="last field">
<div class="fieldname">'
$txt['iVerify'] .'</div>
<div class="fieldinfo"><input type="password" name="passwrd2" id="smf_autov_pwverify" size="30" tabindex="'
$context['tabindex']++, '" /></div>
</div>
</li>

</ul>'
;

if (
$context['visual_verification'])
{echo'

<h2>'
$txt['iVerification'] .'</h2>

<ul class="login">

<li>
<div class="verification field">
<div class="fieldname">code</div>
<div class="fieldinfo">'
,template_control_verification($context['visual_verification_id'], 'all'),'</div>
</div>
</li>

<li>
<div class="last field">
<div class="fieldname">verify</div>
<div class="fieldinfo"><input type="text" name="register_vv[code]" value="" size="30" tabindex="5" />
</div>
</div>
</li>


</ul>

'
;

}


if (!empty(
$modSettings['coppaAge']))

echo '

<h4 class="reg"><input type="checkbox" name="skip_coppa" id="skip_coppa" tabindex="'
$context['tabindex']++, '" ', !empty($context['skip_coppa']) ? 'checked="checked"' ''' class="check" /> I am at least 13 years old.</h4>


'
;

echo'<div class="child buttons">

<button name="regSubmit">'
$txt['register'] .'</button>

</div>'
;



echo 
'

<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Uncheck the agreement thing....


// Clever registration stuff...
echo '
var regTextStrings = {
"username_valid": "'
$txt['registration_username_available'], '",
"username_invalid": "'
$txt['registration_username_unavailable'], '",
"username_check": "'
$txt['registration_username_check'], '",
"password_short": "'
$txt['registration_password_short'], '",
"password_reserved": "'
$txt['registration_password_reserved'], '",
"password_numbercase": "'
$txt['registration_password_numbercase'], '",
"password_no_match": "'
$txt['registration_password_no_match'], '",
"password_valid": "'
$txt['registration_password_valid'], '"
};
var verificationHandle = new smfRegister("creator", '
, empty($modSettings['password_strength']) ? $modSettings['password_strength'], ', regTextStrings);
// Update the authentication status.
updateAuthMethod();'
;

echo 
'
// ]]></script>'
;
}

// After registration... all done ;).
function template_after()
{
global $context$settings$options$txt$scripturl;

// Not much to see here, just a quick... "you're now registered!" or what have you.
echo '<h2>'$context['description'], '</h2>';
echo '<br /><div align="center"><button onclick="go(\'home\');">Done</button></div>';
}

?>
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 03, 2009, 12:06:19 AM
just asked the author (http://twitter.com/ffperfection) if i can post the modified theme. i asked him on twitter cause i think he doesn't read the forum really often...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on December 03, 2009, 09:48:51 AM
Don't botther asking him. Just post it. I bought the theme at the start for support and he does not reply to any of my emails :(.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 03, 2009, 06:29:34 PM
Well, here it is:
http://www.2shared.com/file/9674104/53c47c80/smf4iphone_20rc2.html

Many files and even directories have been changed so it is a good idea to completely delete the old SMF4iPhone theme and install this one as new.




If you want to make a new language file, make a copy of iPhone.language.english.php
Then translate it and name it iPhone.language.YOURLANGUAGE.php
Then create a directory named YOURLANGUAGE in the images folder, and make a copy
of the two images which are in /images/english/ folder (if you know how to edit
images you can even translate them).




QuoteCHANGELOG
======================================
- 2.0 RC2
FIX: all undefined index index errors
FIX: registration form not displaying.
FIX: CSS in registration form and in
     login form.
FIX: "new PM" icon not displaying.
FIX: "new PM" badge showing the number
     of new PMs not aligned correctly.
FIX: alignment bug of the posts.
FIX: size of avatrs in posts and PMs.
FIX: theme not displaying in theme's
     selection page.
ADD: "Users Online" in the index.
ADD: language changing when changed
     in Profile's page by the user.
ADD: italian language support.
ADD: support for reCAPTCHA in
     registration form.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on December 04, 2009, 05:16:56 AM
I can't get the theme to show child boards inside their parent boards (above the topics). Found a way to do this?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 04, 2009, 05:29:48 AM
Quote from: Calumks on December 04, 2009, 05:16:56 AM
I can't get the theme to show child boards inside their parent boards (above the topics). Found a way to do this?
is it just a bug with RC2? or is that a function you want me to add?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on December 04, 2009, 05:45:51 AM
Thank you Fabius85 for this update! It's working great with RC2 now!
I only had a small undefined error in BoardIndex.Template.php.

I just replaced:
foreach ($context['latest_posts'] as $post){
with:
if (!empty($context['latest_posts']))
foreach ($context['latest_posts'] as $post){
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 04, 2009, 05:50:55 AM
you're welcome :)

well, i'm gonna work on the childboards matter this weekend, i will post the code when done
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on December 04, 2009, 07:49:26 AM
Hi

Thanks for this. I had one problem, the index.template.php file was different from what was expected.
instead of
echo '
<li id="button_', $act, '"', !empty($classes) ? ' class="' . $classes . '"' : '', '>
<a title="', $act, '" href="', $button['href'], '">
<span>', ($button['active_button'] ? '<em>' : ''), $button['title'], ($button['active_button'] ? '</em>' : ''), '</span>
</a>
</li>';


I have
echo '
<li id="button_', $act, '">
<a class="', $button['active_button'] ? 'active ' : '', 'firstlevel" href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>
<span class="', isset($button['is_last']) ? 'last ' : '', 'firstlevel">', $button['title'], '</span>
</a>';
if (!empty($button['sub_buttons']))
{
echo '
<ul>';

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>
<span', isset($childbutton['is_last']) ? ' class="last"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</span>
</a>';
// 3rd level menus :)
if (!empty($childbutton['sub_buttons']))
{
echo '
<ul>';

foreach ($childbutton['sub_buttons'] as $grandchildbutton)
echo '
<li>
<a', $grandchildbutton['active_button'] ? ' class="active"' : '', ' href="', $grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ' target="' . $grandchildbutton['target'] . '"' : '', '>
<span', isset($grandchildbutton['is_last']) ? ' class="last"' : '', '>', $grandchildbutton['title'], '</span>
</a>
</li>';

echo '
</ul>';
}

echo '
</li>';
}
echo '
</ul>';


So I added

/* Begin SMF4iPhone Mod */
$i++;
if($i==count($context['menu_buttons'])&&(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false))

echo '
<li>
<a title="Switch to iPhone Mode" href="index.php?action=iphone">
<span>Switch to iPhone</span>
</a>
</li>';

/* End SMF4iPhone Mod */


after. This seems to have worked.

I'll do some testing later. I don't have an iPhone here but will try with another smartphone.


Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 04, 2009, 08:27:27 AM
i have too many buttons on my forum menubar so in my default theme i just added a "Switch to iPhone View" link after theme_copyright() in the function template_body_below() of index.template.php, it works fine :)

/*if (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false) {*/
    echo '<br /><br /><li class="last"><a id="button_mobile" href="', $scripturl , '?action=iphone" class="new_win"><strong>[ <small>Switch to iPhone View</small> ]</strong></a></li>';
/*}*/


remove the /* and */ from the first and third line if you want the link being displayed only to iPhone/iPod users and not to everyone
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on December 04, 2009, 01:14:58 PM
Quote from: Fabius85 on December 04, 2009, 05:29:48 AM
Quote from: Calumks on December 04, 2009, 05:16:56 AM
I can't get the theme to show child boards inside their parent boards (above the topics). Found a way to do this?
is it just a bug with RC2? or is that a function you want me to add?

A function. I failed to do it. If you do that for me I will give you the code so that you can modify and delete posts.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: BxK on December 04, 2009, 04:43:57 PM
I've done almost a complete re-write of this . It's no longer a theme but actually implemented into SMF just like wap is ... more info soon on my blog if anyone is interested. It makes it much easier to switch between iPhone mode and normal mode.
I will be updating my blog will the info in the next few days about it. Thanks!
http://mattcworld.com (http://mattcworld.com)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on December 04, 2009, 05:12:02 PM
Quote from: BxK on December 04, 2009, 04:43:57 PM
I've done almost a complete re-write of this . It's no longer a theme but actually implemented into SMF just like wap is ... more info soon on my blog if anyone is interested. It makes it much easier to switch between iPhone mode and normal mode.
I will be updating my blog will the info in the next few days about it. Thanks!
http://mattcworld.com (http://mattcworld.com)
what do you mean with "complete re-write"?
waiting for screenies! :D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: BxK on December 04, 2009, 05:45:00 PM
http://mattcworld.com/?page_id=2
added it to the projects page to give more insight on what I'm doing. It's really nothing "new" but their will be in the later versions as it seems the SMF4iPhone creator has kind of well  ditched it?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Nibogo on December 04, 2009, 08:09:40 PM
I have installed this theme and it's great, but I have some issues:

1. I got this error "Unable to load the 'main_above' template." well it happends when the SMF4iPhone try to load the 4 Theme as you can see in the Load.php file, so you just have to modify the "$id_theme = 4;" with the ID of the iPhone Theme on your SMF, in my case it's 12 so I replace it with "$id_theme = 12;" (If you don't know the ID of the iPhone Theme you can see on the Themes Settings or just adding to your website: index.php?theme=4 and try replacing this 4 with other numbers).

2. I had an issue with SimplePortal in case that someone has SPortal installed you can see that the portal appear in the iPhone version so to disable this open your Subs-SimplePortal.php and:

Search For:
if (WIRELESS || ($standalone && (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))) || !empty($settings['disable_sp']) || empty($modSettings['sp_portal_mode']) || (!empty($maintenance) && !allowedTo('admin_forum')) || isset($_GET['debug']) || (empty($modSettings['allow_guestAccess']) && $context['user']['is_guest']))

Replace With:
if (WIRELESS || ((isset($_REQUEST['action']) && ($_REQUEST['action'] == 'iphone')) || ($context['browser']['is_iphone'] && ($_REQUEST['action'] !== 'noiphone'))) || ($standalone && (isset($_REQUEST['wap']) || isset($_REQUEST['wap2']) || isset($_REQUEST['imode']))) || !empty($settings['disable_sp']) || empty($modSettings['sp_portal_mode']) || (!empty($maintenance) && !allowedTo('admin_forum')) || isset($_GET['debug']) || (empty($modSettings['allow_guestAccess']) && $context['user']['is_guest']))

Thanks for this useful Theme! :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on December 05, 2009, 06:59:46 AM
@NIBOGO: man if you installed my version of smf4iphone and you have a default language different from english you MUST create an iPnone.language.YOURLANGUAGE.php or theme wont load. I'm gonna fix it by loading english language template in next release (i'll work on it this weekend)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Nibogo on December 05, 2009, 06:45:31 PM
Quote from: Fabius85 on December 05, 2009, 06:59:46 AM
@NIBOGO: man if you installed my version of smf4iphone and you have a default language different from english you MUST create an iPnone.language.YOURLANGUAGE.php or theme wont load. I'm gonna fix it by loading english language template in next release (i'll work on it this weekend)


Yes, I know, I already did it:

www.mundo-se.com/index.php?action=iphone
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 06, 2009, 07:55:47 AM
i made some changes and this is my new release available for download :)
http://www.2shared.com/file/9745992/5136fd54/smf4iphone_20rc2.html

QuoteCHANGELOG
======================================
06/12/2009
¯¯¯¯¯¯¯¯¯¯
- 2.0 RC2
FIX: if no language file is available
     english language is used.
FIX: undifined index error in boards.
ADD: displaying childboards in boards.

if you already installed my version of SMF4iPhone, just extract these files from theme.zip archive:
- BoardIndex.template.php
- index.template.php
- MessageIndex.template.php

and replace the older ones in theme's folder
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on December 06, 2009, 08:02:10 AM
i installed this on my forum but when i go on my iPhone to my site i don't see the theme, is there a file that i should edit?



Quote from: Fabius85 on December 06, 2009, 07:55:47 AM
i made some changes and this is my new release available for download :)
http://www.2shared.com/file/9745992/5136fd54/smf4iphone_20rc2.html

QuoteCHANGELOG
======================================
06/12/2009
¯¯¯¯¯¯¯¯¯¯
- 2.0 RC2
FIX: if no language file is available
     english language is used.
FIX: undifined index error in boards.
ADD: displaying childboards in boards.

if you already installed my version of SMF4iPhone, just extract these files from theme.zip archive:
- BoardIndex.template.php
- index.template.php
- MessageIndex.template.php

and replace the older ones in theme's folder

does this ^^^ work for 1.1.11?  the author of the theme said on twitter that it does
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 06, 2009, 08:30:25 AM
Quote from: dembow on December 06, 2009, 08:02:10 AM
i installed this on my forum but when i go on my iPhone to my site i don't see the theme, is there a file that i should edit?


does this ^^^ work for 1.1.11?  the author of the theme said on twitter that it does

well, i didn't try that on 1.1.11 but i really dont think it works cause it is a template made for 2.0
FFPerfection said that he would have worked on a theme for 1.1.x but he released nothing ATM.
that's probabily why you cant see the theme...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on December 06, 2009, 05:15:20 PM
Quote from: Fabius85 on December 06, 2009, 08:30:25 AM
well, i didn't try that on 1.1.11 but i really dont think it works cause it is a template made for 2.0
FFPerfection said that he would have worked on a theme for 1.1.x but he released nothing ATM.
that's probabily why you cant see the theme...

well i've tried it on 2.0 as well and i still can't see it on my iPhone

i installed the theme threw the admin panel no problems

when i installed the mod i got this

(http://i47.tinypic.com/adoi68.png) (http://i47.tinypic.com/adoi68.png)

although after clicking install now it said it installed successfully

am i doing something wrong?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: rd on December 06, 2009, 06:07:32 PM
Haven't read all the posts so I don't know if any one mentioned it. There seems too be a lot of errors with the first SMF 4 Iphone for Rc 1. Got my database to 100 MB :( I had my PHP guy fix it, he says the mod is a result of "poor coding" but I disagree, even if it has the errors, it's great for me to access the forum from my IPhone. I just wish that I could access the admin control page too.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 07, 2009, 12:14:04 AM
Quote from: dembow on December 06, 2009, 05:15:20 PM
am i doing something wrong?
try to use add
?action=iphone
at the end of the link of your index.php
example:
http://www.YOURSITE.com/forum/index.php?action=iphone
and tell me if you can see you forum with the iphone theme or not

Quote from: mohd7590 on December 06, 2009, 06:07:32 PM
Haven't read all the posts so I don't know if any one mentioned it. There seems too be a lot of errors with the first SMF 4 Iphone for Rc 1. Got my database to 100 MB :( I had my PHP guy fix it, he says the mod is a result of "poor coding" but I disagree, even if it has the errors, it's great for me to access the forum from my IPhone. I just wish that I could access the admin control page too.
as you can see in my changelog i fixed all that undefined index errors ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: dembow on December 07, 2009, 01:01:59 AM
Quote from: Fabius85 on December 07, 2009, 12:14:04 AM

try to use add
?action=iphone
at the end of the link of your index.php
example:
http://www.YOURSITE.com/forum/index.php?action=iphone
and tell me if you can see you forum with the iphone theme or not

no :(
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 07, 2009, 04:09:31 AM
Quote from: dembow on December 07, 2009, 01:01:59 AM

no :(

try selecting it from the Themes selection in your profile
(i hope you installed also the theme files, and added the theme in your Theme manage section of admin panel, and not only the mod which just enables the auto-catching of iphone/ipod users ::))
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on December 07, 2009, 06:10:39 AM
lol well yes :P if i select the theme in the admin panel i see it fine

(http://i50.tinypic.com/2lagh92.png) (http://i50.tinypic.com/2lagh92.png)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on December 07, 2009, 06:13:27 AM
also in my profile
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Do2 on December 07, 2009, 06:16:59 AM
Really amazing! Only 4 months left, then i get my iPhone. ;D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 07, 2009, 06:45:57 AM
Quote from: dembow on December 07, 2009, 06:13:27 AM
also in my profile
well, i tought you werent able to completely use the theme ^^

so you should see in /Sources/Load.php if the lines of code to display the theme by the action "iphone" were added or not, and in case add them manually
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on December 07, 2009, 06:58:24 AM
could you please tell me what lines i have to add, i'm sure that's what i'm missing
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on December 07, 2009, 07:05:15 AM
just made a find and replace on load.php and found this

on line 1285:
'is_iphone' => strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false,

and this on lines 1323, 1324 and 1325:

elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false || (isset($_GET['action']) && $_GET['action']=='iphone')){
if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 07, 2009, 07:22:31 AM
Quote from: dembow on December 07, 2009, 06:58:24 AM
could you please tell me what lines i have to add, i'm sure that's what i'm missing

in Sources/Load.php search for:
// The theme was specified by parameter.
if (!empty($id_theme))
$id_theme = (int) $id_theme;
// The theme was specified by REQUEST.

and replace with:
// The theme was specified by parameter.
if (!empty($id_theme))
$id_theme = (int) $id_theme;
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false || $_GET['action']=='iphone'){
if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')
$id_theme = 4;}
// The theme was specified by REQUEST.


in index.php (the one in the main folder of the forum) search for:
// Get the function and file to include - if it's not there, do the board index.
and after that insert:
/* Begin SMF4iPhone Mod */

if($_GET['action']=='noiphone'){

setcookie("noiphone", '1', time()+999999);

}

if($_GET['action']=='iphone'){

setcookie("noiphone", '0', time()-1);

}

/* End SMF4 iPhone Mod */

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 07, 2009, 07:24:58 AM
Quote from: dembow on December 07, 2009, 07:05:15 AM
just made a find and replace on load.php and found this

on line 1285:
'is_iphone' => strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false,

and this on lines 1323, 1324 and 1325:

elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false || (isset($_GET['action']) && $_GET['action']=='iphone')){
if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')

the one on line 1285 has nothing to do with SMF4iPhone.
the lines 1323, 1324 and 1325 were added by installing SMF4iPhone mod, so, it was correctlyinstalled and i dont know why cant load it via index.php?action=iphone  :-\
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on December 07, 2009, 05:06:54 PM
Quote from: Fabius85 on December 07, 2009, 07:22:31 AM

in Sources/Load.php search for:
// The theme was specified by parameter.
if (!empty($id_theme))
$id_theme = (int) $id_theme;
// The theme was specified by REQUEST.

and replace with:
// The theme was specified by parameter.
if (!empty($id_theme))
$id_theme = (int) $id_theme;
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false || $_GET['action']=='iphone'){
if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')
$id_theme = 4;}
// The theme was specified by REQUEST.


in index.php (the one in the main folder of the forum) search for:
// Get the function and file to include - if it's not there, do the board index.
and after that insert:
/* Begin SMF4iPhone Mod */

if($_GET['action']=='noiphone'){

setcookie("noiphone", '1', time()+999999);

}

if($_GET['action']=='iphone'){

setcookie("noiphone", '0', time()-1);

}

/* End SMF4 iPhone Mod */


i already had all that ^^^  :'(
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: BxK on December 07, 2009, 06:50:08 PM
example ....
http://empireofthesun.net/forum/index.php?;iphone

cool... eh?

to switch back to normal?
http://empireofthesun.net/forum/index.php?;nowap

Pretty simple eh?

EDIT: yes it does auto detect....
Fixing search and PM and its going to be sent to a website near you. =)

Oh and whats up with all this code? I used 2 lines of code...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on December 07, 2009, 06:59:40 PM
Quote from: Fabius85 on December 07, 2009, 07:24:58 AM
so, it was correctlyinstalled and i dont know why cant load it via index.php?action=iphone  :-\

just found out what was wrong  (http://i44.tinypic.com/9sa1jl.jpg)

here were it says

$id_theme = 4;}


since this is a testing forum and i just have the two themes that come with rc2, so the iphone theme makes it 3, so i changed the 4 to a 3 and it worked
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on December 08, 2009, 01:25:08 PM
Quote from: BxK on December 07, 2009, 06:50:08 PM
example ....
http://empireofthesun.net/forum/index.php?;iphone

cool... eh?

Looks very good indeed! Using the wireless.template.php like wap sure is the right way.

Some things I'm missing with the current mod:
-Easy way to go from a board / topic back to the board index (seems to loop now)
-A way to edit your own posts would be very cool
-Skip to the last post in large topics (now you have to press next next next next net :))
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 08, 2009, 01:32:35 PM
Quote from: Mr. Jinx on December 08, 2009, 01:25:08 PM
Quote from: BxK on December 07, 2009, 06:50:08 PM
example ....
http://empireofthesun.net/forum/index.php?;iphone

cool... eh?

Looks very good indeed! Using the wireless.template.php like wap sure is the right way.

Some things I'm missing with the current mod:
-Easy way to go from a board / topic back to the board index (seems to loop now)
-A way to edit your own posts would be very cool
-Skip to the last post in large topics (now you have to press next next next next net :))
i'm gonna fix the "Back" button loop. for the moment just click on Menu button (top right corner), then Index button (bottom left corner).
moreover, i'm going to add edit/delete posts/pms, and topic pages numbers :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on December 08, 2009, 03:36:42 PM
Does anyone know how to make this theme active for all (smart)phones? It looks pretty good on Blackberrys and my Nokia E series phone.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 09, 2009, 04:21:55 AM
Quote from: doughboy99 on December 08, 2009, 03:36:42 PM
Does anyone know how to make this theme active for all (smart)phones? It looks pretty good on Blackberrys and my Nokia E series phone.
do you mean that everyone having a mobile device direclty load SMF4iPhone theme by default instead of the normal theme?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on December 09, 2009, 05:05:52 AM
Well certainly anyone with a phone capable of showing the theme. Ideally those phones that can only deal with WAP would better redirecting to the wap2 version of the forum.

I found the attached script that will detect the phones capability and its browser but I havent figured out how to shoe horn it into SMF.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 09, 2009, 06:45:17 AM
Quote from: doughboy99 on December 09, 2009, 05:05:52 AM
Well certainly anyone with a phone capable of showing the theme. Ideally those phones that can only deal with WAP would better redirecting to the wap2 version of the forum.

I found the attached script that will detect the phones capability and its browser but I havent figured out how to shoe horn it into SMF.
where you have this check:
(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false)
just add other user agents check conditions
however i saw this theme on operamobile, that's completely unaligned and deformed...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on December 10, 2009, 05:05:46 AM
The new Theme does not show the "New Buttons"




To add Modify and Delete buttons to your posts edit the desplay.template.php.

Find
if($context['page_info']['num_pages']==1)
$number = $context['total_visible_posts'];
elseif($context['page_info']['num_pages']>1 && $context['page_info']['current_page']>1)
$number = $context['total_visible_posts']-$context['start'];
elseif($context['page_info']['num_pages']>1 && $context['page_info']['current_page']==1)
$number = $context['messages_per_page'];

while ($message = $context['get_message']())
{


After

// These are some cache image buttons we may want.
$modify_button = create_button('modify.gif', 'modify_msg', 'modify', 'align="left"');
$remove_button = create_button('delete.gif', 'remove_message', 'remove', 'align="right"');

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<div class="calumks"><li><a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $modify_button, '</a></li>

';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');">', $remove_button, '</a></li></div><br>';

if (!$message['member']['avatar']['href'])
$message['member']['avatar']['href'] = $settings['theme_url'].'/img/noavatar.png';


Add two images named modify.gif and delete.gif which you can find in the defult theme and place them in /theme/images/.

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 10, 2009, 09:18:18 AM
Quote from: Calumks on December 10, 2009, 05:05:46 AM
The new Theme does not show the "New Buttons"
are you talking about mine?

ps: thanks for sharing edit and delete button ^^
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Leemy on December 10, 2009, 10:17:25 PM
Fabius,
THanks for maintaining this mod.. SHouldnt you try to take over the mod itself on simplemachines.org or make a new mod? so you can have proper documentation/download?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 11, 2009, 12:43:10 AM
Quote from: Leemy on December 10, 2009, 10:17:25 PM
Fabius,
THanks for maintaining this mod.. SHouldnt you try to take over the mod itself on simplemachines.org or make a new mod? so you can have proper documentation/download?
well, i dont think the author would be really happy if i do this, cause i just fixed bugs and added few things, i didnt created the mod, and it's not even a "based-on" mod.
so i think that without authors permission i probably cant do that :-/
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on December 11, 2009, 02:20:09 PM
Getting these errors:

QuoteGuest
Type of error: General
http://www.ihackmyi.com/iphone/index.php?action=forum2: Invalid argument supplied for foreach()
File: /home/iplod1/public_html/iphone/Themes/theme/BoardIndex.template.php
Line: 89

foreach ($context['latest_posts'] as $post){

   
QuoteGuest
Type of error: Undefined
http://www.ihackmyi.com/iphone/index.php?board=6.08: Undefined index: action
File: /home/iplod1/public_html/iphone/Sources/Load.php
Line: 1329

if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 12, 2009, 09:13:55 AM
Quote from: Calumks on December 11, 2009, 02:20:09 PM
Getting these errors:

QuoteGuest
Type of error: General
http://www.ihackmyi.com/iphone/index.php?action=forum2: Invalid argument supplied for foreach()
File: /home/iplod1/public_html/iphone/Themes/theme/BoardIndex.template.php
Line: 89

foreach ($context['latest_posts'] as $post){
already fixed that in last release ^^

Quote from: Calumks on December 11, 2009, 02:20:09 PM
QuoteGuest
Type of error: Undefined
http://www.ihackmyi.com/iphone/index.php?board=6.08: Undefined index: action
File: /home/iplod1/public_html/iphone/Sources/Load.php
Line: 1329

if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')

gonna fix in next release
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 13, 2009, 05:57:01 AM
Quote from: Fabius85 on December 12, 2009, 09:13:55 AM
gonna fix in next release
Errata corrige: i already fixed that too!

for the first error, in Boardindex.template.php replace with:
if (!empty($context['latest_posts']))
foreach ($context['latest_posts'] as $post){


for the second error in Load.php replace with:
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false || (isset($_GET['action']) && $_GET['action']=='iphone')){

ps: new release coming soon with some little things added ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 13, 2009, 07:29:48 PM
here it is: :)
http://www.2shared.com/file/9967148/e09dc124/smf4iphone_20rc2.html

QuoteCHANGELOG
======================================
14/12/2009
¯¯¯¯¯¯¯¯¯¯
- 2.0 RC2
FIX: "Back" Button loop.
ADD: Pages numbers under topic names
     in boards and on top and bottom
     of topic pages.
ADD: modify and delete buttons for
     messages in topics.

if you already installed my previous release of SMF4iPhone (06/12/2009), just replace these files:
- Display.template.php
- MessageIndex.template.php
- index.template.php
- style.css
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: abaca on December 14, 2009, 01:36:57 AM
Wow, very interesting. I will definitely recommend this to all my friends.. Thanks..  ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on December 14, 2009, 04:48:47 AM
Thnx! I just tried it.
Everything is working great now! Editting posts, jumping in large topics, going back to the index. Good job 8)

ps: why don't you attach this package to your post (attachment)?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on December 14, 2009, 07:14:22 AM
I noticed that when you use index.php?action=iphone in a normal browser, it doesn't stay in iphone mode.
Example : http://www.chelloo.com/upc/index.php?action=iphone
As soon as you click a link it will switch to default mode. This prevents users with other mobiles to use this theme.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 14, 2009, 07:50:16 PM
Quote from: Mr. Jinx on December 14, 2009, 07:14:22 AM
I noticed that when you use index.php?action=iphone in a normal browser, it doesn't stay in iphone mode.
Example : http://www.chelloo.com/upc/index.php?action=iphone
As soon as you click a link it will switch to default mode. This prevents users with other mobiles to use this theme.
there must be an error in your Load.php beacuse i notice in my cookies list that it is saved "noiphone" cookie, instead of "iphone" cookie. can you post here the lines of your Load.php referring to SMF4iPhone Theme?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on December 15, 2009, 05:35:25 AM
Load.php
// The theme was specified by parameter.
if (!empty($id_theme))
$id_theme = (int) $id_theme;

//IPHONE MOD
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false || (isset($_GET['action']) && $_GET['action']=='iphone')){
if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')
$id_theme = 8;}

// The theme was specified by REQUEST.


index.php:

/* Begin SMF4iPhone Mod */
if($_GET['action']=='noiphone'){
setcookie("noiphone", '1', time()+999999);
}
if($_GET['action']=='iphone'){
setcookie("noiphone", '0', time()-1);
}
/* End SMF4 iPhone Mod */

// Get the function and file to include - if it's not there, do the board index.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: nestortoledo on December 15, 2009, 05:58:38 AM
Quote from: Mr. Jinx on December 14, 2009, 07:14:22 AM
I noticed that when you use index.php?action=iphone in a normal browser, it doesn't stay in iphone mode.
Example : http://www.chelloo.com/upc/index.php?action=iphone
As soon as you click a link it will switch to default mode. This prevents users with other mobiles to use this theme.

i have same problem here http://www.clublgmobile.com/foro/index.php?action=iphone

My index.php and load.php are the same, except $id_theme = 8;} mine is diferent

Also will be nice, to add the user agents for android and windows mobile phones. most of them are capable to show this theme OK. my Android HTC Hero, is working very good with this theme
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on December 15, 2009, 06:13:56 AM
Yep, that's why I'm trying to get the 'action=iphone' working. This way other mobile users can decide if they want to use the iphone theme or the default theme.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: endiZ on December 15, 2009, 04:49:22 PM
When I try to install the latest version, I get an error with index.template.php.

Find [Select] echo '
         <li id="button_', $act, '"', !empty($classes) ? ' class="' . $classes . '"' : '', '>
            <a title="', $act, '" href="', $button['href'], '">
               <span>', ($button['active_button'] ? '<em>' : ''), $button['title'], ($button['active_button'] ? '</em>' : ''), '</span>
            </a>
         </li>';
Add After [Select]    
   /* Begin SMF4iPhone Mod */
   $i++;
   if($i==count($context['menu_buttons'])&&(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false))
   
   echo '
         <li>
            <a title="Switch to iPhone Mode" href="index.php?action=iphone">
               <span>Switch to iPhone</span>
            </a>
         </li>';
   
   /* End SMF4iPhone Mod */   

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: durrenmatt on December 15, 2009, 06:11:39 PM
hey cool. thanks for sharing this!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Jakobwolff on December 17, 2009, 12:47:20 PM
Hi, i get 2 errors when im trying to install the mod

1. Execute Modification ./Sources/Load.php Test failed
3. Execute Modification ./Themes/default/index.template.php Test failed

What should i do?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 17, 2009, 09:41:51 PM
Quote from: Jakobwolff on December 17, 2009, 12:47:20 PM
Hi, i get 2 errors when im trying to install the mod

1. Execute Modification ./Sources/Load.php Test failed
3. Execute Modification ./Themes/default/index.template.php Test failed

What should i do?
continue installing, it simply doesnt add the button to "switch to iphone theme" to the menubar.

however, i'm gonna fix this and action=iphone problem in next release ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on December 18, 2009, 11:06:47 AM
I can no longer see bold font. Can you?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 18, 2009, 03:18:53 PM
Quote from: Calumks on December 18, 2009, 11:06:47 AM
I can no longer see bold font. Can you?
well i think it never showed <strong> as bold. however you can do this:
open style.css, line 3:
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}
remove:
strong,
that's all

to show underline style too, add this to the end of style.css:
.bbc_u
{
text-decoration: underline;
}


i'll add these changes by default in next release.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Jakobwolff on December 18, 2009, 03:25:34 PM
Ok

what should i do after the installation?

my default theme is oxygen
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 20, 2009, 05:50:58 AM
Quote from: Jakobwolff on December 18, 2009, 03:25:34 PM
Ok

what should i do after the installation?

my default theme is oxygen
can you please explain your problem? ^^
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Jakobwolff on December 20, 2009, 06:15:44 AM
When i try to see my site with this at the end of the url  : action=iphone the site looks like normal ???


Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on December 20, 2009, 08:30:46 AM
@Fabius85: Here is another small request for the next release.

Users on my forum are very happy with this theme! Because they are using it frequently they came up with this:

In the boardindex, you see those blue balls on the left indicating there are new topics in it.
However, when you go to a board with new topics, there is no indication what topics are new.
It would be nice if the new topics are also marked with a blue ball on the left!

Another request is a link/button to show the recent posts.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 21, 2009, 03:19:35 PM
Quote from: Jakobwolff on December 20, 2009, 06:15:44 AM
When i try to see my site with this at the end of the url  : action=iphone the site looks like normal ???
open your Load.php (placed in /Sources folder) and search for
   // The theme was specified by parameter.
   if (!empty($id_theme))
      $id_theme = (int) $id_theme;
   elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false || $_GET['action']=='iphone'){
      if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')
      $id_theme = 4;}

replace
      $id_theme = 4;}
with
      $id_theme = THE_ID_OF_YOUR_SMF4IPHONE_THEME;}
you can find it by moving the mouse on the link to select SMF4iPhone theme in you profile theme selection page. on the statusbar of your browser should appear something like:
http://www.yoursite.com/forum/index.php?action=theme;sa=pick;u=1;th=THE_ID_OF_YOUR_SMF4IPHONE_THEME_YOU_ARE_LOOKING_FOR




Quote from: Mr. Jinx on December 20, 2009, 08:30:46 AM
In the boardindex, you see those blue balls on the left indicating there are new topics in it.
However, when you go to a board with new topics, there is no indication what topics are new.
It would be nice if the new topics are also marked with a blue ball on the left!
there's the "new" icon on the right of topic title for that :)

Quote from: Mr. Jinx on December 20, 2009, 08:30:46 AM
Another request is a link/button to show the recent posts.

on the board index, if you enabled recent posts in your admin panel, it already appears a big tab just under forum logo:
Boards | Recent Posts
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on December 22, 2009, 11:03:02 AM
Quote from: Fabius85 on December 18, 2009, 03:18:53 PM
Quote from: Calumks on December 18, 2009, 11:06:47 AM
I can no longer see bold font. Can you?
well i think it never showed <strong> as bold. however you can do this:
open style.css, line 3:
html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var,optgroup{font-style:inherit;font-weight:inherit;}del,ins{text-decoration:none;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:baseline;}sub{vertical-align:baseline;}legend{color:#000;}input,button,textarea,select,optgroup,option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}input,button,textarea,select{*font-size:100%;}
remove:
strong,
that's all

to show underline style too, add this to the end of style.css:
.bbc_u
{
text-decoration: underline;
}


i'll add these changes by default in next release.

Thanks.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Jakobwolff on December 22, 2009, 01:52:06 PM
Quote from: Fabius85 on December 21, 2009, 03:19:35 PM
Quote from: Jakobwolff on December 20, 2009, 06:15:44 AM
When i try to see my site with this at the end of the url  : action=iphone the site looks like normal ???
open your Load.php (placed in /Sources folder) and search for
   // The theme was specified by parameter.
   if (!empty($id_theme))
      $id_theme = (int) $id_theme;
   elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false || $_GET['action']=='iphone'){
      if((!isset($_COOKIE['noiphone'])&&$_GET['action']!='noiphone')||$_GET['action']=='iphone')
      $id_theme = 4;}

replace
      $id_theme = 4;}
with
      $id_theme = THE_ID_OF_YOUR_SMF4IPHONE_THEME;}
you can find it by moving the mouse on the link to select SMF4iPhone theme in you profile theme selection page. on the statusbar of your browser should appear something like:
http://www.yoursite.com/forum/index.php?action=theme;sa=pick;u=1;th=THE_ID_OF_YOUR_SMF4IPHONE_THEME_YOU_ARE_LOOKING_FOR




Quote from: Mr. Jinx on December 20, 2009, 08:30:46 AM
In the boardindex, you see those blue balls on the left indicating there are new topics in it.
However, when you go to a board with new topics, there is no indication what topics are new.
It would be nice if the new topics are also marked with a blue ball on the left!
there's the "new" icon on the right of topic title for that :)

Quote from: Mr. Jinx on December 20, 2009, 08:30:46 AM
Another request is a link/button to show the recent posts.

on the board index, if you enabled recent posts in your admin panel, it already appears a big tab just under forum logo:
Boards | Recent Posts


my Load.php only says :

// The theme was specified by parameter.   
   if (!empty($ID_THEME))      $ID_THEME = (int) $ID_THEME;
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Jakobwolff on December 22, 2009, 01:56:15 PM
my iphone theme id is 5

http://www.hpibajafan.dk/smf/index.php?action=iphone
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: parminder on December 23, 2009, 03:36:06 AM
Quote from: Mr. Jinx on December 14, 2009, 07:14:22 AM
I noticed that when you use index.php?action=iphone in a normal browser, it doesn't stay in iphone mode.
Example : http://www.chelloo.com/upc/index.php?action=iphone
As soon as you click a link it will switch to default mode. This prevents users with other mobiles to use this theme.
same problem http://www.vehleonline.com/index.php?action=iphone
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: clewis789 on December 23, 2009, 04:32:10 AM
will this ever release for smf 1.1.11 ? or is there any other way of upgrading to version 2.0 without starting all over again ?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 26, 2009, 09:31:08 AM
Quote from: Jakobwolff on December 22, 2009, 01:56:15 PM
my iphone theme id is 5

http://www.hpibajafan.dk/smf/index.php?action=iphone
did you installed only the theme, or also the mod? without the mod action=iphone will never work.

Quote from: clewis789 on December 23, 2009, 04:32:10 AM
will this ever release for smf 1.1.11 ? or is there any other way of upgrading to version 2.0 without starting all over again ?
i dont know if ffperfection is working (or will ever work) on a 1.1.11 version, i can tell that i'll never do. however you can easily upgrade your forum from 1.1.11 to 2.0 RC2. just download 2.0 RC2 LARGE UPGRADE from smf DOWNLOAD PAGE (http://download.simplemachines.org/)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on December 26, 2009, 10:29:53 AM
Anyone got this working with Maintenance Mode?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 26, 2009, 01:08:52 PM
Quote from: Calumks on December 26, 2009, 10:29:53 AM
Anyone got this working with Maintenance Mode?
what do you mean?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on December 27, 2009, 10:02:33 PM
Quote from: Jakobwolff on December 22, 2009, 01:56:15 PM
my iphone theme id is 5

http://www.hpibajafan.dk/smf/index.php?action=iphone

I had the same problem with SMF 2.0 RC2.  Plus I could not resist updating the "package-info.xml" script and fixing the undefined "i" error.  I no longer manually edit my themes because I could never remember what I did on the last version so I made the the attached unofficial mod for my copy of SMF 2.0 RC2.  It works for me but I make no promises as I do not have an iphone to test it.


I guess "theme id" should be in the Modification Settings...  Sorry I did not do that.
:o

(deleted file because it was obsolete)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on December 28, 2009, 12:06:23 AM
There is a conflit between the curve mobile mod and SMF4iPhone's mod. If the Curve mobile mod is installed it will view rather than the SMF4iPhone's mod in the browser.
And there's a messed or code missing that comes with the SMF upgrade. The SMF4iPhone Mod throws a error in index.template.php
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on December 28, 2009, 01:11:25 AM
Quote from: Fabius85 on December 26, 2009, 01:08:52 PM
Quote from: Calumks on December 26, 2009, 10:29:53 AM
Anyone got this working with Maintenance Mode?
what do you mean?

If you set the forum to maintenance Mode in server settings it does not work on Smf4iphone.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on December 28, 2009, 08:52:56 AM
Quote from: Calumks on December 28, 2009, 01:11:25 AM
Quote from: Fabius85 on December 26, 2009, 01:08:52 PM
Quote from: Calumks on December 26, 2009, 10:29:53 AM
Anyone got this working with Maintenance Mode?
what do you mean?

If you set the forum to maintenance Mode in server settings it does not work on Smf4iphone.
i just tried setting on the manteinance mode on my forum and i can see everything working well...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 28, 2009, 10:05:41 AM
New release!
http://www.2shared.com/file/10296625/be32f4f2/smf4iphone_20rc2.html

QuoteCHANGELOG
======================================
28/12/2009
¯¯¯¯¯¯¯¯¯¯
- 2.0 RC2
FIX: New version of the mod, which now
     correctly adds a button to
     Switch to iPhone View and allows
     to mantain iphone cookie even on
     normal browser.
FIX: now bold and underline styles are
     correctly displayed.

about the mod...
before installing it:
1) you must first be sure to delete the changes done to the previous mod
2) you should be sure that your database parameters (login and password) are set in ADMIN PANEL > Server Settings > Database and Paths, even the ones needed to use SSI mode. if they're not set, then the stanard SMF4iPhone theme ID is used (4) and you will need to open your Load.php and set the right ID manually.

about the theme...
the only file changed is style.css, so just replace that if you already installed my previous release.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on December 28, 2009, 01:12:03 PM
Quote from: Fabius85 on December 28, 2009, 10:05:41 AM
New release!
http://www.2shared.com/file/10296625/be32f4f2/smf4iphone_20rc2.html

QuoteCHANGELOG
======================================
28/12/2009
¯¯¯¯¯¯¯¯¯¯
- 2.0 RC2
FIX: New version of the mod, which now
     correctly adds a button to
     Switch to iPhone View and allows
     to mantain iphone cookie even on
     normal browser.
FIX: now bold and underline styles are
     correctly displayed.

about the mod...
before installing it:
1) you must first be sure to delete the changes done to the previous mod
2) you should be sure that your database parameters (login and password) are set in ADMIN PANEL > Server Settings > Database and Paths, even the ones needed to use SSI mode. if they're not set, then the stanard SMF4iPhone theme ID is used (4) and you will need to open your Load.php and set the right ID manually.

about the theme...
the only file changed is style.css, so just replace that if you already installed my previous release.
I am getting a error when trying to install on index.template.php for SMF4iPhone. Image attached

<span', isset($grandchildbutton['is_last']) ? ' class="last"' : '', '>', $grandchildbutton['title'], '</span>
</a>
</li>';

echo '
</ul>';
}

echo '
</li>';
}
echo '
</ul>';
}
echo '
</li>';
}

And replace with:

/* Begin SMF4iPhone Mod */

echo '
<li>
<a title="Switch to iPhone Mode" href="index.php?action=iphone">
<span>Switch to iPhone</span>
</a>
</li>';

/* End SMF4iPhone Mod */

The first code does not appear in index.template.php therefore how and where am I going to put after the first code?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on December 28, 2009, 02:42:11 PM
Found some error in the log:
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 28, 2009, 05:53:18 PM
Quote from: Dismal Shadow on December 28, 2009, 01:12:03 PM
The first code does not appear in index.template.php therefore how and where am I going to put after the first code?
the change to index.template.php must be applyed to the normal themes, not to iphone theme! so dont even try to do that! ^^
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on December 28, 2009, 06:17:22 PM
Quote from: Fabius85 on December 28, 2009, 05:53:18 PM
Quote from: Dismal Shadow on December 28, 2009, 01:12:03 PM
The first code does not appear in index.template.php therefore how and where am I going to put after the first code?
the change to index.template.php must be applyed to the normal themes, not to iphone theme! so dont even try to do that! ^^
I did that to normal themes, not on the iPhone theme. The forum went down and had to restore load.php
Parse error: syntax error, unexpected ')' in /home/user/public_html/myforum.com/Sources/Load.php on line 1610
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on December 28, 2009, 08:37:30 PM
Fabius85 I sent you a PM with a link to some of my bug fixes and etc for your review.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 28, 2009, 09:11:50 PM
Quote from: Dismal Shadow on December 28, 2009, 06:17:22 PM
Quote from: Fabius85 on December 28, 2009, 05:53:18 PM
Quote from: Dismal Shadow on December 28, 2009, 01:12:03 PM
The first code does not appear in index.template.php therefore how and where am I going to put after the first code?
the change to index.template.php must be applyed to the normal themes, not to iphone theme! so dont even try to do that! ^^
I did that to normal themes, not on the iPhone theme. The forum went down and had to restore load.php
Parse error: syntax error, unexpected ')' in /home/user/public_html/myforum.com/Sources/Load.php on line 1610
you're right, i made a bracket error in the code, gonna fix it immediately
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 28, 2009, 09:18:26 PM
New release!
http://www.2shared.com/file/10309446/ecca7722/smf4iphone_20rc2.html

QuoteCHANGELOG
======================================
29/12/2009
¯¯¯¯¯¯¯¯¯¯
- 2.0 RC2
FIX: bracket error in Load.php mod
ADD: mod2.zip containing an
     alternative mod to load iPhone
     Theme via ?action=iphone
     credits go to butchs

about the mod...
before installing it:
1) you must first be sure to delete the changes done to the previous mod
2) you should be sure that your database parameters (login and password) are set in ADMIN PANEL > Server Settings > Database and Paths, even the ones needed to use SSI mode. if they're not set, then the stanard SMF4iPhone theme ID is used (4) and you will need to open your Load.php and set the right ID manually.

about the theme...
the only file changed is style.css, so just replace that if you already installed my previous release.

about mod2.zip...
this is an alternative mod to use instead of mod.zip (DO NOT INSTALL BOTH!) made by butchs. differences between mod.zip and mod2.zip are that the first one is just a porting of the original mod by farfromperfection to RC2, the second one is a little bit improved version, here it is what it does (written by butchs):
Quote1. Fixed the install path errors.  (IE:  <file name="$boarddir/index.php">)
2. Fixed a crash in Load.php (deleted extra closing bracket).
3. Added Mod Settings so you can adjust the theme number.
4.  Installed default mod setting to 4 in database.  I use 5.
5.  Deleted the index.template.php button.
6.  Added standard smf menu.
7.  Made the install SMF 2 RC2 specific.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on December 28, 2009, 09:24:29 PM
Thanks, downloading and installing. What about Curve Mobile Mod? It override SMF4iPhone.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on December 28, 2009, 11:15:32 PM
I made an error in mod2:

In the "install.xml"  file please change:
<file name="$languagedir/Modifications.english.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Begin iphone
$txt['iphone_title'] = 'iphone';
$txt['iphone_desc'] = 'Adjust SMF for iPhone settings';
$txt['id_theme'] = 'Enter the theme ID for iphone (usually 4 or 5):'
// End iphone
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Begin iphone
$txt['iphone_title'] = 'iphone';
$txt['iphone_desc'] = 'Adjust SMF for iPhone settings';
$txt['id_theme'] = 'Enter the theme ID for iphone (usually 4 or 5):'
// End iphone
]]></add>
</operation>
</file>


to:
<file name="$languagedir/Modifications.english.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Begin iphone
$txt['iphone_title'] = 'iphone';
$txt['iphone_desc'] = 'Adjust SMF for iPhone settings';
$txt['id_theme'] = 'Enter the theme ID for iphone (usually 4 or 5):';
// End iphone
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.english-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Begin iphone
$txt['iphone_title'] = 'iphone';
$txt['iphone_desc'] = 'Adjust SMF for iPhone settings';
$txt['id_theme'] = 'Enter the theme ID for iphone (usually 4 or 5):';
// End iphone
]]></add>
</operation>
</file>


Sorry I made a last second change and missed the bracket.  Sorry.
:(
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on December 28, 2009, 11:20:15 PM
Is that the bug on the iphone when I am in the homepage it's in iPhone theme then the next I click anything it goes to full version?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 29, 2009, 05:34:27 AM
New release! (yes, again! ;D)
http://www.2shared.com/file/10315629/5e1d8f53/smf4iphone_20rc2.html

QuoteCHANGELOG
======================================
29/12/2009 (again)
¯¯¯¯¯¯¯¯¯¯
- 2.0 RC2
FIX: bug in mod2.zip
ADD: Italian Language support for
     mod2.zip

I also added the description of mod2.zip to the readme.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on December 29, 2009, 10:33:33 AM
 ???
The mod2 works but I can only see the iPhone theme in the homepage only, when clicking anything like "login" "message" it takes me to normal site? How to make it a full theme?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on December 29, 2009, 11:43:31 AM
The Mod2 had an error as I described above.  Attached is the fix.  Could be redundant. Sorry I could not post it last night but my computer crashed.

As far as your question I do not know.  I do not have an iphone and only helped.  All I did was clean up some things.  If it does not load try changing the theme ID.

This is Fabius85's mod and he can edit mod2 however he desires.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on December 29, 2009, 11:52:57 AM
The mods does not work.
Have a test here: http://test.nathan-source.com/index.php?action=iphone
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on December 29, 2009, 03:11:51 PM
Quote from: butchs on December 29, 2009, 11:43:31 AM
The Mod2 had an error as I described above.  Attached is the fix.  Could be redundant. Sorry I could not post it last night but my computer crashed.

As far as your question I do not know.  I do not have an iphone and only helped.  All I did was clean up some things.  If it does not load try changing the theme ID.

This is Fabius85's mod and he can edit mod2 however he desires.
gonna attach it in next release
ps: use a user agent faker ;)

Quote from: Dismal Shadow on December 29, 2009, 11:52:57 AM
The mods does not work.
Have a test here: http://test.nathan-source.com/index.php?action=iphone
for me it's working
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on December 29, 2009, 03:27:47 PM
Quote from: Fabius85 on December 29, 2009, 03:11:51 PM
Quote from: butchs on December 29, 2009, 11:43:31 AM
The Mod2 had an error as I described above.  Attached is the fix.  Could be redundant. Sorry I could not post it last night but my computer crashed.

As far as your question I do not know.  I do not have an iphone and only helped.  All I did was clean up some things.  If it does not load try changing the theme ID.

This is Fabius85's mod and he can edit mod2 however he desires.
gonna attach it in next release
ps: use a user agent faker ;)

Quote from: Dismal Shadow on December 29, 2009, 11:52:57 AM
The mods does not work.
Have a test here: http://test.nathan-source.com/index.php?action=iphone
for me it's working
Did you click, "message", "login"?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on December 29, 2009, 03:41:52 PM
Quote from: Fabius85 on December 29, 2009, 03:11:51 PM
gonna attach it in next release

Yea, otherwise it give the white screen of death if the admin uploads another mod that creates mod settings that are defined in "Modifications.english.php".  Bad bad me...  :0

Quote from: Fabius85 on December 29, 2009, 03:11:51 PM
ps: use a user agent faker

Ooooooooo... :)  Now I have to find one.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on December 29, 2009, 05:47:37 PM
Quote from: Dismal Shadow on December 29, 2009, 03:27:47 PM
Quote from: Fabius85 on December 29, 2009, 03:11:51 PM
Quote from: butchs on December 29, 2009, 11:43:31 AM
The Mod2 had an error as I described above.  Attached is the fix.  Could be redundant. Sorry I could not post it last night but my computer crashed.

As far as your question I do not know.  I do not have an iphone and only helped.  All I did was clean up some things.  If it does not load try changing the theme ID.

This is Fabius85's mod and he can edit mod2 however he desires.
gonna attach it in next release
ps: use a user agent faker ;)

Quote from: Dismal Shadow on December 29, 2009, 11:52:57 AM
The mods does not work.
Have a test here: http://test.nathan-source.com/index.php?action=iphone
for me it's working
Did you click, "message", "login"?
sorry i didnt faked my u.a. from safari mobile.
well, did you tried both mod.zip and mod2.zip? none works?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on December 29, 2009, 06:02:13 PM
I get the same result with the fakers I tried.  But, If you change the latest "Mod 2.zip" code as shown below it seems to change the entire session on my computer when manually selected by the menu for guests and members alike?

In Subs.php change from:
'iPhone' => array(
'title' => 'iPhone',
'href' => $scripturl . '?action=iphone',
'show' => true,
'sub_buttons' => array(
),


to:
'iPhone' => array(
'title' => 'iPhone',
'href' => $scripturl . '?theme=' . $modSettings['id_theme'],
'show' => true,
'sub_buttons' => array(
),


I am not sure but I assume the "?action=theme" is for an actual iphone?

The back button does nothing with the above when the theme is manually selected but if you delete the cookie or log out the theme goes back to default.  Does that work?

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: fivex on December 29, 2009, 06:04:02 PM
I can't seem to make it work. I installed a older version(as I didn't t relise that there was a new version), which caused a load.php error. So I replaced load.php, which broke SMFShop. Anyways, it dissipeared from the mod list for some reason, and the switch to Iphone button was still there  ???
So I  installed a newer version. Even with me using a user agent switcher, it reverts from the new theme if I move from the index page.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on December 29, 2009, 06:16:31 PM
i'm gonna post it here, but obviously not including it in the mod. i have only 2 themes in my forum: the default one, and smf4iphone.
so i use this code in Load.php

elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== false) {
if((!empty($_GET['action'])) && ($_GET['action']=='noiphone')) {
setcookie("noiphone", "1");
setcookie ("iphone", "", time() - 3600);
    $id_theme = 6;
}
elseif((!empty($_GET['action'])) && ($_GET['action']=='iphone')) {
setcookie("iphone", "1");
setcookie ("noiphone", "", time() - 3600);
    $id_theme = 7;
}
else {
if ((isset($_COOKIE['noiphone'])))
$id_theme = 6;
else
$id_theme = 7;
}
  }
  elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') == false && strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') == false) {
if((!empty($_GET['action'])) && ($_GET['action']=='noiphone')) {
setcookie("noiphone", "1");
setcookie ("iphone", "", time() - 3600);
    $id_theme = 6;
}
elseif((!empty($_GET['action'])) && ($_GET['action']=='iphone')) {
setcookie("iphone", "1");
setcookie ("noiphone", "", time() - 3600);
    $id_theme = 7;
}
else {
if ((isset($_COOKIE['iphone'])))
$id_theme = 7;
else
$id_theme = 6;
}
  }

where 6 is my default theme id, and 7 is my smf4iphone theme id.

if you want to use it, in Load.php, search for:
// The theme was specified by parameter.
if (!empty($id_theme))
$id_theme = (int) $id_theme;

and copy that code after (obviously replacing smf4iphone mod code if you already installed it
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on December 29, 2009, 09:55:51 PM
Interesting, So you are doing it on a limited cookie session?

If you want to make it permanent and work with you may want to look at a javascript that will force the change no matter what.  Something like "simple_theme_changer_1-0-2"?  I am sure there are many other ways to skin a cat.   :o

The interesting part is where they search the theme list in the database:
Quoteforeach ($context['themes'] as $id => $theme)
                        echo '
                     <option value="', $id, '"', (($settings['theme_id'] == $id) ? ' selected="selected"' : ''), '>', $theme, '</option>';

Then they compare it against the theme in the list.  It will be cool if you can store them in the cookie and then use the script to force it.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 02, 2010, 01:01:48 PM
The attached is a stop gap hack until the mod author does his thing.  This has been on my site for a week and seems to work ok.  It includes the fix I mentioned on the 28th and 29th.

This is not an official mod so use with caution.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on January 02, 2010, 01:08:53 PM
Quote from: butchs on January 02, 2010, 01:01:48 PM
The attached is a stop gap hack until the mod author does his thing.  This has been on my site for a week and seems to work ok.  It includes the fix I mentioned on the 28th and 29th.

This is not an official mod so use with caution.

Thank you, will test on my demo site.

Update: Still not working.
http://test.nathan-source.com/index.php?action=iphone

This is a screenshot from my Chrome. Works on the iPhone too but the menu on the bottom is missing on the iPhone. Anyway after that I clicked anywhere "login" or topics it automatically takes me to full site.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 02, 2010, 03:32:42 PM
Did you delete your cache?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on January 02, 2010, 03:35:48 PM
Quote from: butchs on January 02, 2010, 03:32:42 PM
Did you delete your cache?
Yes, I did, both on Chrome and iPhone.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 02, 2010, 04:11:22 PM
What about your forum forum cache at admin/Forum Maintenance/Empty the file cache?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on January 02, 2010, 04:14:24 PM
Quote from: butchs on January 02, 2010, 04:11:22 PM
What about your forum forum cache at admin/Forum Maintenance/Empty the file cache?
Yes, still nothing.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 02, 2010, 05:07:02 PM
Could be your network cache.  The same mod seems to work here [nofollow] http://www.eastcoastrollingthunder.com/smf/index.php [nofollow]

If it works at my link for you it will work for you when your cache cleans out.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on January 02, 2010, 05:22:54 PM
Quote from: butchs on January 02, 2010, 05:07:02 PM
Could be your network cache.  The same mod seems to work here [nofollow] http://www.eastcoastrollingthunder.com/smf/index.php [nofollow]

If it works at my link for you it will work for you when your cache cleans out.
It's the same issue.
When I click your topic it goes to full site.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 02, 2010, 07:06:44 PM
It works with [nofollow] http://iphonetester.com/ [nofollow].  I found that if cookies are not fully enabled it will not work.

I did all I can.  I can not test it like you since I do not have a real iphone.  Sorry.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on January 04, 2010, 01:22:59 PM
I guess the 'action=iphone' option doesn't work as some of us expect it to work. It works for iphones, but not on other devices/browsers.
I would like to be able to use 'action=iphone' also on other devices. So the user can decide if he uses the iphone theme or not.

However, for me the best solution is still to modify load.php.
This autodetects iphone's, ipods and androids. (looks great on android!):
After:
// The theme was specified by parameter.
if (!empty($id_theme))
$id_theme = (int) $id_theme;


Add:

//IPHONE MOD
elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') || strpos($_SERVER['HTTP_USER_AGENT'], 'Android')) $id_theme = 8;


Remember to replace "$id_theme = 8" with the correct theme number.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Surfez Couvert on January 05, 2010, 06:32:46 AM
THIS MESSAGE HAS BEEN UPDATED
JANUARY 6 TH - 03H07 (GMT)
INCLUDED FILE YOO !
May I give  you my solution to have a stable 'SMS4iPhone' mod ?

I have read ALL the 15 pages of messages of this topic, and the same issue occurs for almost everyone :
either it's impossible to return to Default theme or to keep iPhone theme.

Well, I have slept only 4 hours last night to search a solution.
I don't say it's the best one, but this is the best for me :-) !

It only works with iPhone but you can modify install script it to suit to any mobile phone by changing browser agent.

Let me explain what I've done, it's very simple :

- If I'm surfing on a forum with my iPhone, it detects it and automatically use iPhone theme *WITHOUT* having to click on any 'IPHONE' button
- If I'm surfing on a forum with my desktop computer, then the theme displayed it the one recorded in my profile.

Simple and efficient !

I don't use cookie, and I don't modify all the 5 files like the orginal install.xml does. In fact, I just need the admin part where I can select the ID of the iPhone Theme.

Instead of the 'classic' button top left on the iPhone, I've replaced :
   
   $backlink = 'index.php?action=noiphone';
   (which don't really works each time)

   by :
   
   $backlink = "index.php?theme=' . $modSettings['id_theme']
   (to be SURE to ALWAYS stay on iPhone theme when I'm on iPhone).

   
INSTALLATION (archive including the 2 files at the bottom of this message) :

Install theme : SMF4iPhone_theme.zip

Install mod : SMF4iPhone_mod.zip

Select the ID of your iPhone theme (under phpMyAdmin : table smf_themes / id_theme corresponding to 'SMF4iPhone')

THEN, VERY IMPORTANT, SOME MANUAL MODIFICATIONS :

FOR *EACH* THEME INSTALLED (EXCEPT IPHONE THEME JUST INSTALLED OF COURSE), YOU MUST :

1 - OPEN FILE :

   Themes/<Name_of_the_theme>/index.template.php

2 - FIND :

   // Output any remaining HTML headers. (from mods, maybe?)
   echo $context['html_headers'];

   
3 - AFTER ADD :


    // START iPhone, iPod, Safari Mobile, Android detection
    echo '
    <script type="text/javascript">   
    if(navigator.userAgent.match(/iPhone/i) 
    || navigator.userAgent.match(/iPod/i)
    || navigator.userAgent.match(/Mobile Safari/i)
    || navigator.userAgent.match(/Android/i))
    { window.location = "index.php?theme=' . $modSettings['id_theme'] . '";}
    </script>';
    // END iPhone, iPod, Safari Mobile, Android detection


4 - VERY IMPORTANT IF YOU DON'T WANT PHP TO CRASH :
    a/ In Theme Management, select : 'Allow members to select their own themes.' (French/Français : Autoriser les membres à choisir leur propre thème)
    b/ Select the iPhone Theme.

    If you dont' do that, when surfing on iPhone, the forum will try forever to use the forbidden to use by force the iPhone theme, and the system will loop until crash.



   
And voilà ! See an exemple at my website : surfezcouvert.fr/smf/

Tip : for the logo, use images/logo.jpg included, because it's well centered to make you own logo.

I hope you will understand all my explanations, because I'm french and english is not my fluent language.

Fred

By the way :  I have made french translations - included - for theme and mod.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 05, 2010, 02:21:46 PM
Nice stuff.

The theme has an error?

I took the last two posts and combined them and added some minor changes:
1.  Edited load.php in an attempt to notice Android and Mobile Safari  ala "Mr. Jinx" with a twist.
2.  Moved the code into index.template.php and used it to load " Surfez Couvert's" script.
3.  Added an option to remove the iphone menu for all.

It seems to work on my simulators. Does it really work?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Surfez Couvert on January 05, 2010, 04:11:37 PM
Quote from: butchs on January 05, 2010, 02:21:46 PM
Nice stuff.

The theme has an error?

I took the last two posts and combined them and added some minor changes:
1.  Edited load.php in an attempt to notice Android and Mobile Safari  ala "Mr. Jinx" with a twist.
2.  Moved the code into index.template.php and used it to load " Surfez Couvert's" script.
3.  Added an option to remove the iphone menu for all.

It seems to work on my simulators. Does it really work?

Well, someting does not work : if we are NOT connected, the theme displayed is the default one, not iPhone theme.
I try something else ......
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 05, 2010, 04:18:29 PM
Quote from: Surfez Couvert on January 05, 2010, 06:32:46 AM
MInstead of the 'classic' button top left on the iPhone, I've replaced :
   
   $backlink = 'index.php?action=noiphone';
   (which don't really works each time)

   by :
   
   $backlink = "index.php?theme=' . $modSettings['id_theme']
   (to be SURE to ALWAYS stay on iPhone theme when I'm on iPhone).

Did you mean to type $backlink = '?theme=' . $modSettings['id_theme'] . ';'; ?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Surfez Couvert on January 05, 2010, 05:26:48 PM
Quote from: butchs on January 05, 2010, 04:18:29 PM
Quote from: Surfez Couvert on January 05, 2010, 06:32:46 AM
MInstead of the 'classic' button top left on the iPhone, I've replaced :
   
   $backlink = 'index.php?action=noiphone';
   (which don't really works each time)

   by :
   
   $backlink = "index.php?theme=' . $modSettings['id_theme']
   (to be SURE to ALWAYS stay on iPhone theme when I'm on iPhone).

Did you mean to type $backlink = '?theme=' . $modSettings['id_theme'] . ';'; ?


No no, it is not a mistake...
Well, I have tested the interesting things you've done, but I have too much problem (I mean : with REAL iPhone 3GS, maybe it works on emulator).
So, I have reinstalled my previous script (see above), which needs manual modifications, but works very well, i'm very happy (my cats too  ;) ).

However, I have developped the script to insert in each index.template.php to allow iPod (I forgot), Andropid and Safari Mobile to be detected :


1 - OPEN FILE :

Themes/<Name_of_the_theme>/index.template.php

2 - FIND :

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

3 - AFTER ADD :

// START iPhone, iPod, Safari Mobile, Adroid detect
echo '
<script type="text/javascript">
var agent = navigator.userAgent.toLowerCase();
var iphone = ((agent.indexOf(\'iphone\'))!=-1);
if (iphone) {window.location = "index.php?theme=' . $modSettings['id_theme'] . '";}
var iphone = ((agent.indexOf(\'ipod\'))!=-1);
if (iphone) {window.location = "index.php?theme=' . $modSettings['id_theme'] . '";}
var iphone = ((agent.indexOf(\'android\'))!=-1);
if (iphone) {window.location = "index.php?theme=' . $modSettings['id_theme'] . '";}
var iphone = ((agent.indexOf(\'safari mobile\'))!=-1);
if (iphone) {window.location = "index.php?theme=' . $modSettings['id_theme'] . '";}
</script>';
// END iPhone, iPod, Safari Mobile, Adroid detect

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 05, 2010, 06:29:24 PM
Interesting...  I did not think it was going to work without forcing lower case.  Your script works so I put your script back into the mod with all the new stuff.  Does the attached work?

I noticed in the iphone theme this <body', !$_GET ? ' onload="setDefaults();"' : '', '>.  As far as I know the cookie it is looking at is not used anymore.  Can this be changed to <body> to make things cleaner and work?

Quote from: Surfez Couvert on January 05, 2010, 06:32:46 AMNo no, it is not a mistake...

The theme you uploaded a few posts ago crashed.  php error.  Must have been an older version.  Could you upload the version that works on your site along with the body change: if it works?

I hope the cats do not mind?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Surfez Couvert on January 05, 2010, 09:23:58 PM
Quote from: butchs
Interesting...  I did not think it was going to work without forcing lower case.  Your script works so I put your script back into the mod with all the new stuff.

The theme you uploaded a few posts ago crashed.  php error.  Must have been an older version.  Could you upload the version that works on your site along with the body change: if it works?

Well everything's okay now, I have updated my first message : http://www.simplemachines.org/community/index.php?topic=298258.msg2438737#msg2438737 (http://www.simplemachines.org/community/index.php?topic=298258.msg2438737#msg2438737)
With updated files too.
And updated 'user  manual'.
Don't forget the '4' :

4 - VERY IMPORTANT IF YOU DON'T WANT PHP TO CRASH :
   a/ In Theme Management, select : 'Allow members to select their own themes.' (French/Français : Autoriser les membres à choisir leur propre thème)
   b/ Select the iPhone Theme.

    If you dont' do that, when surfing on iPhone, the forum will try forever to use by force the forbidden to use the iPhone theme, and the system will loop until crash.




Oh .... There is one last problem : because users can choose iPhone theme from their profile, if they do that with a computer desktop, they won't be able to go back to classic theme, so it would be nice to create for example a new link somewhere like this : "index.php?theme=1" , but not the way it was on the first version of the mod. I will think about it....


CORRECTION JANUARY 6 TH 11:12 (GMT) :

Small correction in the iPhone Theme, just for french translation, to avoid line breaking :
languages/iPhone.language.french-utf8.php

REPLACE :
$txt['iQuoting'] = 'Citation';
$txt['iOn'] = 'Activée';
$txt['iOff'] = 'Désactivée';

WITH:
$txt['iQuoting'] = 'Citer :';
$txt['iOn'] = 'Actif';
$txt['iOff'] = 'Inactif';
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 05, 2010, 09:29:48 PM
Guess I will have to wait for the stable and functionally one... :-\
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Surfez Couvert on January 05, 2010, 09:44:43 PM
Quote from: Dismal Shadow on January 05, 2010, 09:29:48 PM
Guess I will have to wait for the stable and functionally one... :-\

The version I've made with the help of other works very well, and is more stable than the orgiginal.
I use it for my professionnal website, you don't have to worry.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 05, 2010, 10:08:05 PM
Just installed everything and I will test it shortly. Results will be posted here!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 05, 2010, 10:23:30 PM
Quote from: Surfez Couvert on January 05, 2010, 09:44:43 PM
Quote from: Dismal Shadow on January 05, 2010, 09:29:48 PM
Guess I will have to wait for the stable and functionally one... :-\

The version I've made with the help of other works very well, and is more stable than the orgiginal.
I use it for my professionnal website, you don't have to worry.

I had to install the mod & theme, make the "index.template.php" edits (actually I kept my last mod) and change the name of the theme from "SMF4iPhone_theme" to "theme" in my server to make it functional.

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 05, 2010, 11:51:33 PM
Well the mod finally work perfect, but the Curve mobile mod override SMF4iPhone.
2. Disable the simpleportal or other portal as it messed with the iPhone theme.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on January 06, 2010, 08:01:45 AM
I will make a stable version. I wil post it soon.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: LC on January 06, 2010, 05:49:03 PM
Personally, I think that if the mod is not submitted to SMF for approval and is available though the mod page, don't upload it.

Just saying.

I am sure some of the people here have good intentions, but this is the internet after all.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on January 06, 2010, 06:23:32 PM
We don't submit to SMF as we are not the original creators.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: LC on January 06, 2010, 06:32:09 PM
Quote from: Calumks on January 06, 2010, 06:23:32 PM
We don't submit to SMF as we are not the original creators.
Understandable. I know you want to improve on it.

I wonder if there is a way to "officially" update the theme for SMF to approve.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on January 06, 2010, 07:49:45 PM
Quote from: LC on January 06, 2010, 06:32:09 PM
Quote from: Calumks on January 06, 2010, 06:23:32 PM
We don't submit to SMF as we are not the original creators.
Understandable. I know you want to improve on it.

I wonder if there is a way to "officially" update the theme for SMF to approve.
creating a different theme with the improved code by me and other contributors, giving it another (maybe similar) name and hoping the original author will not complain

ps: when a full and completely stable version of the mod is released i could do that.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 06, 2010, 11:12:12 PM
Quote from: Dismal Shadow on January 05, 2010, 11:51:33 PM
Well the mod finally work perfect, but the Curve mobile mod override SMF4iPhone.

That is because Curve Mobile uses the load.php file and we check at index.template.php.  Thins is doe because copying the code is a no no and the people who worked on this mod found a proven script method.

If you edit the "curve-mobile-mod" it will not over-ride this mod. You can edit it as follows.  In Load.php change:
$user_agents = array(
array('iPhone', 'iphone'),
array('iPod', 'ipod'),
array('PocketIE', 'iemobile'),
array('Opera Mini', isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])),
array('Opera Mobile', 'Opera Mobi'),
array('Android', 'android'),
array('Symbian', 'symbian'),
array('Symbian S60', 'series60'),
array('Symbian S70', 'series70'),
array('Symbian S80', 'series80'),
array('Symbian S90', 'series90'),
array('BlackBerry', 'blackberry'),
array('BlackBerry Storm', 'blackberry05'),
array('Palm', 'palm'),
array('Web OS', 'webos'),
);

to:
$user_agents = array(
array('PocketIE', 'iemobile'),
array('Opera Mini', isset($_SERVER['HTTP_X_OPERAMINI_PHONE_UA'])),
array('Opera Mobile', 'Opera Mobi'),
array('Symbian', 'symbian'),
array('Symbian S60', 'series60'),
array('Symbian S70', 'series70'),
array('Symbian S80', 'series80'),
array('Symbian S90', 'series90'),
array('BlackBerry', 'blackberry'),
array('BlackBerry Storm', 'blackberry05'),
array('Palm', 'palm'),
array('Web OS', 'webos'),
);


:)

I do not think someone is going to make a mod for both themes.  ???
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 09, 2010, 09:24:07 AM
I have a few more days left to do some hacking so I gave this another shot.

This time I accessed the Movila Free Device detection (http://www.moviladetection.com/) 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.  Not only will it check just the user agent but it will check domain names that are used for mobile devices.  The web site clams it is more reliable and it is free!!!  :) ???

Install the latest "SMF4iphone" theme before you install this mod.

During installation the attached mod assumes that the "SMF4iphone" theme is installed before it is installed.  The mod searches for the theme and attempts to get the correct theme id and tries to put the correct theme id in the mod settings.

The problem is that I do not have a method to test this mod and see if it works.

It loads cleanly on my test server and seems to work.  But I can only test it for false.

Is there anyone who is interested in testing it?  If it works for one mobile device I am sure it will work for all others.  I hope.   :P
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 09, 2010, 09:29:39 AM
Will test it for you on my test site...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 09, 2010, 10:00:46 AM
Thank you.  :)  :)  :)  I just added a version 2.6 above.  I moved the theme change code form index.template.php to load.php.  This will allow the theme to load faster.  It seems to be a better way.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 09, 2010, 10:06:55 AM
Everything seems to be functional for me!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 09, 2010, 04:26:15 PM
Mod 2.5 works for me but 2.6 didn't, don't know why. BTW the Classic button goes in a loop with the same iPhone theme. I see this when clicking the classic button.

index.php?theme=


Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 09, 2010, 06:50:01 PM
Quote from: Dismal Shadow on January 09, 2010, 04:26:15 PM
index.php?theme=

I believe that is in part to an error in the theme and in part the mod.

In "Surfez Couvert" excellent theme revision.
if you take...
Quoteif (((!empty($_GET['action'])) && ($_GET['action']=='iphone')) || !$_GET){
   $backlink = 'index.php?theme=' . $modSettings['id_theme'];
   $backname = $txt['iClassic'];

and replace it with...
Quoteif (((!empty($_GET['action'])) && ($_GET['action']=='iphone')) || !$_GET){
   $backlink = 'index.php?theme=1;';
   $backname = $txt['iClassic'];

Replace the "1" with your actual default theme ID.

In the mod.
I added a session so that the the iphone theme will only be loaded once while your browser is running.  The session variable is temporary and will be reset when you quit the browser.  See attached version 2.5.1.   Please test it.

Does it work with the theme changes?

I will like to note to anyone else who wishes to edit this.  If you run the following in php the session will be destroyed:
unset($_SESSION['smf4iphone']);

Furthermore this mod looks at all mobile devices so if you have another mod installed this will end up being your default.  I believe this is the most accurate mobile detection to date.  I am sure someone else will do better later.

Finally, the mod settings can be changed so this mod can be used with other themes by simply changing the theme ID.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 10, 2010, 09:28:21 AM
If that works I will add a default theme id to the mod settings that can be used in the theme.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 10, 2010, 12:20:27 PM
It works, but instead of you putting what default theme it will be, let us choose which should be default like the one in the iPhone setting "Enter the theme ID for default (usually 1 or 2):"

And BTW I did this:
Quote from: butchs on January 09, 2010, 06:50:01 PM..
Quoteif (((!empty($_GET['action'])) && ($_GET['action']=='iphone')) || !$_GET){
   $backlink = 'index.php?theme=' . $modSettings['id_theme'];
   $backname = $txt['iClassic'];

and replace it with...
Quoteif (((!empty($_GET['action'])) && ($_GET['action']=='iphone')) || !$_GET){
   $backlink = 'index.php?theme=1' .$modSettings['id_theme'];
   $backname = $txt['iClassic'];

Replace the "1" with your actual default theme ID.


Notice I didn't remove the
.$modSettings['id_theme'];
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 10, 2010, 02:30:32 PM
The picture says: No access?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 10, 2010, 02:31:38 PM
Ok, I knew what you wanted and have been on top of it all along.  I am reaching my limit of my expertise with this one.  Probably drove right by the bus stop.   :o  But here is what I tried to do with the attached:
1.  Added a default theme ID into the mod.  This is where the mod transfers to when you hit classic.
2.  Adjusted the iphonetheme to go to the default ID based on modsettings.
3.  Added 2 other filtered themes to the mod.
4.  Added a failsafe theme to the mod.  This where the mobile device goes when no other devices are filtered.  It can be changed to any other theme or smf built in mobile theme theme.

Read the notes at the bottom of the mod settings CAREFULLY.  One error and it will not work!!!!

Hopefully this does the trick, my brain is burnt?   O:)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 10, 2010, 02:33:36 PM
Quote from: Dismal Shadow on January 10, 2010, 02:30:32 PM
The picture says: No access?

I was trying to fix the theme and it did not work so I deleted the post.  The post is back above this post.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 10, 2010, 08:03:49 PM
I just installed the mod  on my server.  [nofollow] www.eastcoastrollingthunder.com/smf/index.php [nofollow]

It seems to work well for me with no crashes.  But I can not test it with a mobile device.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 11, 2010, 02:54:27 AM
@butchs...one problem. Modifications.english.php need to be fixed.

http://www.simplemachines.org/community/index.php?topic=358949.msg2448606#msg2448606
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 11, 2010, 10:51:55 AM
Sorry.  Please uninstall that old MOD asap.  I assumed you were going to replace that version with the new version.  That bug was fixed yesterday in version 2.7.1:

http://www.simplemachines.org/community/index.php?topic=298258.msg2447703#msg2447703


The new version includes a filter that will read a user agent and pick one of three themes.  If a user agent is not found all mobile devices (thanks to detectfree) will go to the failsafe theme WAP2 or a theme you specify.

The selection boxes are text boxes.  So you not put spaces in the theme ID box.  Plus if you have some selective mobile themes installed  before you install the mod it will try to pick the theme ID and select some user agents for the theme.  The user agents I selected may or may not go with that theme.
???

I checked this one the best I can and  moved it out of the test forum.  I think it is stable???
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on January 11, 2010, 11:48:13 AM
Hi

I'm getting errors such as the following when accessing topics


8: Undefined variable: category

File: /xxxxx/forum/Themes/theme/MessageIndex.template.php (main sub template - eval?)
Line: 38


Appears to be related to this piece of code in the themes boardindex.template.php

foreach ($board['children'] as $child)
{

$children=true;

echo '
<li class="child', (!$child['new']&&$context['user']['is_logged']) ? ' off' : '', '">
<a href="', $child['href'], '"', $i==count($category['boards']) ? ' class="last"' : '' ,'>', $child['name'],'
<div class="description">', $txt['last_post'], ' ', $child['last_post']['time']=='N/A' ? $txt['no'] . ' ' . $txt['topics'] : iPhoneTime($child['last_post']['timestamp']) . ' ' . $txt['by'] . ' ' . $child['last_post']['member']['name'],
'</div></a>
</li>
';


Does anyone have any idea what might resolve this.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 11, 2010, 12:11:26 PM
Weird it didn't work.

EDIT: Weird it works on my test site. Maybe something wrong I did.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 11, 2010, 02:52:19 PM
The code is the same as 2.5.2 but I added a filter that if there was not match it will fall through to the failsafe.  Remember we added a session so that it will only do it once.

I went back to my test server and tried to force it and it did not work until I removed the PHPESSID cookie from my website.  Once the cookie was removed it worked on my server.  So please try to remove the cookie named PHPESSID from your test site.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 12, 2010, 04:30:05 PM
Doesn't work either on my site and test site IF you login. Works fine without login. If you login...it will go to full version.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 13, 2010, 01:16:39 PM
That does not sound like a mod issue.  That sounds like a theme issue.

When you log in the login script transfers you to your default theme as identified by the user in the database.  It is nearly impossible for me guess who is online and assign them their theme id.

Now, if you log in and delete your PHPESSID cookie the mod should transfer you to the mobile theme.

You can start with he load.php file???
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 13, 2010, 02:59:43 PM
Try searching the "index.template.php" of the SMF4iphone theme for:
if((!empty($_GET['action'])) && (($_GET['action']=='login') || ($_GET['action']=='register')))
$loginregister=' style="display:none;"';


and replace it with:
if((!empty($_GET['action'])) && (($_GET['action']=='login') || ($_GET['action']=='register'))) {
$loginregister=' style="display:none;"';
unset($_SESSION['smf4iphone']); }


The above will reset the SMF4iphone session during login and let the mod find the correct theme.

I am sure someone else knows a better way.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 14, 2010, 08:12:54 PM
No news is good news. I believe i am done here and Fabius85 can take over.

I can co-author for the mod.  But, I can not support it 100%

I did little on the theme.  Surfez did more work there.

Both of them may be good enough to send to SMF for approval?

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.  Not only will it check just the user agent but it will check domain names that are used for mobile devices.  The web site clams it is more reliable and it is free!!

The mod includes a filter that will read a user agent and pick one of three themes.  If a user agent is not found all mobile devices (thanks to detectfree) will go to the failsafe 4th theme WAP2 or a theme you specify.  See the attached picture.

If you have the "iphone", "curve_mobile" and "mobile_theme"'s installed before you load the mod.  The mod will detect them and assign them as follows:

Theme # 1:      smf4iphone
with user agents for "iphone|ipod|android|mobile|Safari Mobile"

Theme # 2:      curve_mobile
with user agents for "iemobile|Opera Mobi|symbian|series60|series70|series80|series90|series 60|series 70|series 80|series 90|blackberry|blackberry05|palm|webos"

Theme # 3:      mobile_theme
with user agents for "ipnokia|motorola|samsung|fennec|minimo|sonyericsson|htc"

failsafe theme:  WAP2
all remaining user agents

If any of the above themes are missing the mod will leave the theme ID blank.  If either row is blank the theme will be skipped.  Please note that the user agents selected are merely a guess and should be adjusted for the theme best fit.

The selection boxes are text boxes so be careful.

Quote from: Surfez Couvert on January 05, 2010, 06:32:46 AM
4 - VERY IMPORTANT IF YOU DON'T WANT PHP TO CRASH :
    a/ In Theme Management, select : 'Allow members to select their own themes.' (French/Français : Autoriser les membres à choisir leur propre thème)
    b/ Select the iPhone Theme.

    If you dont' do that, when surfing on iPhone, the forum will try forever to use the forbidden to use by force the iPhone theme, and the system will loop until crash.

Changes:
Theme
1.  Tried to fix category error.
2.  Fixed login theme transfer error.
3.  Fixed Classic transfer error.
4.  Some minor bugs.

Mod
1. Fixed some minor eval bugs.

Jan 15, 09 - theme was edited - Added "doughboy99"'s suggestion for theme version.

yay...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 14, 2010, 10:50:23 PM
Perfect, seem to work this time.
I have few problems:

1)After I click "classic" how do I get back to iPhone mode(theme)? Of course, clear cookie and cache. iPhone button should be there just in case.

2)Looking for a walkaround for portal (mine us SimplePortal) since it messed up with the iPhone theme unless it's disabled.

Requests, would like to see more features of what this mod can do.

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on January 15, 2010, 05:10:30 AM
amend the themes index.template.php to disable portals when it loads(this is how it is done in the excellent curve-mobile theme). This won;t work for EZportal which doesn't have the option to disable as far as I know.

Change
function template_init()
{
global $context, $settings, $options, $txt;

$settings['theme_version'] = '1.0';
}


To

function template_init()
{
global $context, $settings, $options, $txt;

$settings['theme_version'] = '1.0';

// Portal disabling mafia
// SimplePortal
$settings['disable_sp'] = true;

// TinyPortal
if (function_exists('tp_hidebars'))
tp_hidebars();

// PortaMX
$_SESSION['pmx_paneloff'] = array('head', 'top', 'left', 'right', 'bottom', 'foot', 'front', 'pages' => 'Pages');
}

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 15, 2010, 05:48:41 AM
Doesn't work for me as I am on 2.0 RC2.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on January 15, 2010, 05:53:30 AM
Don't think RC2 is an issue. I am using this code in my RC forums with a couple of theme I dont want SimplePortal to appear on.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 15, 2010, 06:10:06 AM
Quote from: doughboy99 on January 15, 2010, 05:53:30 AM
Don't think RC2 is an issue. I am using this code in my RC forums with a couple of theme I dont want SimplePortal to appear on.
If it works for you then it should work as this is the only way to bypass the portals. Hopeful someone can upgrade your code for 2.0 RC2.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on January 15, 2010, 06:14:00 AM
Sorry I miss typed there. I AM using SMF2 RC2 and this code works for me.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 15, 2010, 06:23:12 AM
Obviously it doesn't work as I have tried. It still shows portal.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on January 15, 2010, 06:45:19 AM
Are you changing the SMF4iphone index.template.php? If you change the one for the default theme then you will disable portals for that theme.

$settings['theme_version'] = ... was never changed in the SMF4iPhone theme index.template.php when it was wriiten for SMF 2
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 15, 2010, 06:51:56 AM
Yeah, just figured it out. My bad. It works now. Thanks. It should be added to the mod. Good job.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 15, 2010, 09:31:39 AM
I modified the theme as per doughboys suggestion.  See above.

Quote from: Dismal Shadow on January 14, 2010, 10:50:23 PM
Perfect, seem to work this time.
I have few problems:

1)After I click "classic" how do I get back to iPhone mode(theme)? Of course, clear cookie and cache. iPhone button should be there just in case.

type www.yoursite.com/smf/index.php?theme=#,
Where # is your theme ID.

Or you can modify your default theme with a selection at the bottom next to WAP2. Something like:
<a href="'http://www.yoursite.com/smf/index.php?theme=' . $modSettings['id_theme1']; >use the default theme</a>

Assuming iphone is the 1st theme in the list.

Quote from: Dismal Shadow on January 14, 2010, 10:50:23 PM
Requests, would like to see more features of what this mod can do.

The mod can transfer to curve mobile or any other theme based on the phrases entered in the modification settings. I suggest you copy the built in phrases.  Save them to a safe place and give it a try.  If everything works right you should be able to send someone to any theme based on the phrases.  Adding a new UA is as simple as typing in a new phraise.  Please note that SMF does have a default transfer to WAP2 in load.php.  Since this is first it will override the mod at times.

If either the theme ID or the phrase is blank that theme will be skipped.

I envision code statements with cut and paste theme phrases or User Agents for themes that are specially designed for a particular device.

Other than that, guys like you will need to test it.  I do not have a mobile device.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 15, 2010, 08:03:22 PM
Oh I reread "Dismal Shadow"'s question.  I am not sure what to do with the "iPhone button".  It can be an optional menu but then what do you do about the other 2 themes?  Do you make it for admin only or for all members.  Should it be a button or should it be a link at the bottom.  Some like it, some do not, that is why I suggested a manual link addition to the default theme.
:o
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on January 15, 2010, 08:11:14 PM
Quote from: butchs on January 15, 2010, 08:03:22 PM
Oh I reread "Dismal Shadow"'s question.  I am not sure what to do with the "iPhone button".  It can be an optional menu but then what do you do about the other 2 themes?  Do you make it for admin only or for all members.  Should it be a button or should it be a link at the bottom.  Some like it, some do not, that is why I suggested a manual link addition to the default theme.
:o
Of course it should be optional and can either be enable or disabled from the Modification Settings because I am not the only one who will be using this feature alone some of my user have iPhone so there should be a botton intead of telling my user to do index.php?theme=
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: butchs on January 15, 2010, 08:22:41 PM
Quote from: Dismal Shadow on January 15, 2010, 08:11:14 PM
Of course it should be optional and can either be enable or disabled from the Modification Settings because I am not the only one who will be using this feature alone some of my user have iPhone so there should be a botton intead of telling my user to do index.php?theme=

What about the other themes.  The mod can transfer up to 4 themes. Or should we not care and just do the 1st (iphone)?

See now things are getting complicated.  I hate to pollute the menu bar.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 15, 2010, 08:29:18 PM
Quote from: butchs on January 15, 2010, 08:22:41 PM
Quote from: Dismal Shadow on January 15, 2010, 08:11:14 PM
Of course it should be optional and can either be enable or disabled from the Modification Settings because I am not the only one who will be using this feature alone some of my user have iPhone so there should be a botton intead of telling my user to do index.php?theme=

What about the other themes.  The mod can transfer up to 4 themes. Or should we not care and just do the 1st (iphone)?

See now things are getting complicated.  I hate to pollute the menu bar.
LOL, I misread some of your post and yeah I think it would be nice to have link at the bottom next to WAP2 but then again it can be modify in the WAP2 so it can transfer to another theme like you said?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on January 16, 2010, 05:36:41 PM
version 2.7.2 (I havent checked any earlier) ones is breaking SSI functionality

For instance trying to load ssi_examples.php will result in the following error

Fatal error: Call to undefined function getmobileproperties() in /xxxxx/public_html/sisac/forumback/Sources/Load.php on line 1287

any call to an SSI function seems to result in this error.

Uninstalling the mod removes the error.
Any ideas how to fix this?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Charles52 on January 16, 2010, 06:00:55 PM
That's really cool, never knew SMF could look like this.  I bet the iPhone geeks will just love this.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 16, 2010, 09:51:05 PM
Quote from: doughboy99 on January 16, 2010, 05:36:41 PM
version 2.7.2 (I havent checked any earlier) ones is breaking SSI functionality

For instance trying to load ssi_examples.php will result in the following error

Fatal error: Call to undefined function getmobileproperties() in /xxxxx/public_html/sisac/forumback/Sources/Load.php on line 1287

any call to an SSI function seems to result in this error.

Uninstalling the mod removes the error.
Any ideas how to fix this?

The function is loaded in index.php.  I can not duplicate your errors.  Tell me step by step what you did to get the error?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on January 17, 2010, 08:44:47 AM
|I'm using SMF 2 RC2 with the following mods installed

1.     SMF for iPhone      1.0      
2.    SMF Gallery Pro    2.5.6
3.    SimplePortal    2.3.1
5.    Downloads System    1.2.7
8.    The SMF File Management Tool    1.0.1
9.    Sarcasmics smiley set    1.1.0.1
10.    No Reply Emails    1.3
11.    SMF Gallery Pro    2.5.7.2

If the SM4iPhone mod is installed the error occurs. Uninstall the mod and the error goes away.

To see the error I simply load the ssi_examples.php in the browsers address field.
I cant see anything in load.php that might conflict but I have attached the file in case you can.


Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 17, 2010, 11:27:33 AM
I think it is a problem with simple portal.  May be an issue with other portals so I moved the require once command.  Try the attached and let me know if it solves the problem.

If it has issues try removing require_once($sourcedir . '/DetectFree.php'); from index.php
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on January 17, 2010, 11:50:24 AM
Well that seems to have fixed it. Thankyou.

Now just have to work out a way to circumvent the code in index.php that looks for text in the phones HTTP_ACCEPT string asking to be redirected to the wap version of SMF.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 17, 2010, 01:03:29 PM
All I did was to move the require_once to just before "// Load the $modSettings array".  That will go into the version submitted to SMF.

I was hoping not to mess with index.php but since you insist...

Try to change "index.php" from:
elseif (!isset($_SESSION['nowap']))
{
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
$_REQUEST['wap2'] = 1;
elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
$_REQUEST['imode'] = 1;
else
$_REQUEST['wap'] = 1;
}
}


to:
elseif (!isset($_SESSION['nowap']))
{
if (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'application/vnd.wap.xhtml+xml') !== false)
// $_REQUEST['wap2'] = 1
;
elseif (isset($_SERVER['HTTP_ACCEPT']) && strpos($_SERVER['HTTP_ACCEPT'], 'text/vnd.wap.wml') !== false)
{
if (strpos($_SERVER['HTTP_USER_AGENT'], 'DoCoMo/') !== false || strpos($_SERVER['HTTP_USER_AGENT'], 'portalmmm/') !== false)
// $_REQUEST['imode'] = 1
;
else
// $_REQUEST['wap'] = 1
;
}
}


That is my guess...  ???
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 17, 2010, 09:36:45 PM
That should do it.  I gave the mod to Fabius for submittal to SMF with the above changes and a bunch of cleaning up.  The core is still the same.  I finally got to write a mod without having to support it.  I think...  Like Having your cookie and eating it too!   8)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Enders on January 18, 2010, 03:42:52 AM
Portamx seems to inflict with its css and it doesn't show very well. Also with ultimate profile mod...

Also, there's an error

Fatal error:  Call to undefined function  getmobileproperties() in /home/alph4bet/public_html/sheeptag.net/Sources/Load.php on line 1474

btw, is there a way to disable members from selecting this? If i remove it from selection... it won't work anymore =o
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 18, 2010, 05:13:39 AM
Do not know about the theme but Mobil themes should not have mods added to them.  They are minimized.

See post 347 above for the error.  You will need to move the "require_once" from index.php to the beginning of  load.php as explained above.  I just updated  beta Version 2.7.3 that has that fix (http://www.simplemachines.org/community/index.php?topic=298258.msg2455249#msg2455249).

The release version will have that and more.

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Enders on January 18, 2010, 12:22:26 PM
I have no mod edits for the iphone theme.... the thing that I think that's conflicting the css issue is portamx.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 18, 2010, 02:03:45 PM
I cant help you there.  I suggest you ask portamx why they are conflicting with a themes.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: shed on January 20, 2010, 07:35:53 PM
i also get

Fatal error: Call to undefined function getMobileProperties() in /home/micsusel/public_html/Sources/Load.php on line 1287

i cant locate the line -  require_once($sourcedir . '/DetectFree.php'); as suggested in the previous reply, what am i doing wrong??

thanks
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Snape on January 21, 2010, 12:08:09 PM
Quote from: shed on January 20, 2010, 07:35:53 PM
i also get

Fatal error: Call to undefined function getMobileProperties() in /home/micsusel/public_html/Sources/Load.php on line 1287

i cant locate the line -  require_once($sourcedir . '/DetectFree.php'); as suggested in the previous reply, what am i doing wrong??

thanks
At least for me, that modification in the xml file was skipped/corrupted.  To fix, search Load.php for a list of 6 other require_once entries (Security.php should be the last one)- and add the require_once line you listed to the end of that list.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: CFCParadox on January 21, 2010, 05:29:32 PM
Quote from: shed on January 20, 2010, 07:35:53 PM
i also get

Fatal error: Call to undefined function getMobileProperties() in /home/micsusel/public_html/Sources/Load.php on line 1287

i cant locate the line -  require_once($sourcedir . '/DetectFree.php'); as suggested in the previous reply, what am i doing wrong??

thanks

This happened to me too
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: shed on January 21, 2010, 07:07:23 PM
it works!! heres what i did.

Fresh install of 2.0 RC2. Uploaded the package. This gave me the error. I uploaded the load.php which still didnt make any difference.

Today, ive started again and done the exact same as yesterday. i was going to try what Snape suggested (thanks very much) but instead, i deleted a .htaccess file which was hidden in the root directory... and it worked straight away :)

im no code expert or anything but id check for any hidden files and see if you have a .htaccess file. can anyone confirm whether this would make a difference or not, or is it just coincidence??

thanks
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 21, 2010, 07:31:49 PM
I can't delete my .htaccess file. I have blocked many IPs with it and it also converts all html files into PHP ones automatically.

There has to be another solution to the load.php error.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: butchs on January 21, 2010, 09:37:18 PM
Did you try beta 2.73? (http://www.simplemachines.org/community/index.php?topic=298258.msg2455249#msg2455249)

I believe the load.php error was fixed.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 23, 2010, 09:51:35 PM
Quote from: butchs on January 21, 2010, 09:37:18 PM
Did you try beta 2.73? (http://www.simplemachines.org/community/index.php?topic=298258.msg2455249#msg2455249)

I believe the load.php error was fixed.

Still has the load.php error.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 23, 2010, 10:20:02 PM
I assume you deleted your forum cache after install?  "admin/Forum Maintenance/Empty the file cache"

If so Please attach a copy of your Load.php (from the sources folder) and index.php (from the SMF folder).  Maybe we can get lucky.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 24, 2010, 08:52:57 AM
Uggh....


Fatal error: Call to undefined function getmobileproperties() in /home/combatc1/public_html/forums/Sources/Load.php on line 1381

And I can't access my Admin panel and I don't want to manually edit it.... there were no errors in the installation yet I still get this error...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on January 24, 2010, 09:37:14 AM
Hmm, I'm still hoping for this version of the iphone theme to be released some time: http://mattcworld.com/?p=159
It doesn't use a template, but works like the wap/wap2 pages in SMF which should make it much easier to switch between looks.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 24, 2010, 10:41:26 AM
Quote from: CFCParadox on January 24, 2010, 08:52:57 AM
Uggh....


Fatal error: Call to undefined function getmobileproperties() in /home/combatc1/public_html/forums/Sources/Load.php on line 1381

And I can't access my Admin panel and I don't want to manually edit it.... there were no errors in the installation yet I still get this error...

I see this error at your web site.

Notice: SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! in /home/combatc1/public_html/forums/SSI.php on line 169


You can manually empty the "smf/cache" folder on your forum by deleting all contents except for index.php.

If that still gives an error change Load.php to Load.php~~ and make Load.php~ Load.php.  But I think it is the cache.

Please try the next on on your test server.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on January 24, 2010, 12:53:01 PM
Quote from: butchs on January 24, 2010, 10:41:26 AM
You can manually empty the "smf/cache" folder on your forum by deleting all contents except for index.php.
I think clearing SMF's cache won't help, because it will only cache language files.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 24, 2010, 02:32:03 PM
If so, I really can not help if i do not see the files as requested in Reply #362.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 24, 2010, 05:27:52 PM
That error is on the front page and not on the forums....

I can't use this MOD with the error I am getting. Too many people would get mad.

Hopefully a stable version will be released soon :)

Good Luck Butch
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 24, 2010, 06:07:52 PM
Quote from: CFCParadox on January 24, 2010, 05:27:52 PM
That error is on the front page and not on the forums....

I can't use this MOD with the error I am getting. Too many people would get mad.

Hopefully a stable version will be released soon :)

Good Luck Butch
Try using Surfez Couvert's method.
http://www.simplemachines.org/community/index.php?topic=298258.msg2438737#msg2438737

Works fine so far.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 24, 2010, 06:55:57 PM
I deleted all the "require_once " calls form the final version.  That should solve it.  I worked without and with some portals and not with others so I think it was how the portal was done.  I just sent it over to fab and deleted my last upload.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 24, 2010, 07:08:46 PM
Where should I download it?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 24, 2010, 07:49:28 PM
Since you insist.  See attached.  (EDIT:  FILE WAS REMOVED DUE TO PENDING SUBMITTAL)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on January 24, 2010, 08:08:03 PM
the package (theme+mod) is ready to be sent to smf. so as bucths approves it i'm gonna do it :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 24, 2010, 08:36:38 PM
I dunno much about the theme but the mod needs a "readme.txt" file for the installation part.

The rest is all you boss!   8)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Gravy on January 25, 2010, 05:04:46 PM
So I take it we're anxiously waiting to hear back from SMF at this point?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Pellets on January 26, 2010, 08:15:19 AM
Quote from: butchs on January 21, 2010, 09:37:18 PM
Did you try beta 2.73? (http://www.simplemachines.org/community/index.php?topic=298258.msg2455249#msg2455249)

I believe the load.php error was fixed.

Where do I download beta 2.73? I don't find anything in that link.  :-[
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on January 26, 2010, 08:29:34 AM
Quote from: Pellets on January 26, 2010, 08:15:19 AM
Quote from: butchs on January 21, 2010, 09:37:18 PM
Did you try beta 2.73? (http://www.simplemachines.org/community/index.php?topic=298258.msg2455249#msg2455249)

I believe the load.php error was fixed.

Where do I download beta 2.73? I don't find anything in that link.  :-[
It's been pulled and submitted for approval.   
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on January 26, 2010, 11:59:48 AM
Yep, just submitted both theme and mod for approval. I hope they will be soon officially ready for download :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: shed on January 28, 2010, 01:01:30 AM
theme is great for iphone but i also get it on a PC, only way to go back to standard template is to log in and click the 'classic' tab. is there a way to fix this??

thanks
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 28, 2010, 08:39:03 PM
Still doesn't work for me -__-
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Pellets on January 29, 2010, 09:12:52 AM
Quote from: CFCParadox on January 28, 2010, 08:39:03 PM
Still doesn't work for me -__-

The theme isn't approved yet, I think.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: shed on January 29, 2010, 12:17:54 PM
Quote from: Pellets on January 29, 2010, 09:12:52 AM
Quote from: CFCParadox on January 28, 2010, 08:39:03 PM
Still doesn't work for me -__-

The theme isn't approved yet, I think.

but it works for others so whether its approved or not isnt the issue :) its just not 'official' yet thats all.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on January 29, 2010, 04:21:26 PM
Quote from: shed on January 29, 2010, 12:17:54 PM
Quote from: Pellets on January 29, 2010, 09:12:52 AM
Quote from: CFCParadox on January 28, 2010, 08:39:03 PM
Still doesn't work for me -__-

The theme isn't approved yet, I think.

but it works for others so whether its approved or not isnt the issue :) its just not 'official' yet thats all.

I installed the Theme, then the MOD and still the mobile forum will not pop up on my Itouch...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on January 29, 2010, 04:58:03 PM
Delete your cookie and allow new cookies then log in on with your itouch.   Log out in the iphone theme will restart it too.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Pellets on February 04, 2010, 08:58:43 AM
Is it still not approved? I can't find the theme.  :-\
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Gravy on February 04, 2010, 11:57:33 AM
I take it that the mod approval process at SMF is a rather slow process (may be wrong though).
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: TheListener on February 04, 2010, 12:04:46 PM
Has anyone got this working on their ipod touch or iphone?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 04, 2010, 11:16:27 PM
Quote from: Pellets on February 04, 2010, 08:58:43 AM
Is it still not approved? I can't find the theme.  :-\
both still not yet approved sorry
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on February 04, 2010, 11:17:48 PM
Fabius, is there any way to bypass ultimate profile mod?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Gravy on February 04, 2010, 11:19:28 PM
Quote from: Fabius85 on February 04, 2010, 11:16:27 PM
Quote from: Pellets on February 04, 2010, 08:58:43 AM
Is it still not approved? I can't find the theme.  :-\
both still not yet approved sorry
Sorry if I'm sounding pushy, but were they able to give you any sort of a timeframe?  This mod looks absolutely amazing so far (and it's easy to tell a lot of work has been put into it), so I've been itching to try it out.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 05, 2010, 11:06:34 AM
Quote from: Mr. Gravy on February 04, 2010, 11:19:28 PM
Quote from: Fabius85 on February 04, 2010, 11:16:27 PM
Quote from: Pellets on February 04, 2010, 08:58:43 AM
Is it still not approved? I can't find the theme.  :-\
both still not yet approved sorry
Sorry if I'm sounding pushy, but were they able to give you any sort of a timeframe?  This mod looks absolutely amazing so far (and it's easy to tell a lot of work has been put into it), so I've been itching to try it out.
well, unfortunately there's no ETA for them to be approved. i hope it will take only few more days, cause i sent theme and mod on 26th Jan.
but i really dont know the charge of work SMF Team has, so that's only a hope.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: TheListener on February 05, 2010, 11:13:05 AM
Recent events within the team may delay this also.

:(
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on February 06, 2010, 10:14:21 PM
is there anyway to make images in posts don't look squished?

they look like this for example
(http://www.simplemachines.org/community/custom_avatars/avatar_147452.jpg)

instead of
(http://www.simplemachines.org/community/custom_avatars/avatar_147452.jpg)
like supposed to
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 07, 2010, 01:58:00 PM
Quote from: dembow on February 06, 2010, 10:14:21 PM
is there anyway to make images in posts don't look squished?

they look like this for example
(http://www.simplemachines.org/community/custom_avatars/avatar_147452.jpg)

instead of
(http://www.simplemachines.org/community/custom_avatars/avatar_147452.jpg)
like supposed to
i see all images correctly in my forum.
may it be an auto resize config of your forum?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on February 07, 2010, 11:02:51 PM
that's it (http://i40.tinypic.com/2nga1ih.jpg)  thanks
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on February 09, 2010, 06:19:32 AM
ok so i have set a specific width for images in posts in my forum in order for another mod to work properly

can i assign a max-width to images in posts?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on February 09, 2010, 05:19:48 PM
nevermind, figured it out
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: navjotjsingh on February 10, 2010, 01:54:38 AM
From where to get this mod?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 14, 2010, 11:11:11 AM
as theme and mod are not yet officially approved, i uploaded a package containing both here:
http://www.mediafire.com/?oozn1foknxm

i hope approval procedure will not take much longer.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: luismanson on February 14, 2010, 11:43:17 AM
Thanks Fabius85!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: navjotjsingh on February 14, 2010, 01:37:21 PM
Somehow I can't get it to work with curve_mobile mod. If I keep the mod enabled it loads only curve_mobile theme even on Iphone (I choose the proper settings from Admin panel and even removed references to Iphone/Ipod/Android from Load.php). And when I disable the curve_mobile mod, it shows WAP theme of SMF on Opera mobile when tested.

How to make them both work together?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on February 14, 2010, 01:39:34 PM
Quote from: navjotjsingh on February 14, 2010, 01:37:21 PM
Somehow I can't get it to work with curve_mobile mod. If I keep the mod enabled it loads only curve_mobile theme even on Iphone (I choose the proper settings from Admin panel and even removed references to Iphone/Ipod/Android from Load.php). And when I disable the curve_mobile mod, it shows WAP theme of SMF on Opera mobile when tested.

How to make them both work together?
http://www.simplemachines.org/community/index.php?topic=298258.msg2441927#msg2441927
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: navjotjsingh on February 14, 2010, 01:47:43 PM
That does not work...if u see my last post I have tried that already.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on February 14, 2010, 01:48:24 PM
Quote from: navjotjsingh on February 14, 2010, 01:47:43 PM
That does not work...if u see my last post I have tried that already.
It should since it work fine on my end. Try clearing the cache on your mobile.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: navjotjsingh on February 14, 2010, 01:51:36 PM
Can you show me a screenshot of ur settings page? Maybe I am wrong there. I keep getting redirected to curve_mobile theme while testing on Safari as Iphone.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on February 14, 2010, 01:54:37 PM
Quote from: navjotjsingh on February 14, 2010, 01:51:36 PM
Can you show me a screenshot of ur settings page? Maybe I am wrong there. I keep getting redirected to curve_mobile theme while testing on Safari as Iphone.
You need to set up the # where # is the iPhone theme. Mine is theme number 15.



Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: navjotjsingh on February 14, 2010, 01:57:27 PM
Seems u r using a older version of the plugin. I am using the latest version from the link given just few hours before as I see a drop down list. I have set up mine theme id as correct. Maybe its a bug in that version?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on February 14, 2010, 09:30:47 PM
Quote from: navjotjsingh on February 14, 2010, 01:37:21 PM
Somehow I can't get it to work with curve_mobile mod. If I keep the mod enabled it loads only curve_mobile theme even on Iphone (I choose the proper settings from Admin panel and even removed references to Iphone/Ipod/Android from Load.php). And when I disable the curve_mobile mod, it shows WAP theme of SMF on Opera mobile when tested.

How to make them both work together?

Use only one(1) mod!  ;)

With the smf4iphone mod you need to remove the curve mobile mod and install just the smf4iphone mod.  Then you can configure it to select curve mobile based on user agents.  If you install the curve mobile theme beforehand and then install the smf4iphoine mod it will automatically set-up some user agents for the curve mobile theme.

Install the themes first and let the mod find the id # during installation.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: navjotjsingh on February 14, 2010, 10:23:01 PM
Yup...This time it worked. This time I also made sure mod got installed into the custom forum theme. Btw, you should also add Opera Mini as a supported agent to the curve_mobile option, since it sends WAP2 Theme to Opera Mini instead of curve_mobile theme.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on February 15, 2010, 08:58:10 AM
Why?  All user agents are supported.  Just type in the supported agent you want in the "phrases" mod setting for the desired theme.  Just be careful with the format.

Like this:
iemobile|Opera Mobi|Opera Mini|symbian|series60|series70|series80|series90|series 60|series 70|series 80|series
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: luismanson on February 15, 2010, 11:17:08 AM
mmm i just realized my forum is really really slow after installing the mod, from less than 2 secconds to more than 15...

is this related to mobiiola detection? cant we use some local regexp based detection?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on February 15, 2010, 03:25:24 PM
Quote from: Fabius85 on February 14, 2010, 11:11:11 AM
as theme and mod are not yet officially approved, i uploaded a package containing both here:
http://www.mediafire.com/?oozn1foknxm
ok so i just installed this version and it's not working for me

i have 4 themes installed making this theme the third one, but on the Enter the theme #1 ID: drop down i only have this options (1,2,5,6)

:-\
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 16, 2010, 01:11:33 PM
I have installed the theme and am trying to install the mod but get the following error?  Please see attached.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on February 16, 2010, 01:51:31 PM
dembow -> Install the theme then the mod and the mod will find the ID for you.  You will have to go to phpmyadmin to correlate the ID's.  Adding a name to the ID is at the discretion of the mod author in a future date.

ZZZZZZZZ1 -> Looks like a bad download.  Delete the file and download again.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 16, 2010, 01:55:01 PM
Quote from: butchs on February 16, 2010, 01:51:31 PM

ZZZZZZZZ1 -> Looks like a bad download.  Delete the file and download again.


No go, still same error.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: dembow on February 16, 2010, 03:56:01 PM
Quote from: butchs on February 16, 2010, 01:51:31 PM
dembow -> Install the theme then the mod and the mod will find the ID for you.  You will have to go to phpmyadmin to correlate the ID's.


Install the theme then the mod and the mod will find the ID for you.  that's how i did it

You will have to go to phpmyadmin to correlate the ID's.  say what?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on February 16, 2010, 04:41:18 PM
Quote from: ZZZZZZZZ1 on February 16, 2010, 01:55:01 PM
Quote from: butchs on February 16, 2010, 01:51:31 PM

ZZZZZZZZ1 -> Looks like a bad download.  Delete the file and download again.


No go, still same error.

The file you are downloading is corrupt.  If you loaded it on your HD, the one on your HD is bad.  You have to redo all downloads.  If it still does not work I do not know what to tell you because fabs file should not be bad.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on February 16, 2010, 04:51:07 PM
Quote from: dembow on February 16, 2010, 03:56:01 PM
Quote from: butchs on February 16, 2010, 01:51:31 PM
dembow -> Install the theme then the mod and the mod will find the ID for you.  You will have to go to phpmyadmin to correlate the ID's.


Install the theme then the mod and the mod will find the ID for you.  that's how i did it

You will have to go to phpmyadmin to correlate the ID's.  say what?


You are good to go.  As per the readme the default installed theme ID's are as follows:
Theme # 1:      smf4iphone
Theme # 2:      curve_mobile
Theme # 3:      mobile_theme
Failsafe Theme:  WAP2

See you host for instructions to access and use phpmyadmin.  You will want to view the "smf_themes" DB entry for theme ID's vs names.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 16, 2010, 04:57:11 PM
Quote from: butchs on February 16, 2010, 04:41:18 PM
Quote from: ZZZZZZZZ1 on February 16, 2010, 01:55:01 PM
Quote from: butchs on February 16, 2010, 01:51:31 PM

ZZZZZZZZ1 -> Looks like a bad download.  Delete the file and download again.


No go, still same error.

The file you are downloading is corrupt.  If you loaded it on your HD, the one on your HD is bad.  You have to redo all downloads.  If it still does not work I do not know what to tell you because fabs file should not be bad.

Three different times and you're saying the downloaded file is bad?  Maybe it's another issue.  That is a STRONG possibility.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on February 16, 2010, 05:02:51 PM
Maybe the file on "Fabius85" server went bad?  If so only he can fix it.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 16, 2010, 05:04:53 PM
Quote from: butchs on February 16, 2010, 05:02:51 PM
Maybe the file on "Fabius85" server went bad?  If so only he can fix it.


That is a possibility.  No one can really provide feedback and test it if that is so.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 16, 2010, 05:22:23 PM
Quote from: ZZZZZZZZ1 on February 16, 2010, 01:11:33 PM
I have installed the theme and am trying to install the mod but get the following error?  Please see attached.
1) Check if your SMF version is 2.0 RC2, if not, update it.
2) Go to Admin Panel -> Packages -> File Permissions then check "Use predefined permission profile:" selecting "Free - all files writable", then click Make Changes (you need to set your FTP login and password before you can apply changes).
3) Try to install the mod.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 16, 2010, 05:43:26 PM
Quote from: Fabius85 on February 16, 2010, 05:22:23 PM
Quote from: ZZZZZZZZ1 on February 16, 2010, 01:11:33 PM
I have installed the theme and am trying to install the mod but get the following error?  Please see attached.
1) Check if your SMF version is 2.0 RC2, if not, update it.
2) Go to Admin Panel -> Packages -> File Permissions then check "Use predefined permission profile:" selecting "Free - all files writable", then click Make Changes (you need to set your FTP login and password before you can apply changes).
3) Try to install the mod.


Should the iphone theme directory be empty?  I installed it via the panel but went via FTp to check it out and it is empty
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 16, 2010, 06:09:38 PM
Well I uploaded the files for the theme into the empty iphone theme directory and I still get that error.  Which files do you know that I have to manually change the file permissions and I'll do it that way.  TIA!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: simplefan90 on February 16, 2010, 07:14:05 PM
I used this before when it first came out, give a lot of errors in the error log. I had to manually edit it and patch some of the problems.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on February 16, 2010, 09:33:07 PM
I am sure there are other ways.  But, this is how I installed the theme:
You will have to remove the theme in the admin panel.  Manually upload all the theme files.  Then install the theme in the admin panel by choosing the path of the theme not the zip file.

Assuming the zip file is ok then your file permissions can be at fault.   With the mod parse errors check out this link:  http://www.simplemachines.org/community/index.php?topic=363453.msg2483788#msg2483788
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 17, 2010, 01:33:28 AM
Quote from: butchs on February 16, 2010, 09:33:07 PM
I am sure there are other ways.  But, this is how I installed the theme:
You will have to remove the theme in the admin panel.  Manually upload all the theme files.  Then install the theme in the admin panel by choosing the path of the theme not the zip file.

Assuming the zip file is ok then your file permissions can be at fault.   With the mod parse errors check out this link:  http://www.simplemachines.org/community/index.php?topic=363453.msg2483788#msg2483788

I did manually upload the iphone theme and set the correct paths.

The link you sent to me about the parse errors does not relate to the errors I'm having.

Also maybe I'm on crack but I have not installed the mod yet, JUST the theme.  On a whim I changed the theme to the iPhone theme on the PC, loaded up the website on the iPhone and got the iPhone version.  WTF am I missing here?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 17, 2010, 06:44:18 AM
install the theme, upload the mod zip file into your /Packages/ directory. then via FTP give all your forum directories and files a CHMOD 0777
after that, install the mod, that should work.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 17, 2010, 05:03:37 PM
Quote from: Fabius85 on February 17, 2010, 06:44:18 AM
install the theme, upload the mod zip file into your /Packages/ directory. then via FTP give all your forum directories and files a CHMOD 0777
after that, install the mod, that should work.


What does the mod do exactly.  Like I said, I uploaded the files for the iphone theme, changed the theme to the iphone and now it shows the iphone theme on the iphone without the mod files.

Does the mod files allow the iphone to change to the iphone theme while the PC stays in the regular theme, is that it?

ALSO IS IT SAFE TO CHMOD ALL THE FILES AND DIRECTORIES TO 777?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 17, 2010, 06:30:37 PM
the mod checks your user agent/browser and assigns the theme you selected for that user agents. so you and your users dont need to select it by hand.
it allows you to set smf4iphone for iphone/ipod touch and some other mobile devices, curve mobile theme for other mobile devices, another theme for pc browsers, etc...

chmod 777 is safe cause there are .htaccess files hidden in every folder of your forum, so no one except users with access to your ftp can view directory lists or write on your files.
after installing the mod you can even reset the permission you want. chmod 777 is finalized to let you install the mod without having errors (giving high level permissions is required to install most of the mods for smf, not only smf4iphone mod)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: DEEPSNUYB on February 17, 2010, 06:47:03 PM
Quote from: Fabius85 on February 17, 2010, 06:30:37 PM
the mod checks your user agent/browser and assigns the theme you selected for that user agents. so you and your users dont need to select it by hand.
it allows you to set smf4iphone for iphone/ipod touch and some other mobile devices, curve mobile theme for other mobile devices, another theme for pc browsers, etc...

chmod 777 is safe cause there are .htaccess files hidden in every folder of your forum, so no one except users with access to your ftp can view directory lists or write on your files.
after installing the mod you can even reset the permission you want. chmod 777 is finalized to let you install the mod without having errors (giving high level permissions is required to install most of the mods for smf, not only smf4iphone mod)


Thanks this is good education.  Thanks so much.  So how can I 777 everything in ONE SWOOP?  I'm using an FTP program and I can right click on the main directory but I do not think that will CHMOD every sub directory and files in it.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 17, 2010, 09:49:01 PM
use FileZilla (http://filezilla-project.org/), it's free, and it allows you to CHMOD all files and folders with 1 click ;)

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Divaksh on February 18, 2010, 03:25:41 AM
I WaNa Install it in My 2.0 RC2 What to Do? ? ?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 18, 2010, 09:28:25 AM
Quote from: ÐіνÂкѕн on February 18, 2010, 03:25:41 AM
I WaNa Install it in My 2.0 RC2 What to Do? ? ?

1) Install the theme (i would suggest to copy smf4iphone theme folder the /Themes/ dir of your forum and thene select the local path in theme managment section).
2) Copy the mod package to your /Packages/ dir, then go o to Admin Panel -> Packages -> File Permissions then check "Use predefined permission profile:" selecting "Free - all files writable", then click Make Changes (you need to set your FTP login and password before you can apply changes).
3) Install the mod.
4) Set up your mod preferences.

that's all ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: shed on February 18, 2010, 10:39:25 AM
if anyone wants to see a working forum with this then feel free to visit my site that uses it, so far have had no problems. its not a very popular site but it shows how it looks :)

www.breatheiphone.co.uk
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on February 18, 2010, 07:41:57 PM
Quote from: shed on February 18, 2010, 10:39:25 AM
if anyone wants to see a working forum with this then feel free to visit my site that uses it, so far have had no problems. its not a very popular site but it shows how it looks :)

www.breatheiphone.co.uk

I have a popular forum with the smf4iphone theme. Its ihackmyi.com (http://ihackmyi.com).

I am working on a new theme for smf4iphone on my test forum. Test Forum (http://ihackmyi.com/test) (I am not sure if I will be releasing this new theme). What do you guys think?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on February 18, 2010, 07:46:43 PM
Quote from: Calumks on February 18, 2010, 07:41:57 PM
Quote from: shed on February 18, 2010, 10:39:25 AM
if anyone wants to see a working forum with this then feel free to visit my site that uses it, so far have had no problems. its not a very popular site but it shows how it looks :)

www.breatheiphone.co.uk

I have a popular forum with the smf4iphone theme. Its ihackmyi.com (http://ihackmyi.com).

I am working on a new theme for smf4iphone on my test forum. Test Forum (http://ihackmyi.com/test) (I am not sure if I will be releasing this new theme). What do you guys think?

I am seeing it on Core.  ???
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on February 18, 2010, 07:52:29 PM
View it on your iPHone lol. or go Safari -> Develop -> User Agent -> Mobile Safari.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on February 18, 2010, 08:02:03 PM
Quote from: Calumks on February 18, 2010, 07:52:29 PM
View it on your iPHone lol. or go Safari -> Develop -> User Agent -> Mobile Safari.
What...oh...  ;D
My bad.
Yes it look nice, could have been better. Would like to see more button, admin access, logo and something like that. One thing in SMF4iPhone...the logo is not right which making logo unless in this theme unless there is a way...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: dembow on February 19, 2010, 10:35:55 AM
Quote from: Calumks on February 18, 2010, 07:41:57 PM
I am working on a new theme for smf4iphone on my test forum. Test Forum (http://ihackmyi.com/test) (I am not sure if I will be releasing this new theme). What do you guys thinkz

nice, i am working on a new theme myself as well for the last few days

here's a screenshot of what i've been working on

(http://i49.tinypic.com/nf5hl2.jpg)

i'll probably release this when is finished in the next few days  ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on February 19, 2010, 11:26:23 AM
Quote from: dembow on February 19, 2010, 10:35:55 AM
Quote from: Calumks on February 18, 2010, 07:41:57 PM
I am working on a new theme for smf4iphone on my test forum. Test Forum (http://ihackmyi.com/test) (I am not sure if I will be releasing this new theme). What do you guys thinkz

nice, i am working on a new theme myself as well for the last few days

here's a screenshot of what i've been working on

(http://i49.tinypic.com/nf5hl2.jpg)

i'll probably release this when is finished in the next few days  ;)
Beautiful, I am surprise you were able to get the logo to work. I can't even get it centered.  :-[
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 19, 2010, 06:10:06 PM
SMF Team just sent me a PM. We should fix few issues and send them the updated mod, then it should be approved. :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on February 19, 2010, 06:49:50 PM
Quote from: dembow on February 19, 2010, 10:35:55 AM
Quote from: Calumks on February 18, 2010, 07:41:57 PM
I am working on a new theme for smf4iphone on my test forum. Test Forum (http://ihackmyi.com/test) (I am not sure if I will be releasing this new theme). What do you guys thinkz

nice, i am working on a new theme myself as well for the last few days

here's a screenshot of what i've been working on

(http://i49.tinypic.com/nf5hl2.jpg)

i'll probably release this when is finished in the next few days  ;)

awesome!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: dembow on February 21, 2010, 10:03:21 AM
(http://i49.tinypic.com/nf5hl2.jpg)

here's a demo (http://noisegraphics.com/iphone) of the theme

i'll be releasing it next week   ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on February 21, 2010, 10:12:55 AM
Quote from: dembow on February 21, 2010, 10:03:21 AM
(http://i49.tinypic.com/nf5hl2.jpg)

here's a demo (http://noisegraphics.com/iphone) of the theme

i'll be releasing it next week   ;)
please use THIS (http://www.mediafire.com/?oozn1foknxm) version of theme as base, cause it's the last version (which i sent to SMF for approval), and it should be completely bugfixed :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on February 21, 2010, 10:15:42 PM
can someone please translate this to put it into French-utf8 language file:
QuoteNOTES: Phrases must be entered in the format of "user agent|user agent" ie "safari|firefox". Mobile failsafe can be "wap", "wap2", "imode" or "theme=#" where # is the id of the theme. Theme will not load unless both id and phrases have data.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: dembow on February 22, 2010, 07:59:43 AM
Quote from: Fabius85 on February 21, 2010, 10:12:55 AM
please use THIS (http://www.mediafire.com/?oozn1foknxm) version of theme as base, cause it's the last version (which i sent to SMF for approval), and it should be completely bugfixed :)
no worries that IS the version i'm using  ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on February 22, 2010, 08:11:20 AM
ok so here is my version of the smf4iPhone[slick]

(http://i49.tinypic.com/nf5hl2.jpg)

here's a demo (http://noisegraphics.com/iphone) of the theme

you can go ahead and download it here (http://noisegraphics.com/iphone/smf4iPhoneSLICK.zip)

enjoy!  (http://i41.tinypic.com/wwcjz9.jpg)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: luismanson on February 22, 2010, 08:17:35 AM
looks REALLY good, however thar seems to be the generic link to see from the iphone?
the skin is here: http://noisegraphics.com/iphone/index.php?theme=4

dembow, i found theme=3 is this one available? i loved it!!!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on February 22, 2010, 08:44:39 AM
Quote from: dembow on February 22, 2010, 08:11:20 AM
ok so here is my version of the smf4iPhone[slick]

(http://i49.tinypic.com/nf5hl2.jpg)

here's a demo (http://noisegraphics.com/iphone) of the theme

you can go ahead and download it here (http://noisegraphics.com/iphone/smf4iPhoneSLICK.zip)

enjoy!  (http://i41.tinypic.com/wwcjz9.jpg)
??? The theme is the same made by farfromperfection, not your slick version.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on February 22, 2010, 11:33:45 AM
@dembow hope you don't mind if I use part of your theme^^. Its so awesome!!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: dembow on February 22, 2010, 07:25:17 PM
@luismanson thanks, and yeah the link was intended to view on the iphone  ;)

@Calumks thanks, as long as you give credit, no i don't mind  ;)


Quote from: Dismal Shadow on February 22, 2010, 08:44:39 AM
??? The theme is the same made by farfromperfection, not your slick version.

what do you mean is the same? did you tried it?

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: luismanson on February 22, 2010, 08:18:43 PM
ok, for some reason from android i cant logout :|
fields have no border, so an unexperienced user wont guess than there is a field to type there...

custom required fields are not displayed
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: pequepsp on March 01, 2010, 12:49:05 PM
the theme dont load in my iphone
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on March 06, 2010, 11:45:07 AM
Anyone know how to fix this error?

http://ihackmyi.com/iphone/index.php?/board,44.0.html
8: Undefined variable: scripturl
File: /XXXX/public_html/iphone/Themes/iphone/MessageIndex.template.php
Line: 39

<button onclick="window.location.href=\'', $scripturl , '?action=post;board=' , $context['current_board'] , '.0 \';">', $txt['new_topic'], '</button>
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on March 06, 2010, 11:47:59 AM
$scripturl needs to be a global before the function.  ie:

global $scripturl;
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on March 06, 2010, 11:55:49 AM
thanks!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: fulltimecasual on March 14, 2010, 10:53:57 AM
hi,

i know i shouldn't have updated to RC3 until this plugin in was updated, but i did... Now, when i upload the theme then follow the last instructions here (uploading the them first, then the mod, then applying etc) i get heaps of errors in load.php, index.php, etc.

when i've managed to delete the theme and mod and fix all the errors, then just tried to upload the theme only and allow users to choose that theme on their phone, i get :

Template Parse Error!

It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

until i reset the theme for everyone back to default. even previewing the theme creates this error.

should i just be patient and wait for an RC3 version? its a very small forum but everyone has an iPhone and is bugging me!

Thanks!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on March 14, 2010, 12:16:34 PM
They need to update the theme to 2.0RC3. Hopefully they can release the fixes soon!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on March 14, 2010, 01:02:34 PM
I do not know anything about the theme but we finished the mod this week.  It uses sessions, cookies and smf's internal caching system to reduce server load and switch to any one of 4 themes.  Fabius85 gave it a good testing and it passed.  It was easily updated to RC3 and submitted to SMF a few days ago.


It is awesome!!!   :P
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 15, 2010, 12:40:42 PM
SMF4iPhone Mod (latest version, as said by butchs, was submitted to SMF 4 days ago) is yet perfectly compatible with 2.0 RC2 and RC3.
Theme is compatible only with 2.0 RC2 at the moment. I'm gonna make a new version to fit with RC3.

PS: Both theme and mod are still in approval porcess, i hope they will be approved soon...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: perplexed on March 15, 2010, 07:23:29 PM
nice theme :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PhoneGotSwag on March 20, 2010, 01:39:43 AM
ok can someone help me

i downloaded the beta 2.7.3

i installed the theme along with the curve mobile and mobile theme

then i installed the mod.

when i load my site on my iphone it still shows the default theme.

I tried clearing cache and cookies.

I havent modded any files am i i supposed to? if so, what am i supposed to do..

please give exact lines and what codes to insert

thank you i really want to get this working and dont want to wait for theme submission because that usually takes a while

and if u need error logs where do i find them for the theme?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PhoneGotSwag on March 20, 2010, 02:17:55 AM
also if someone can help me get this working and have a paypal account

i will send you $5

but it has to be working!

and we would have to be emailing because posting here is not fast enough.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 20, 2010, 09:32:10 AM
STEP 1
first of all, check if you still have 2.0 RC2 or if you updated to 2.0 RC3. cause mod is yet compatible with RC3, but theme is not. so you must have 2.0 RC2.

STEP  2
then, 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 3
you should check if you configured correctly SMF4iPhone Mod settings (in Admin > Modification Settings > SMF4iPhone)
check if theme's ID you set are correct. if not, then set them correctly and click Save.

STEP 4
you need to clear also forum cache, not only your device cache, so:
first go to Admin > Forum Maintenance, and under "Empty the file cache" click on Run task now.
then into your iPhone go to Preferences > Safari and tap on Clear history, Clear cookies, Clear cache.

STEP 5
now open Safari Mobile, and 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"
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PhoneGotSwag on March 20, 2010, 09:36:23 AM
ok i will try that now
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on March 20, 2010, 09:47:13 AM
Hi Fabius85,
Maybe you can make the latest mod version available for download until SMF team gets done testing.  I hate for people to be using that clunky old beta version.   ???  8)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on March 20, 2010, 09:51:35 AM
Quote from: butchs on March 20, 2010, 09:47:13 AM
Hi Fabius85,
Maybe you can make the latest mod version available for download until SMF team gets done testing.  I hate for people to using that clunky old beta version.   ???  8)
1+ be waiting for a compatible version of RC3
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PhoneGotSwag on March 20, 2010, 10:09:19 AM
alright it worked

paypal email so i can pay u $5?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: PhoneGotSwag on March 20, 2010, 10:43:06 AM
Quote from: butchs on March 20, 2010, 09:47:13 AM
Hi Fabius85,
Maybe you can make the latest mod version available for download until SMF team gets done testing.  I hate for people to be using that clunky old beta version.   ???  8)

+1 i agree they seem like they will take a long time
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 20, 2010, 10:57:07 AM
DOWNLOAD (http://www.mediafire.com/?lmommnuwywz) latest theme and mod, which were sent to SMF Team for approval last 11/03/2010

ps: again, for the mod, credits goes to butchs who spent many, many hours to make it work perfectly :)

pps: again, mod is yet compatible with both 2.0 RC2 and RC3, theme is compatible only with 2.0 RC2 at the moment. i'm gonna work on RC3 compatibility in next days.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 20, 2010, 10:59:57 AM
Quote from: PhoneGotSwag on March 20, 2010, 10:09:19 AM
alright it worked

paypal email so i can pay u $5?
i just sent you my paypal email account by pm ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PhoneGotSwag on March 20, 2010, 11:15:24 AM
Quote from: Fabius85 on March 20, 2010, 10:59:57 AM
Quote from: PhoneGotSwag on March 20, 2010, 10:09:19 AM
alright it worked

paypal email so i can pay u $5?
i just sent you my paypal email account by pm ;)

sending now
whats new in this version?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PhoneGotSwag on March 20, 2010, 11:48:19 AM
SMF4iPhone Mod uses session cookies that allow it to disable its self. "unset($_SESSION['smf4iphone']" needs to be added to the login/regrsiter portion of the theme for this mod to work properly:
  if((!empty($_GET['action'])) && (($_GET['action']=='login') || ($_GET['action']=='register'))) {
   $loginregister=' style="display:none;"';
   unset($_SESSION['smf4iphone']); }


where do i add this to? what lines and what files?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on March 20, 2010, 09:48:15 PM
There is a template parse error in the new theme:

http://forums.combatfps.com/index.php?theme=16
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 21, 2010, 01:00:11 AM
Quote from: PhoneGotSwag on March 20, 2010, 11:15:24 AM
sending now
thanks ;)

Quote from: PhoneGotSwag on March 20, 2010, 11:48:19 AM
SMF4iPhone Mod uses session cookies that allow it to disable its self. "unset($_SESSION['smf4iphone']" needs to be added to the login/regrsiter portion of the theme for this mod to work properly:
  if((!empty($_GET['action'])) && (($_GET['action']=='login') || ($_GET['action']=='register'))) {
   $loginregister=' style="display:none;"';
   unset($_SESSION['smf4iphone']); }


where do i add this to? what lines and what files?
this is not necessary anymore. it was used in a previous version of the mod, i just forgot to remove it from the readme, sorry ^^

Quote from: CFCParadox on March 20, 2010, 09:48:15 PM
There is a template parse error in the new theme:

http://forums.combatfps.com/index.php?theme=16

Quote from: Fabius85 on March 20, 2010, 10:57:07 AM
pps: again, mod is yet compatible with both 2.0 RC2 and RC3, theme is compatible only with 2.0 RC2 at the moment. i'm gonna work on RC3 compatibility in next days.
as i can see you are using RC3 so, yes, as long as it is not compatible, it returns parse error :-/
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PhoneGotSwag on March 21, 2010, 08:49:29 AM
this update doesnt work for me..

and im not getting any errors
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 21, 2010, 09:49:23 AM
Quote from: PhoneGotSwag on March 21, 2010, 08:49:29 AM
this update doesnt work for me..

and im not getting any errors
try following the same steps i told you yesterday, then tell me if it works
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PhoneGotSwag on March 21, 2010, 09:59:41 AM
did not work i tried 3 times already
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on March 21, 2010, 10:13:36 AM
The mod is designed to switch once.  It will store the data in a cookie, sessions or your cache and will stay there for 24 hours.  This is done to save server load.  So if you switch once you have to delete all three or wait 24 hours to be able to switch again.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on March 23, 2010, 09:17:00 AM
I've just installed my forum when i saw the thing about RC3 uncompatible so i'm waiting for RC3 version now.


;D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on March 25, 2010, 10:51:46 AM
Fabius85, any idea when the template will be RC3 compatible?
It might be a lot of work, or does it need just a few adjustments?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Leemy on March 25, 2010, 12:14:34 PM
My users love this mod+theme as do I. Looks very slick on iphone.  2 suggestions:

the HOME button should go to the forum root. it doesnt seem to always do this.

the page numbers [1][2][3] etc... are very small. These should be bigger so u can hit them with your finger more accurately.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 26, 2010, 09:00:33 PM
RC3? HERE IT IS!

DOWNLOAD (http://www.mediafire.com/?jai20tgvtht) package containing both Theme and Mod compatible with both RC2 and RC3.

If you encounter any error using SMF4iPhone Theme with RC3, just report it here, and i'll fix ;)




PS: Both Theme and Mod still in approval process... :'(
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on March 26, 2010, 09:14:56 PM
Thanks, it works but if you login from this theme it takes you to full site...again.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Mr. Jinx on March 27, 2010, 10:56:16 AM
Great! Now I can upgrade to RC3.
Thnx
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: CFCParadox on March 27, 2010, 02:59:32 PM
Theme doesnt work for me.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on March 27, 2010, 08:02:45 PM
The image file logocover.png seems to have lost its transparent pixels which means only half the themes logo is showing. I found an earlier version of the png file to replace it on my installation.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 28, 2010, 02:20:03 PM
Quote from: Dismal Shadow on March 26, 2010, 09:14:56 PM
Thanks, it works but if you login from this theme it takes you to full site...again.
you're right, i'll fix that

Quote from: doughboy99 on March 27, 2010, 08:02:45 PM
The image file logocover.png seems to have lost its transparent pixels which means only half the themes logo is showing. I found an earlier version of the png file to replace it on my installation.
ok, i'll fix replace with previous image in next package.

Quote from: CFCParadox on March 27, 2010, 02:59:32 PM
Theme doesnt work for me.
if you explain your problem i can help you
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on March 28, 2010, 04:11:30 PM
Doesn't work for me either as yes the theme and the mod will install BUT i have to go select the theme on my profile and the mod isn't auto redirecting me to the mobile theme.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 28, 2010, 05:10:33 PM
Please first follow this steps:




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 into your iPhone go to Preferences > Safari and tap on Clear history, Clear cookies, Clear cache.

STEP 4
Now open Safari Mobile, and 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"




If after doing this the theme still doesn't load automatically, report it here.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 29, 2010, 12:59:47 AM
Hoping this is gonna be the really final revision:
Download (http://www.mediafire.com/?3lnhhimwgjl)

Changes:
- Fixed the bug which made the the switch to default one after login (thanks to butchs who spent some hours chatting with me to find the better way to do that)
- Added Dutch and Dutch-UTF8 language files to both Theme and Mod (credits to Rene [Mr. Jinx])
- Added non UTF8 Italian language files to both Theme and Mod
- Fixed transparency in some images
- Updated language images for French translation of the Theme.

Changes were made to both the code of Theme and Mod, so it would be better if you update both in your forum.

EDIT: updated package with proper credits in the readme files of Theme and Mod
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on March 29, 2010, 04:11:16 AM
Quote from: Fabius85 on March 29, 2010, 12:59:47 AM
Changes:
- Fixed the bug which made the the switch to default one after login (thanks to butchs who spent some hours chatting with me to find the better way to do that)
- Added Dutch and Dutch-UTF8 language files to both Theme and Mod (credits to Rene [Mr. Jinx])
- Added non UTF8 Italian language files to both Theme and Mod
- Fixed transparency in some images
- Updated language images for French translation of the Theme.
Neat! I just installed this version, and now everything works fine on RC3. Login works also. And very nice to see the dutch translation.
No errors in the errorlog, great job!!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on March 29, 2010, 04:27:17 AM
Nicely done. Works a treat.
Are you planning to add the iPhone/Full Version?
(http://www.simplemachines.org/community/index.php?action=dlattach;topic=298258.0;attach=94265)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on March 29, 2010, 04:53:44 AM
There is a small button on the left to switch to 'Classic' already (on the index page). The iPhone | Full Version is a waste of space if you ask me.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on March 29, 2010, 04:59:49 AM
Quote from: Mr. Jinx on March 29, 2010, 04:53:44 AM
There is a small button on the left to switch to 'Classic' already (on the index page). The iPhone | Full Version is a waste of space if you ask me.
I don't see the "Classic" button anywhere...  ??? Unless you click the "home" first.

And I agree the "iPhone | Full Version" is a waste of space.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on March 29, 2010, 08:20:42 AM
Quote from: Dismal Shadow on March 29, 2010, 04:59:49 AM
Quote from: Mr. Jinx on March 29, 2010, 04:53:44 AM
There is a small button on the left to switch to 'Classic' already (on the index page). The iPhone | Full Version is a waste of space if you ask me.
I don't see the "Classic" button anywhere...  ??? Unless you click the "home" first.

And I agree the "iPhone | Full Version" is a waste of space.
this is how it was meant to be. "Classic" button is available on the upper-left corner in the Home of the forum. in the other pages this button in substituted by the "Back" button. a link in every page to switch to the desktop view would take too much space :-\
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on March 29, 2010, 03:40:40 PM
Mine still doesn't auto redirect :(
(i've got a few ideas to fix so i'll try those first)

:)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on March 29, 2010, 04:00:01 PM
Quote from: freerunnering on March 29, 2010, 03:40:40 PM
Mine still doesn't auto redirect :(
(i've got a few ideas to fix so i'll try those first)

:)
http://www.simplemachines.org/community/index.php?topic=298258.msg2559099#msg2559099
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: doughboy99 on March 30, 2010, 11:15:56 AM
Icant get this working on the Wii. User agent string is something like Opera/9.30 (Nintendo Wii; U; ; 2047-7;en) so I tried adding "Wii" "and "Nintendo Wii" without success. The mod is successfully detecting iPods and Nokia phones so It should be ok on the wii.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on March 30, 2010, 11:51:34 AM
As long as you are putting "|" between the UA phrases in the admin panel it will find the string.  The mod holds the IP for 24 hours so if you failed once you will need to wait unless you have another IP to test with.   :'(
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: shed on March 31, 2010, 07:14:48 PM
where would i download the curve_mobile theme from?! ive set the mod to the theme but can only find the iphone theme to download  :'(
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on March 31, 2010, 08:26:58 PM
Check the themes (http://custom.simplemachines.org/themes/index.php?action=search;basic_search=mobile) section.  Not sure it is for RC3???
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on April 01, 2010, 07:10:20 AM
Quote from: Fabius85 on March 26, 2010, 09:00:33 PM
RC3? HERE IT IS!

DOWNLOAD (http://www.mediafire.com/?jai20tgvtht) package containing both Theme and Mod compatible with both RC2 and RC3.

If you encounter any error using SMF4iPhone Theme with RC3, just report it here, and i'll fix ;)




PS: Both Theme and Mod still in approval process... :'(

May I ask what changes you made to the theme? If there are too many don't bother. I can't just upgrade as I am using a heavily modified version of the original.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on April 01, 2010, 07:20:47 AM
Working great now thanks this is a brilliant mod/theme!!

:)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on April 01, 2010, 07:43:00 AM
It keep going to full site after a few hours. Only way is to clear out cache from the ACP... :(
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on April 01, 2010, 08:51:53 AM
Quote from: Calumks on April 01, 2010, 07:10:20 AM

May I ask what changes you made to the theme? If there are too many don't bother. I can't just upgrade as I am using a heavily modified version of the original.

Doesn't look like there's two many changes and the your running RC2 anyway aren't you!

:D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 01, 2010, 09:22:52 AM
Quote from: Dismal Shadow on April 01, 2010, 07:43:00 AM
It keep going to full site after a few hours. Only way is to clear out cache from the ACP... :(

My guess is that it is going to the default theme set in the profile when the session expires.  The session time is set when you log in. 

Next time you log in, try going to your user profile and change the theme to the mobile theme.  See if that holds.

I am not sure that we want to force the change to the profile settings when a mobile user logs in?  What if the user does not want a mobile device as their default theme.

It may be better to use a pop-up warning message stating that the theme will switch back if they do not adjust their default profile settings?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on April 01, 2010, 09:54:32 AM
It's bad idea to have a timed session on the theme making it useless since it hold hold for long IMO.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: shed on April 01, 2010, 12:10:07 PM
Quote from: butchs on March 31, 2010, 08:26:58 PM
Check the themes (http://custom.simplemachines.org/themes/index.php?action=search;basic_search=mobile) section.  Not sure it is for RC3???

yes it works for RC3 but its not as nice on iphone lol
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 01, 2010, 12:26:24 PM
Quote from: Dismal Shadow on April 01, 2010, 09:54:32 AM
It's bad idea to have a timed session on the theme making it useless since it hold hold for long IMO.

That has nothing do with the mod.  That is what SMF is doing.  I listed options in my last post.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on April 01, 2010, 12:33:24 PM
I find this amusing. It's pointless now.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 01, 2010, 02:24:20 PM
Eh???  So I assume you want the mod to change the default theme that is set in the admin panel?  This is not practical.

If you are a user and you loaded the mobile theme and you like to keep it by making it your default go to "profile > modify profile > Current Theme" and change the theme.  Otherwise it will automatically reset in 24 hours.

Like I said, I am not sure if forcing this change is something we want to do with the mod.
:)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on April 01, 2010, 02:30:06 PM
You are right, it's not practical, but I am not gonna tell my members that. "Oh if you are seeing a default theme in the iPhone, you can change it from your profile because it reset every 24 hours." Curve mobile's mod is doing just fine without reseting every 24 hours.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 01, 2010, 03:50:49 PM
Details help.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on April 02, 2010, 09:03:28 AM
The mod doesn't work properly!!

I want the mod to detect if the user is viewing from an iPhone and display the iPhone theme and if them view from a computer to display the computer theme.

But it seems to keep a cache of what theme the user has as the their default and then every 24 hours checks if they viewing from the iPhone or computer then saves that for 24 hours?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 02, 2010, 11:25:54 AM
Dismal Shadow --> Please try running with database sessions enabled (if they are not) until we guess at what is happening and debug a solution.

Please take note that due to my own stupidity, I am writing a mod for a mobile device when I do not own a mobile device to test it with.

freerunnering  -->  That is not practical.  Did you ever watch a google bot read your site.  It switches UA constantly.  One second it is mobile the next it is not.

Plus this was discussed in detail earlier in this thread.  The iphone theme offers a means to switch to back to default.

If you still insist on a shorter time then replace "24" in "DetectFree.php" with whatever time delay you want.  I suggest keeping a minimum of "2" hours.   Still 24 is a good number.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Jinx on April 03, 2010, 11:24:35 AM
Small correction for the next version (not important).
If you are watching a topic that contains posts from a deleted users (shows as a guest without profile) you'll get some undefined index errors in your logs. To resolve this:

display.template.php
Find: <div class="posterinfo" onclick="window.location.href=\'', $message['member']['href'] ,'\'"><span class="name">', $message['member']['name'] ,'</span>';
if (!$message['member']['avatar']['href']) {


Replace with: <div class="posterinfo" onclick="window.location.href=\'', isset($message['member']['href']) ? $message['member']['href'] : '' ,'\'"><span class="name">', $message['member']['name'] ,'</span>';
if (!isset($message['member']['avatar']['href'])) {
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: menoch on April 04, 2010, 12:19:20 PM
I have been having an issue that when I click on "New" it doesn't always take me to the newest post but quite a few posts up from the newest one.  Is there anything that can be done to fix this?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 04, 2010, 05:27:42 PM
Quote from: menoch on April 04, 2010, 12:19:20 PM
I have been having an issue that when I click on "New" it doesn't always take me to the newest post but quite a few posts up from the newest one.  Is there anything that can be done to fix this?
"new" button (even in ALL other themes) takes you to the newst post you didnt read, not to the last post of the theme.
it says "now", not "last" ;)

ps: we're working on a better way to manage session and cookies.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: menoch on April 04, 2010, 07:43:21 PM
Quote from: Fabius85 on April 04, 2010, 05:27:42 PM
Quote from: menoch on April 04, 2010, 12:19:20 PM
I have been having an issue that when I click on "New" it doesn't always take me to the newest post but quite a few posts up from the newest one.  Is there anything that can be done to fix this?
"new" button (even in ALL other themes) takes you to the newst post you didnt read, not to the last post of the theme.
it says "now", not "last" ;)

ps: we're working on a better way to manage session and cookies.

Sorry, I should have been more clear.  I did mean that it was not taking me to the newest post I haven't read but sometimes a few posts up from there.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: PSPguru on April 05, 2010, 05:54:58 AM
great job congrats  :o, but you should think to add IPA  O:) lol.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 05, 2010, 06:24:44 PM
Quote from: menoch on April 04, 2010, 07:43:21 PM
Quote from: Fabius85 on April 04, 2010, 05:27:42 PM
Quote from: menoch on April 04, 2010, 12:19:20 PM
I have been having an issue that when I click on "New" it doesn't always take me to the newest post but quite a few posts up from the newest one.  Is there anything that can be done to fix this?
"new" button (even in ALL other themes) takes you to the newst post you didnt read, not to the last post of the theme.
it says "now", not "last" ;)

ps: we're working on a better way to manage session and cookies.

Sorry, I should have been more clear.  I did mean that it was not taking me to the newest post I haven't read but sometimes a few posts up from there.
well, i dont thinks it is a theme problem cause "new" button simply links to what smf recognizes as the last post you read. :-\
however for me it works correctly
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: menoch on April 05, 2010, 07:43:13 PM
Quote from: Fabius85 on April 05, 2010, 06:24:44 PM
Quote from: menoch on April 04, 2010, 07:43:21 PM
Quote from: Fabius85 on April 04, 2010, 05:27:42 PM
Quote from: menoch on April 04, 2010, 12:19:20 PM
I have been having an issue that when I click on "New" it doesn't always take me to the newest post but quite a few posts up from the newest one.  Is there anything that can be done to fix this?
"new" button (even in ALL other themes) takes you to the newst post you didnt read, not to the last post of the theme.
it says "now", not "last" ;)

ps: we're working on a better way to manage session and cookies.

Sorry, I should have been more clear.  I did mean that it was not taking me to the newest post I haven't read but sometimes a few posts up from there.
well, i dont thinks it is a theme problem cause "new" button simply links to what smf recognizes as the last post you read. :-\
however for me it works correctly

That is really weird.  I tried this theme back before you guys took it over and had the same issues with it.  Today for example I was loading a thread and it kept putting me to one message even though the newest was many below.  Even as people were posting it kept just going to that one message. 

Also is there a way to disable the avatars from loading?  They seem to really slow down the loading of the page. 
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Mr. Doug on April 05, 2010, 10:06:47 PM
Works great for me on RC3. The only mod I made was adding a "classic mode" link at the bottom of every page, just above the copyright notice.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: askho on April 05, 2010, 10:35:18 PM
HELPPP how do i add my adsense ads to the theme i can't figure out how to do it help pplox
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 06, 2010, 05:31:27 AM
Quote from: askho on April 05, 2010, 10:35:18 PM
HELPPP how do i add my adsense ads to the theme i can't figure out how to do it help pplox
just put it over copyrights in template_body_below() in the index.template.php

Quote from: menoch on April 05, 2010, 07:43:13 PM
Quote from: Fabius85 on April 05, 2010, 06:24:44 PM
Quote from: menoch on April 04, 2010, 07:43:21 PM
Quote from: Fabius85 on April 04, 2010, 05:27:42 PM
Quote from: menoch on April 04, 2010, 12:19:20 PM
I have been having an issue that when I click on "New" it doesn't always take me to the newest post but quite a few posts up from the newest one.  Is there anything that can be done to fix this?
"new" button (even in ALL other themes) takes you to the newst post you didnt read, not to the last post of the theme.
it says "now", not "last" ;)

ps: we're working on a better way to manage session and cookies.

Sorry, I should have been more clear.  I did mean that it was not taking me to the newest post I haven't read but sometimes a few posts up from there.
well, i dont thinks it is a theme problem cause "new" button simply links to what smf recognizes as the last post you read. :-\
however for me it works correctly

That is really weird.  I tried this theme back before you guys took it over and had the same issues with it.  Today for example I was loading a thread and it kept putting me to one message even though the newest was many below.  Even as people were posting it kept just going to that one message. 

Also is there a way to disable the avatars from loading?  They seem to really slow down the loading of the page. 
may it be because of the forum cache? try to disable that and tell me what happens
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 08, 2010, 10:41:21 PM
NEW THEME & MOD RELEASE!
Download! (http://www.mediafire.com/?yhjgzio0mne)

About the Theme...
- Fixed some issues with "Back/Classic" button which now displays correctly.
- Fixed couple of errors in the code.
- Fixed "deleted users" matter as Mr. Jinx noticed.

About the Mod...
- butchs worked on a better way to check sessions and cookies, so, check it out!

Changes were made to some files of both mod and theme, so, it is a good idea to uninstall both and install them again in the updated version ;)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on April 09, 2010, 05:10:11 AM
This is error in the log when viewing as guest I believed.
8: Undefined offset: 2
File: /home/user/public_html/forum.com/Sources/DetectFree.php
Line: 57
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 09, 2010, 07:52:35 AM
Do not worry about it.  That line is just a check for an old version cookie.  We had to add one more item to the cookie.  I guess I should have checked another way?   It should force the creation of a new cookie to replace of the old cookie.  Still the result is the same.  In 24 hours the old cookies will expire, the check will do nothing, the array value #2 will exist and you should not see the error again.
:o
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: m771401 on April 09, 2010, 03:51:37 PM
I got this all working now.. with some help from the guys over at Tinyportal.

I had to move the TinyPortal line under function template_html_above() for it to properly hide the TP panels.

So that's working now.. unfortunately now when viewing the forum/board index it fails to render correctly. Just text with no formatting.
The Online Users is being correctly though.

Any ideas.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 09, 2010, 04:55:18 PM
Quote from: m771401 on April 09, 2010, 03:51:37 PM
I got this all working now.. with some help from the guys over at Tinyportal.

I had to move the TinyPortal line under function template_html_above() for it to properly hide the TP panels.

So that's working now.. unfortunately now when viewing the forum/board index it fails to render correctly. Just text with no formatting.
The Online Users is being correctly though.

Any ideas.
i'm not sure i can help you, cause i never used tinyportal, but if you give me the link to your forum and send me the smf4iphone theme files you edited to make them work with tiny portal, i can try to figure out what's the matter
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: m771401 on April 09, 2010, 05:06:40 PM
Thanks fabius85. I sent a you PM.
Let me know if you need anything else from me.
I appreciate the help.

Quote from: Fabius85 on April 09, 2010, 04:55:18 PM
Quote from: m771401 on April 09, 2010, 03:51:37 PM
I got this all working now.. with some help from the guys over at Tinyportal.

I had to move the TinyPortal line under function template_html_above() for it to properly hide the TP panels.

So that's working now.. unfortunately now when viewing the forum/board index it fails to render correctly. Just text with no formatting.
The Online Users is being correctly though.

Any ideas.
i'm not sure i can help you, cause i never used tinyportal, but if you give me the link to your forum and send me the smf4iphone theme files you edited to make them work with tiny portal, i can try to figure out what's the matter

Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 09, 2010, 05:48:38 PM
ok, i found the problem, there are table, tr and td tags, starting just before logo div and ending just before copyrights div. you have 2 options:
1) remove that tags
2) edit style.css and add "table tr td" before other tags in the stylesheet tag gerarchy

i suggest you to find a way to remove that table/tr/td tags which i think are not necessary in smf4iphone view of the forum.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: derby on April 10, 2010, 04:23:09 AM
Please where can i download this mod from?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on April 10, 2010, 04:25:58 AM
Quote from: derby on April 10, 2010, 04:23:09 AM
Please where can i download this mod from?
Geez, can't you READ the thread?
http://www.simplemachines.org/community/index.php?topic=298258.msg2576579#msg2576579
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: derby on April 10, 2010, 04:53:50 AM
i have installed the mod...how can i get the mod working...i installed the mod and what taken to the modification settings of which i don't know what to do der..
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 10, 2010, 08:19:16 AM
Install the theme first then install the mod.  The mod will find the theme for you.  O:)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: derby on April 10, 2010, 08:34:29 AM
have done it how do i know i did the right tin
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 10, 2010, 08:46:10 AM
Quote from: derby on April 10, 2010, 08:34:29 AM
have done it how do i know i did the right tin
open safari mobile into your iphone (or if you dont have an iphone/ipod touch, use a user agent faker) and simply access your forum.
if it loads smf4iphone theme, you're done. :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: m771401 on April 10, 2010, 05:19:41 PM
Quote from: Fabius85 on April 09, 2010, 05:48:38 PM
ok, i found the problem, there are table, tr and td tags, starting just before logo div and ending just before copyrights div. you have 2 options:
1) remove that tags
2) edit style.css and add "table tr td" before other tags in the stylesheet tag gerarchy

i suggest you to find a way to remove that table/tr/td tags which i think are not necessary in smf4iphone view of the forum.


With your help and Bloc's we were able to resolve the formatting issue.
Many thanks to the both of you.

The solution can be found here > http://www.tinyportal.net/index.php?topic=32327.0
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: derby on April 11, 2010, 05:10:44 AM
I have installed but theme/mod i tested it but it not working...any help where the problem will  be coming from?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 11, 2010, 07:47:57 AM
The cookies and cache are saved for 24 hours so you have to wait for them to expire or log in with another IP address.  Then you must log into your server with a UA that gets "is_mobile:true" at [nofollow]http://detectfree.moviladetection.com/[/nofollow] for the theme to switch.
O:)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 11, 2010, 09:35:49 AM
To everyone installing SMF4iPhone Theme and Mod, and having issues, please first follow this steps:




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".




If after doing this the theme still doesn't load automatically, report it here.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ~DS~ on April 14, 2010, 03:48:55 AM
Quote from: butchs on April 02, 2010, 11:25:54 AM
Dismal Shadow --> Please try running with database sessions enabled (if they are not) until we guess at what is happening and debug a solution.
Use database driven sessions? It's always have been enabled since...


BTW...I am unable to get it to work with the new Opera.
http://itunes.apple.com/us/app/opera-mini-web-browser/id363729560?mt=8
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 14, 2010, 07:44:24 AM
Quote from: Dismal Shadow on April 14, 2010, 03:48:55 AM
Use database driven sessions? It's always have been enabled since...

The sessions handling was fixed in the last release.  You non longer need DB sessions for this mod.

Quote from: Dismal Shadow on April 14, 2010, 03:48:55 AM
BTW...I am unable to get it to work with the new Opera.
http://itunes.apple.com/us/app/opera-mini-web-browser/id363729560?mt=8

To add a new UA string enter the string key in the phrase list via the admin panel.

I believe Opera Mini has the following UA string:
Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.16823/1126; U; en) Presto/2.2.0

So to make it switch on theme #1 "SMF4IPhone" you need to add "Opera Mini" to the theme #1 phrase in the admin panel "Adjust SMF4iPhone Settings" as follows:
iphone|ipod|android|mobile|Safari Mobile|Opera Mini
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on April 14, 2010, 08:54:31 AM
Quote from: butchs on April 14, 2010, 07:44:24 AM
To add a new UA string enter the string key in the phrase list via the admin panel.

I believe Opera Mini has the following UA string:
Opera/9.80 (J2ME/MIDP; Opera Mini/5.0.16823/1126; U; en) Presto/2.2.0

So to make it switch on theme #1 "SMF4IPhone" you need to add "Opera Mini" to the theme #1 phrase in the admin panel "Adjust SMF4iPhone Settings" as follows:
iphone|ipod|android|mobile|Safari Mobile|Opera Mini
just tried that, and it works :)
"Opera Mini" user agent will be added by default in the new mod release, when it will come out.

ps: after adding that user agent to the list, dont forget to clear your forum cache!
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 14, 2010, 09:13:50 AM
That is the beauty of this mod.  Someone else is detecting the device and all you need to do is adjust your UA in the admin section.  You do not need to download a new mod version for every new device since the admin can enter it themselves.  Instead you can put together a UA key list that can be typed in?
8)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: ~DS~ on April 14, 2010, 01:07:11 PM
It works but it's...ugly.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 14, 2010, 02:52:27 PM
Quote from: Dismal Shadow on April 14, 2010, 01:07:11 PM
It works but it's...ugly.
this theme was designed for Safari Mobile. on the AppStore there are tons of browser apps, we cannot fit every browser display... it would be a never ending work...
however, i tried it and it is not so bad. obviously it doesnt look the same as in safari mobile.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: butchs on April 14, 2010, 05:45:35 PM
Quote from: Dismal Shadow on April 14, 2010, 01:07:11 PM
It works but it's...ugly.

How could you not love those purry eyes?   :o
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: togume on April 14, 2010, 07:15:14 PM
Just wanted to jump in here and say thanks! I've been tracking this for a while, and finally installed it today without a problem. Nice work!

It still does not look like this has been approved. What's the deal with them!?

p.s. Opera for iPhone is not so great. Many pages don't render well on it; latest reviews are not so favorable...
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on April 15, 2010, 06:19:25 AM
Quote from: togume on April 14, 2010, 07:15:14 PM
Just wanted to jump in here and say thanks! I've been tracking this for a while, and finally installed it today without a problem. Nice work!

It still does not look like this has been approved. What's the deal with them!?

p.s. Opera for iPhone is not so great. Many pages don't render well on it; latest reviews are not so favorable...

Yeah this theme on opera displays strange.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on April 16, 2010, 07:30:10 AM
Finally the theme was approved!
HERE IT IS! (http://custom.simplemachines.org/themes/index.php?lemma=2089)

So from now on please use the following topic to talk about the SMF4iPhone Theme:
http://www.simplemachines.org/community/index.php?topic=376475

In SMF4iPhone Theme's page the SMF4iPhone Mod is available for download too, however the mod will have, when approved, it's own page on SMF Mod Site.
So, utill it is approved, we can still use this topic to talk about the SMF4iPhone Mod.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on April 25, 2010, 03:18:32 PM
I installed the new mod and got this
Quote
Parse error: syntax error, unexpected '*' in /home/h4ck3r/public_html/forum/index.php on line 133

i went into the file and the line was
} */ */

I deleted the second */ and now it's all fine but think it's a problem with the mod.

:D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on April 25, 2010, 03:20:57 PM
The new mod works alot better now though thanks!

:D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: kaamaru on April 25, 2010, 03:26:24 PM
Hey, Hacker^^. Use this topic: http://www.simplemachines.org/community/index.php?topic=376475 (http://www.simplemachines.org/community/index.php?topic=376475)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: freerunnering on April 25, 2010, 03:55:51 PM
Thanks i saw them both but only noticed that one was newer after i posted!

:D
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Mr. Jinx on April 26, 2010, 02:19:59 AM
Shouldn't this topic be locked? We have got a official topic now.
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: kaamaru on April 26, 2010, 04:54:11 AM
Quote from: Mr. Jinx on April 26, 2010, 02:19:59 AM
Shouldn't this topic be locked? We have got a official topic now.

+1
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: Fabius85 on April 26, 2010, 06:29:26 PM
we should use this thread for the mod till it is approved and so a forum dedicated topic is opened :)
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: spencerhudson on September 14, 2010, 08:26:29 AM
Is there any news on this?
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: Fabius85 on September 16, 2010, 06:12:05 AM
Quote from: spencerhudson on September 14, 2010, 08:26:29 AM
Is there any news on this?
Theme: http://www.simplemachines.org/community/index.php?topic=376475.0
Mod: http://www.simplemachines.org/community/index.php?topic=381400.0

BTW, I think that its time for a moderator to close this topic ^^
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!
Post by: ocmdiaz714 on October 03, 2012, 08:59:13 PM
Quote from: dembow on February 21, 2010, 10:03:21 AM
(http://i49.tinypic.com/nf5hl2.jpg)

here's a demo (http://noisegraphics.com/iphone) of the theme

i'll be releasing it next week   ;)

Will you ever release it? Thankz
Title: Re: All forum admins should look: SMF 2.0 iPhone and iPod Touch Theme (NOW FREE!)
Post by: mulwa on January 11, 2014, 04:26:08 PM
is there anyway i can use the curve mobile theme mod for a different theme? Pls i need help