[horde] Browser Autodetection
Mark Brown
horde at marknmel.com
Mon Mar 9 10:52:53 UTC 2015
Hi Michael,
Thanks for the quick response.
Perhaps I can get a little more clarity here. I tried the
browser_modify hook using the example code:
public function browser_modify($browser)
{
// Example #1: Mark all browsers as mobile. Useful if this
// particular Horde installation is dedicated solely to serving
// mobile devices.
$browser->setMobile(true);
}
And that seems to work. I need to get a little more elegant here...
that's work for me.
You also mention Horde_Browser class - but I'm completely at a loss to
find this anywhere in the code (my Horde is at 5.2.4) - with a case
insensitive recursive grep. Is this for earlier versions of horde - or
am I missing something obvious?
Thanks
/M
On 3/8/2015 11:40 PM, Michael M Slusarz wrote:
> Quoting Mark Brown <horde at marknmel.com>:
>
>> Hi Folks,
>>
>> I have a question. I'm on Horde 5.2.4 and I'm looking for how to
>> change horde to detect my tablet browser as a mobile browser. It
>> currently thinks that it wants to use use the full horde interface -
>> which is more than I need on my tablet, and I'm looking for a way to
>> simplify it.
>>
>> I have found info for the previous versions of horde, but I think
>> there is something quite a bit different in the 5.x series. Honestly
>> - I've looked, but I cannot put my finger on what or where to change
>> this.
>>
>> Could somebody give me a hint please. Thanks!!!
>
> Either edit the Horde_Browser class to correctly identify your device
> as mobile, or use the browser_modify hook in Horde.
>
> michael
>
> ___________________________________
> Michael Slusarz [slusarz at horde.org]
>
More information about the horde
mailing list