Skip to:
Content
Pages
Categories
Search
Top
Bottom

Blackberry 9800 Torch (and others)

  • I was trying your plugin with my BP site with my new Blackberry 9800 Torch and it wasn’t working. I took a look at the plugin code and noticed that the string you are looking for was:

    “blackberry9800″

    OS6 introduced webkit to Blackberry devices and also changed the format of the user-agent string. For the Torch 9800 it’s:

    Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en) AppleWebKit/534.1+ (KHTML, Like Gecko) Version/6.0.0.141 Mobile Safari/534.1

    I fixed my install by making the matching string to be “BlackBerry 9800″ rather than “blackberry9800″.

    That said, I wonder if it wouldn’t be better to avoid all the complexities of model numbers etc. and key in on what really makes your plugin work… AppleWebKit. All the phones that will look good with your plugin (designed for the iPhone) will have the string “AppleWebKit” in their user agent, even the iPhone itself. Maybe you should just look for that string and remove the array of strings to compare? Just a thought.

    Thanks for the great plugin!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    True, but I wanted to give people the option to remove a certain string. Mostly iPad or and other tablet that comes out.

    fair enough… I may have glossed over the real bug here which is that “blackberry9800″ which is what you look for in as late as 1.05 won’t work. You need to change it to “Blackberry 9800″ with the space.

    Avatar of ifanatics
    ifanatics
    Member

    @ifanatics

    Thanks for pointing this out. Do you know if this is the case for all of the other BlackBerry devices listed? I’m getting reports that it is not working for any BlackBerries.

    Thanks.

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    I have never tested on BB devices. A few use webkit browser engine and those should work.

    Avatar of ifanatics
    ifanatics
    Member

    @ifanatics

    So, to do this properly, just add “AppleWebKit” to the list in buddypress-mobile.php?

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Maybe, I wouldn’t use that as it will show mobile on iPad and on iPad you do not need a mobile site.

    If it doesn’t work on a device it’s probably not supported. I’ve added the devices that should work.

    Avatar of Myne Whitman
    Myne Whitman
    Member

    @myne-whitman

    This thread is so useful!

    I’ve been trying for ages to get this to work with blackberry 8520 curve
    can anyone help with this please?

    @modemlooper great to see you back on this man !!!

    Avatar of @modemlooper
    @modemlooper
    Moderator

    @modemlooper

    Go into BuddyPress-mobile.php

    Add “blackberry 8520″ to list of devices

    got it..finally!!

    had to put it in with no gap like: “blackberry8520″

    ok, so now I gotta make that new bp-mobile page in the admin dash right..?

    for now I only have a login option and a menu that aint working yet.

    soooo glad to at last get this bad boy hooked up :)

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.