[Mediawiki-l] MediaWiki-l Digest, Vol 43, Issue 21

Ronald Chan ronalchn at gmail.com
Fri Apr 6 21:36:20 UTC 2007


Just use in localsettings.php:

if ($_SERVER['HTTP_USER_AGENT'] == "Put the browser that the Treo device
uses here") $wgDefaultSkin = 'skin for mobile device';
else $wgDefaultSkin = 'normal pc skin';


On 4/7/07, *"Jim Wilson" **wilson.jim.r at gmail.com*
<wilson.jim.r at gmail.com>wrote:
>
>
> You could modify the skin slightly to include a <link> to a stylesheet and
> set media="handheld".
>
> Phones, PDA's and other handheld devices will load these stylesheets while
> other types of clients will not.
>
> Opera has a good handheld emulation mode which can be useful in testing
> your
> handheld device specific stylesheets.
>
> Good luck!
>
> -- Jim R. Wilson (jimbojw)
>
> On 4/6/07, Mr Scsi <mrscsi at gmail.com> wrote:
> >
> > Is anyone aware of any plugins or at this point I'd even think about a
> > hack,
> > to implement any kind of format conversion?
> > I am trying to figure out a way to deliver our internal wiki content to
> > our
> > outside reps on a Treo device.
> >
> > I am not aware of any apache mods that could do this, so I'm thinking an
> > extension or maybe even a skin?
> >
> > Is there a way to tell mediawiki to use a different skin based on
> browser
> > type?
> >
> > I am really having a hard time wrapping my brain around how to do this,
> so
> > I
> > welcome any and ALL suggestions.
> >
> >
> > TIA
> >
> > Andy.
> >


More information about the MediaWiki-l mailing list