Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 24. Nov 2024, 07:54

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Login from mobile
PostPosted: 14. Sep 2012, 13:24 
Offline

Joined: 30. Nov 2010, 20:50
Posts: 16
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?


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 18. Sep 2012, 12:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 18. Sep 2012, 19:39 
Offline

Joined: 30. Nov 2010, 20:50
Posts: 16
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


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 31. Oct 2012, 14:46 
Offline

Joined: 30. Nov 2010, 20:50
Posts: 16
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


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 31. Oct 2012, 14:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 31. Oct 2012, 15:24 
Offline

Joined: 30. Nov 2010, 20:50
Posts: 16
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


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 31. Oct 2012, 16:04 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 31. Oct 2012, 18:20 
Offline

Joined: 30. Nov 2010, 20:50
Posts: 16
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


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 31. Oct 2012, 22:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
set
$twg_mobile_use_maximized_view = false;

- Michael


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 31. Oct 2012, 22:47 
Offline

Joined: 30. Nov 2010, 20:50
Posts: 16
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


Top
 Profile  
 
 Post subject: Re: Login from mobile
PostPosted: 1. Nov 2012, 01:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 35 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy