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

Unable to disable cache access by guest and iPhone login
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=3101
Page 1 of 2

Author:  rickywk [ 11. Sep 2011, 11:29 ]
Post subject:  Unable to disable cache access by guest and iPhone login

Hi!

I did setup those two parameters in config.php to disallow guest user access my cache photo:

$disable_direct_thumbs_access=true;
$use_direct_small=false;

But I found that it's not work for me...could you mind help with me..?

Also I found out iPhone cannot login to my TWG Album, is it normal?

Author:  TinyWebGallery [ 11. Sep 2011, 19:01 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

What does not work? An error description would be helpful.

And do you use a .htaccess to protect the cache folder!
And please be aware that the whole server uses much more power because for each image an php instance is opened.

And what does not work with the iphone? An error description would be helpful.

- Michael

Author:  rickywk [ 13. Sep 2011, 12:23 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

Hi!

For the iphone issue, you can reference the screen cap., which showing no login link...

For the cache, I running TWG in IIS environment, any hints for the disable cache setup?

Attachments:
fr_231.jpg
fr_231.jpg [ 62.24 KiB | Viewed 5767 times ]

Author:  TinyWebGallery [ 13. Sep 2011, 12:42 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

In the mobile mode the menu items are reduced by default.

If you want them on a mobile device as well set:
$twg_mobile_show_menu_items=true;
in the config.

I still don't understand your cache issue.

- Michael

Author:  rickywk [ 13. Sep 2011, 14:04 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

E.g.
I set the album as private, but the guest(public) is still able to access my album in following way:
http://hk235m.homeserver.com/twg/cache/ ... .small.jpg

For the mobile view, I placed the variable in config.php, but still unable to see the login button

Attachments:
config.jpg
config.jpg [ 21.57 KiB | Viewed 5766 times ]

Author:  TinyWebGallery [ 13. Sep 2011, 14:26 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

About your data:
http://www.tinywebgallery.com/en/faq.php#h1

wrong file! Never modify config.php (see http://www.tinywebgallery.com/en/configuration.php)
Use my_config.php or the administration like described in the link.

- Michael

Author:  rickywk [ 13. Sep 2011, 15:03 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

Hi,

Thx!
Now iPhone got the login button after I put the variable in the my_conf.php, but cache still able to access by public...

Did I still miss anything?

Author:  TinyWebGallery [ 13. Sep 2011, 15:07 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

http://www.tinywebgallery.com/en/faq.php#h1 -> 4.

- Michael

Author:  rickywk [ 13. Sep 2011, 15:40 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

Hi!

My server is IIS, which is no .htaccess file or 770 file concept...

Author:  TinyWebGallery [ 13. Sep 2011, 16:20 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

This is problem google can solve easily:
e.g .http://www.hosting.com/support/dedicate ... ordprotect

- Michael

Author:  rickywk [ 13. Sep 2011, 17:03 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

Hi..

Disable anonymous authentication is workable for pictures folder, but if I apply same setting, the logged user cannot preview the pic, until the user view it in full screen mode, is that TWG original design?

Attachments:
twg.jpg
twg.jpg [ 21.52 KiB | Viewed 5758 times ]

Author:  TinyWebGallery [ 13. Sep 2011, 17:36 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

No - where have you set

$use_direct_small ?

- Michael

Author:  TinyWebGallery [ 13. Sep 2011, 17:42 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

I just tested and it was really slow (because the image has to be generated each time) but was working fine.

Can you post the url of the image that fails? If you have a plugin that shows brocken image links like webdeveloper it's easy to find out.

- Michael

Author:  rickywk [ 14. Sep 2011, 15:46 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

Here you go:
http://hk235m.homeserver.com/twg/index. ... twg_show=x

User name: ricky
Password: 123456

I put the "$use_direct_small=false;" inside my_config.php

Author:  TinyWebGallery [ 14. Sep 2011, 17:15 ]
Post subject:  Re: Unable to disable cache access by guest and iPhone login

o.k. - the problem is that the method to replace the image with AJAX does not use $use_direct_small=false;
I have to check if I forgot to support this...

As worakround you can use the html Navigation.

- Michael

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