Pages (9):    1 5 6 7 8 9   
Member
Member
micheall   04-11-2010, 07:41
#61

a quick question on this:

your install instructions say to unzip it to the zp-extensions folder, did you mean the root/plugins folder? if not, putting it in zp-extensions will likely cause it to be deleted if a user upgrades their gallery as zp has migrated away from this creating a user plugin folder located off root directory

Member
Member
gdodinet   04-11-2010, 09:53
#62

Thanks, i missed that (although i now remember reading it). I've updated the instructions as per your advice.

Administrator
Administrator
acrylian   04-11-2010, 10:23
#63

All third party plugins should go into the plugins folders.

I will create an extensions entry for this later. Please try to keep the plugin page persistent, I yesterday had to fix the links to all your themes as the direct links vanished. Note we don't check these regulary.

Member
Member
gdodinet   05-11-2010, 00:31
#64

Hi, Acrylian,

Sorry about that. I will try to keep the links persistent.

Thanks

Member
Member
wirecutter   06-11-2010, 18:24
#65

hmmm.. ok. downloaded the theme and it doesn't seem to be working for me. I was using the iphone theme and the hacked functions.php. I restored the original functions.php and installed the mobile_theme_filter. (I did not install the detectmobile browsers script.) I activated the plugin and configured it. I selected the iphone theme as the mobile theme.
From my iPhone 4, It's not bringing up the iphone theme. It's showing as the regular gallery theme.

Any troubleshooting tips?

Member
Member
wirecutter   06-11-2010, 21:40
#66

ok. so it does work if I install the detectmobile browsers script. So the fallback implementation isn't working. Looking into that now...

Member
Member
gdodinet   07-11-2010, 13:10
#67

Hi, wirecutter.

Thanks for reporting this. I can reproduce the problem you describe (using firefox ua-switcher). The problem is located at line 142. You should replace getOption(MobileThemeFilter::$iphone) === true with getOption(MobileThemeFilter::$iphone). I will update the plugin asap.

Regards

Member
Member
wirecutter   08-11-2010, 02:04
#68

Hello again,
I came across a couple free alternatives to the detectmobile browsers script but just decided to carry across what I had in my previously hacked function.php file.

If anyone is interested:
http://blog.mobileesp.com/
http://wurfl.sourceforge.net/

I ended up rewriting th emobi_detectmobilebrowsers function. My version is below:

`

function mobi_detectmobilebrowsers($ballot) {

//http://zytrax.com/tech/web/mobile_ids.html

//http://my.opera.com/community/openweb/idopera/

    $UA = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "";

    if (getOption(MobileThemeFilter::$iphone)) {

        $ballot->vote(strchr($UA, 'iPhone') ? true : false);

    }

    if (getOption(MobileThemeFilter::$windows)) {

        $ballot->vote(strchr($UA, 'Windows Mobile') ? true : false);

        $ballot->vote(strchr($UA, 'Windows CE') ? true : false);

        $ballot->vote(strchr($UA, 'Windows Phone') ? true : false);

    }

    if (getOption(MobileThemeFilter::$blackberry)) {

        $ballot->vote(strchr($UA, 'Blackberry') ? true : false);

    }

    if (getOption(MobileThemeFilter::$android)) {

        $ballot->vote(strchr($UA, 'Android') ? true : false);

    }

    if (getOption(MobileThemeFilter::$operamini)) {

        $ballot->vote(strchr($UA, 'Opera Mini') ? true : false);

    }

    if (getOption(MobileThemeFilter::$operamobile)) {

        $ballot->vote(strchr($UA, 'Opera Mobi') ? true : false);

    }

    if (getOption(MobileThemeFilter::$ipad)) {

        $ballot->vote(strchr($UA, 'iPad') ? true : false);

    }

}

`

Member
Member
gdodinet   09-11-2010, 22:35
#69

Hi wirecutter,

Thanks for providing this implementation and those links. I will try to integrate your code this week-end, if you don't mind.

Regards

Member
Member
omatzyo   20-11-2010, 14:13
#70

Hi! Nice work guys!! I've never been comfortable with the way that worked. Looks like you're close to a great solution. Once you're happy with your code, I'll update the zenphotoiphone page with links.

Thanks again!

Pages (9):    1 5 6 7 8 9   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.