Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

How to modify/disable mobile mode?
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3627
Page 1 of 1

Author:  KayM [ 3. Jan 2014, 14:48 ]
Post subject:  How to modify/disable mobile mode?

Hi,

id like to disable mobile mode for some for some galleries (directories) i.e. with video.

I also like to enable dektop features like Background and repsect of x,y setting in menu pages and menu (rating, comment) in mobiel version. so it looks similar to the desktop Version, but with gestures and fullscrenn viewer.

Is there an explanation of the relevant parameters?

kay

Author:  TinyWebGallery [ 3. Jan 2014, 19:30 ]
Post subject:  Re: How to modify/disable mobile mode?

You can always use a config.php in a folder directly. There you can configure what you want.
See http://www.tinywebgallery.com/en/faq.php#h17
Options for the mobile mode can be found in the config_internal.php.

They also can be overwritten in a custom config.php.

Best, Michael

Author:  KayM [ 4. Jan 2014, 12:45 ]
Post subject:  Re: How to modify/disable mobile mode?

Hi Michael,

the only mobile specific setting I found in config PHP is:

$icon_set_mobile='mobile';

Did I miss something?
my problem is that twg ignores standard Parameters from my_config.php if a mobile browser is detected and it seems not possible to override this.
OK, I can switch to Dektop mode in mobile browser an it looks like (is the same) as on PC, but then the swipe gestures in general an in (auto) fullscreen mode are gone.

Additionally I found the following posting about config for mobile mode:
http://www.tinywebgallery.com/forum/php-fotogalerie-support-f7/einstellungen-fur-mobile-browser-t3550.html?hilit=config.php%20mobile#p19631

where ist written about inc/setspecials.inc.php and she section twg_mobile. Do I have to modify global setting for mobile mode here?

I was more hoping about some (many :-) additional standard parameters with an "mobile" prefix (postfix?), like:
$mobile_menu_x= 5;
$mobile_menu_y= 10;
$mobile_thumbnails_x= 6;
$mobile_thumbnails_y= 10;
$mobile_number_top10= 21;

Kay

Author:  KayM [ 4. Jan 2014, 13:34 ]
Post subject:  Re: How to modify/disable mobile mode?

Hi again,

ok there are some mobile parameters like I suggested, I found them now in inc/setspecials.inc.php.

$twg_mobile_menu_x;
$twg_mobile_menu_y;
$twg_mobile_show_breadcrumb;
$twg_mobile_show_menu_items;
$twg_mobile_show_menu_items;
$twg_mobile_show_rating;
$twg_mobile_show_comments;
$twg_mobile_show_big_navigation;
$twg_mobile_use_maximized_view;

I know you know them better than me, but I write them down here as a reference for me an ohterh looking for them.
May be you can make an FAQ entry about the available mobile Parameters from this.

Kay

Author:  KayM [ 4. Jan 2014, 13:55 ]
Post subject:  Re: How to modify/disable mobile mode?

Hi 3,

with his parameters I can solve most of my whishes. I add the extra parameter

$show_background_images = $twg_mobile_show_background_images;

at the end of the twg_mobile section to control also showing of the background image in Mobile mode.
May be something similar can be included in an upcomming release.

Kay

Author:  TinyWebGallery [ 4. Jan 2014, 21:48 ]
Post subject:  Re: How to modify/disable mobile mode?

Kay.

You should have looked in the file I have written on my last post:
config_internal.php. There are the mobile settings.

twg_mobile_show_background_images is not an existing parameter. So I don't understand what you mean...

Best, Michael

Author:  KayM [ 5. Jan 2014, 10:27 ]
Post subject:  Re: How to modify/disable mobile mode?

Hi Michael,

you're totally right, I shoud read your posts twice or more :-(.
I stopped reading at "config" and totally overlooked "internal", sorry.

One last question about mobile mode:

Is low bandwith always enabled for mobile devices?
Even if I'm on WLAN or HSDPA+ it looks like some low bandwith settings are active.

Kay

Author:  TinyWebGallery [ 5. Jan 2014, 19:39 ]
Post subject:  Re: How to modify/disable mobile mode?

yes - if you remove
$lowbandwidth = true;
in loadconfig.inc.php than lowbandwidth is not used anymore.

This is done because many of the low bandwidth options do make sense for mobile also.

Best, Michael

Author:  sabahat [ 7. Nov 2014, 11:25 ]
Post subject:  Re: How to modify/disable mobile mode?

Wow, lots of great info in there. Thanks for taking your time to do that.

Author:  dzano [ 15. Feb 2015, 09:40 ]
Post subject:  Re: How to modify/disable mobile mode?

Is there any way to completly disable mobile mode?
I edited config.php - $enable_mobile_detection = false; but nothing has changed. On mobile devices always goes to mobile mode.
Pls help me, how to do it.

Thank you

Author:  TinyWebGallery [ 15. Feb 2015, 21:48 ]
Post subject:  Re: How to modify/disable mobile mode?

Just checked the code.

You cannot disable this right now because I added this switchin the old browser detection. the new browser detection is not checking this flag yet. I'll make an update tonight.

Best, Michael

Author:  dzano [ 16. Feb 2015, 20:19 ]
Post subject:  Re: How to modify/disable mobile mode?

Thanx...

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/