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

Login from mobile
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3412
Page 1 of 1

Author:  BS33DK [ 14. Sep 2012, 13:24 ]
Post subject:  Login from mobile

Hi Michael

I am having some problems with the login from my old windows phone.
Actually when entering my twg site, I do not get any menu buttons and no login button.
I have made a workaround puttin a admin link in footer.htm and this works for my user.
But I dont like that solution for non admin users.

Im am using TWG ver. 1.8.8
and these additional settings:
$user_login_mode=true;
$user_login_mode_hide_gal=true;
$twg_mobile_show_menu_items = true;
$show_login=true;

Edit: Its seems to work fine from a friends Samsung Galaxy S2. So I will update my phone in order to make it work...
However I was only able to see the "picture.jpg.thumb.jpg"s from SGS2. When selecting one SGS2 would return a blank screen instead of the "picture.jpg.small.jpg"
Have I missed something there?

Author:  TinyWebGallery [ 18. Sep 2012, 12:25 ]
Post subject:  Re: Login from mobile

TWG has special settings if it detects a mobile device.

so the
$twg_mobile_*
settings from config-internal.php are used.

If you friend has a S2 and sees everything then he most likely hast changed the user agent string to a desktop device.
I have a S2 as well and different browsers where I can test both modes.
I will optimize the gallery (especially the iframes wher you enter something) in further releases :).

Best, Michael

Author:  BS33DK [ 18. Sep 2012, 19:39 ]
Post subject:  Re: Login from mobile

Hi again
My old phone uses ie6, so it is very understandable that is not supported!
I am planning to upgrade both phones in the house. So that I can do some testing.
When I have done so, I will reopen this tread if I encounter some trouble.
Until then...
Thank you very much for your outstanding support :-)
BR

Author:  BS33DK [ 31. Oct 2012, 14:46 ]
Post subject:  Re: Login from mobile

Hi again
I have now updated phones, so that i have a SGSII and a SGSIII.
When i access my gallery I login and then i choose a folder. In that folder i see all the "picture.jpg.thumb.jpg" thumbs. This is very nice.
However when i tap on a thumb, twg loads the "picture.jpg"
I think it should load "picture.jpg.small.jpg" as all my pictures is DSLR pictures (8MB) and twg therefore seems slow.
Is there some way for me to choose to load "picture.jpg.small.jpg" and slide in this level
Thanks

Author:  TinyWebGallery [ 31. Oct 2012, 14:52 ]
Post subject:  Re: Login from mobile

Are you sure the the full image is loaded?
Because in mobile mode I render for the fullscreen a image for this resolution.
If you like to get on the default image screen you have to set this in the config.

Best,
Michael

Author:  BS33DK [ 31. Oct 2012, 15:24 ]
Post subject:  Re: Login from mobile

Hi
Yes, I am sure. I replaced and renamed some of my cache images but i still get the "correct" full image!
------------------------------
This is my Additional settings!
$show_iptc_data=true;
$enable_frontend_upload=true;
$default_language='da';
$show_count_views=false;
$show_counter=false;
$show_tips_overview=false;
$show_tips_thumb=false;
$show_tips_image=false;
$use_cache_with_dir = true;
$store_xml_in_picfolders=true;
$sort_albums_ascending=false;
$user_login_mode=true;
$user_login_mode_hide_gal=true;
$twg_mobile_show_menu_items=true;
$show_login=true;
$show_help_link=false;
------------------------
config.php look like this:
<?php
defined('_VALID_TWG') or die('Direct Access to this location is not allowed.');

$image_file_extension = "php";
$image_txt_position="side";
$use_round_corners = false;
$show_caption_on_thumbs = true;
$enable_dir_description_on_image=true;
$skin='';
?>
------------------------
What do you mean by default image screen, and is there anything else I should enable?

Thanks

Author:  TinyWebGallery [ 31. Oct 2012, 16:04 ]
Post subject:  Re: Login from mobile

The dynamic image is not cached because it can be different depending on every resolution.
So it is calculated every time.

So changing the cache image is no valid test.

If you don't want to go into the fullscreen mode directly use:
$twg_mobile_use_maximized_view = false;

Best,
Michael

Author:  BS33DK [ 31. Oct 2012, 18:20 ]
Post subject:  Re: Login from mobile

OK
So the reason twg seems slow on mobile phone is that the server has to generate cache for every view, everytime?
I have used some "picture.jpg.small.jpg" on my facebook. When I open that gallery on my mobile I get fullscreen pictures and a very fast load time.
Is it not possible to have my mobile open and show this level (*.jpg.small.jpg). As I do in my browser on my PC?
BR

Author:  TinyWebGallery [ 31. Oct 2012, 22:02 ]
Post subject:  Re: Login from mobile

set
$twg_mobile_use_maximized_view = false;

- Michael

Author:  BS33DK [ 31. Oct 2012, 22:47 ]
Post subject:  Re: Login from mobile

Hi Michael
$twg_mobile_use_maximized_view = false;
is not what i am looking for, sorry!
I like the view and the feeling of the fullscreen mode. Its just the load times that bothers me!
After some testing I see that you are right (Of course) It is not the full sized image that I see.
So how does this work? And how to speed up performance?
When i request a picture from my mobile, my server generates a cache image on the fly and deletes it again when I leave that image.
Is this correct?

Thank you very much for your patience!
BR

Author:  TinyWebGallery [ 1. Nov 2012, 01:25 ]
Post subject:  Re: Login from mobile

The file is not even cached on the server.
It is sent to the server directly.

Problem is the caching. Because if I save a cache image for every width I will save many, many images which maybe will used only once.

Possible solutions:
- Don't use such big originals -> rendering is faster
- Depending on the browser resolution maybe the cache image is sent and then resized dynamically by the browser. This makes the image a little less sharp but the resize of the small cache images are normally fast. But where to set the boundaries?

If you have a good idea please let me know.

For TWG 2.0 I want to support mobile devices much better with e.g. special menus and so on...

Best, Michael

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