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

Missing Login link
https://www.tinywebgallery.com/forum/viewtopic.php?f=1&t=2764
Page 1 of 1

Author:  andreo29 [ 27. Oct 2010, 11:01 ]
Post subject:  Missing Login link

Hello.
From last upgrade (from 1.8 to 1.8.2 version of TWG) I noticed that on my first page Login link in upper right corner is missing. Actually only language flags appears and an Upload link.
I can login through Admin page by administrator user name normally and than when I return to first page (by clicking on the admin page link) the Login link appears and I can login to TWG with different username normally.

Is there any configuration variable which regulates this behavior and I disconfigured it by accident?

Thanks in advance.

Andreo

Author:  TinyWebGallery [ 27. Oct 2010, 11:41 ]
Post subject:  Re: Missing Login link

check the $show_login Parameter. This can be set in the administration as well.

Of do you mean $show_public_admin_link? The link to the administration?
This link is only shown on the main page - in subdirectories the upload link is shown.

- Michael

Author:  andreo29 [ 27. Oct 2010, 11:57 ]
Post subject:  Re: Missing Login link

Thanks for fast replay.

Yes, I have set $show_login to true in config.php file.
I attached what is exposed on my main (first) page - file TWG_nologin.png. No login or Admin link at all.
On second file TWG_normal.png is seen what I expect to be. What is seen in the second picture I got with this procedure:
I login directly to admin page (.../twg/admin/index.php) and than click to "Back to TWG" link. Than I got Login link etc.

Is there something else I missed?

Thanks in advance.
Best regards,

Attachments:
File comment: With link shown
TWG_normal.png
TWG_normal.png [ 73.13 KiB | Viewed 5738 times ]
File comment: No login link
TWG_nologin.png
TWG_nologin.png [ 84.01 KiB | Viewed 5738 times ]

Author:  TinyWebGallery [ 27. Oct 2010, 12:32 ]
Post subject:  Re: Missing Login link

config.php is only the basic config file.
interesting is what you have in my_config.php.

See: http://www.tinywebgallery.com/en/configuration.php

- Michael

Author:  andreo29 [ 27. Oct 2010, 13:19 ]
Post subject:  Re: Missing Login link

In my_config.php I do not have that parameter. Do I need to move it from config.php into my_config.php?
I suppose that TWG first read config.php and than read file my_config.php. Settings from my_config.php overwrites settings from config.php. Am I right?

Best regards.

Author:  TinyWebGallery [ 27. Oct 2010, 13:47 ]
Post subject:  Re: Missing Login link

No.

If you have checked in the administration that only changed values are saved this setting is not saved there.
Then the value from config.php is used.

Then this is really strange because this is the only setting that triggers this. What does happen if you only show a few language flags - seems a lot of space is used for this.

- Michael

Author:  andreo29 [ 27. Oct 2010, 14:48 ]
Post subject:  Re: Missing Login link

Well I saved manually - directly on server but I double checked if something is missing or wrong: The original config.php file differ only in some variables like e-mail etc.
You want to tell me that language flags overwrite other links. Yes, sounds possible. But why language flags are not in dropdown list as expected? I have configured $show_languages_as_dropdown=true in my_config.php and in config.php file!

How can I remove additional languages? Is there enought to directly remove language files from their folder or I need some additional steps to?

Best regards,

Author:  TinyWebGallery [ 27. Oct 2010, 14:52 ]
Post subject:  Re: Missing Login link

looks like you get a different confiuration from somewhere. Because the default is to have the flag in a dropdown.
Do you have a custom config.php in a folder?
Have you maybe downloaded on of my examples?

Just remove the languages you don't like from the language folder.

- Michael

Author:  andreo29 [ 27. Oct 2010, 21:13 ]
Post subject:  Re: Missing Login link

Hello Michael again.
Thank you for yours really fast replays.

Well, I did some tests:
With IE 7 I have no problems. All working just fine. Languages are in drop-down list, all link are visible. Also Info link on a picture gallery exists!

With Firefox it is completely different story. The gallery is some-kind of unstable. I did not found the rule when it breaks. Sometimes the first page is OK and after a few clicks suddenly menu is missing and languages are not exposed as drop-down list any more. After that only Firefox restart helps or navigation directly to admin page, returning back to TWG page, logout and login.

I was searching through php code and I found in a file inc/setspecials.inc.php these lines:
Code:
if (isset($_SESSION['twg_nojs'])) { // no jacascript - we turn off lots of stuff
        ...
   $show_languages_as_dropdown = false;
        ...

Is there maybe a problem with Firefox on which suddenly Java Script is not detected?

If help: I run TWG on a Windows XAMPP web server and browsers on Windows systems.

Thanks in advance.

Best regards,
Andreo

Author:  TinyWebGallery [ 27. Oct 2010, 22:02 ]
Post subject:  Re: Missing Login link

Have you turned off Javascript on Firefox?
Then of course a lot of stuff is disabled.

Best,
Michael

Author:  andreo29 [ 28. Oct 2010, 14:39 ]
Post subject:  Re: Missing Login link

Hello Michael.

Thanks for replay.

No, I didn't turn off Java script at all. I understand that if Java Script is disabled many things get disabled too.
I just wondering because I found in previous post function which set mentioned variable about drop-down language list.

Is it possible that TWG in one moment "ask" browser about browser's information and wrongly set JavaScript capability (I mean: maybe Firefox wrongly reports about JavaScript or TWG set to false because some other strange information)? Is it possible?

I'm just asking is it possible that TWG read also config file with name "config1.php". It was made as a backup copy of config.php. Does TWG read all config*.php files?

Best regards,
Andrej

Author:  TinyWebGallery [ 28. Oct 2010, 18:17 ]
Post subject:  Re: Missing Login link

it only reads config.php, my_config.php, config_internal.php and configs with a language. e.g. config_de.php

A lot of stuff is disabled in low bandwidth mode as well. if the bandwidth icon is red.
I develop with firefox. So this is the most tested one...

- Michael

Author:  andreo29 [ 28. Oct 2010, 21:18 ]
Post subject:  Re: Missing Login link

Oh, maybe should be really bandwidth the problem. I clicked on that icon when dropdown list disappeared and I got menu back.
Thank you for hint.

Best regards,
Andreo

Author:  TinyWebGallery [ 29. Oct 2010, 00:09 ]
Post subject:  Re: Missing Login link

you can disable the low bandwidth mode if you like.

I'm currently enhancing the mobile mode that the gallery looks good on mobiles as well. Removing the stuff noone can read anyway on small displays ;).

- Michael

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