being css/html illiterate, i can't do this myself, but i'd love a theme that was nice and viewable on my iphone. if it isn't a complicated procedure i might even try it myself. is it just a css sheet, or would you need to make a new theme, and thus get into the html stuff?
1
Comments
Give me an iPhone and I'll do it
I would be tempted to just make it a new style, I would strip off the current stylesheet, and would build an iPhone one from scratch, perhaps taking the colours of the current lussumo one as a base.
Adam.
Check this example, it should be suitable for any browser and any media!
This Application Mimics an iPhone
It is supposed to render web sites exactly the same as the iPhone, it even rotates into landscape mode.
Posted: Thursday, 30 August 2007 at 7:25AM
I'm just packaging up, this was originally created by David Zhou
edit: I've updated the zip to show how to change head.php to suit.
2008-05-07
+ Added signed in status and sign in/out links
+ Added Start Discussion link
+ Added support for Start Discussion page
+ Hides Banner and Poll add-ons if you have them installed
+ Resizes inline images within comments
Thinking about the best way to make this a proper Vanilla theme.
EDIT
This could be a theme, and an accompanying addon that enables the theme when needed. (Or does the theme do that on its own?)
Check your paths
Sorry!
Anyway, I've got a work in progress of phase 2 up at: http://www.gingerbeardman.com/iphone/
Phase 2
Thinking about how the forum would best work as an iPhone web app (more on this below)
Coding up all the templates (what I've been doing this afternoon, using Joe Hewitt's iUI library)
Making a proper Vanilla theme (adding all the Vanilla php into the templates, the most difficult bit)
Making an associated extension to activate the theme only when iPhone is detected (to work best with Vanilla)
Pros
A more iPhone-like experience
Easier installation and maintenance
Better for the Vanilla community - everybody can use it!
A more iPhone-like experience
Cons
May not support older mobile phones as well as the current iPhone hack
(there may be some way of running something like both of them)
Thoughts
I think the things that are left out of this mobile version are as important as the things that make it in: do we need "new post count" and "last comment by" when an updated topic is already in yellow? Do we need the Categories section? I've left these both out.
It's also worth looking at how topics work: it makes more sense to display most recent comment at the top, to reduce the amount of scrolling needed. Also, I've taken the recommended approach of adding an option to grab older comments on request, rather than automatically.
Let me know what you think.
I'm frequently updating the work/test version, though...
Enjoy the sun!
I think something like this would work (though I haven't tried it out):
<?php if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod')) { echo "Some Stuff Here"; } ?>