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 25. Nov 2024, 09:16

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  [ 14 posts ] 
Author Message
 Post subject: Missing Login link
PostPosted: 27. Oct 2010, 11:01 
Offline
User avatar

Joined: 19. Jul 2010, 23:21
Posts: 13
Location: Slovenija
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

_________________
Andreo


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 11:41 
Offline
Site Admin
User avatar

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


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 11:57 
Offline
User avatar

Joined: 19. Jul 2010, 23:21
Posts: 13
Location: Slovenija
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 6925 times ]
File comment: No login link
TWG_nologin.png
TWG_nologin.png [ 84.01 KiB | Viewed 6925 times ]

_________________
Andreo
Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 12:32 
Offline
Site Admin
User avatar

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


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 13:19 
Offline
User avatar

Joined: 19. Jul 2010, 23:21
Posts: 13
Location: Slovenija
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.

_________________
Andreo


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 13:47 
Offline
Site Admin
User avatar

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


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 14:48 
Offline
User avatar

Joined: 19. Jul 2010, 23:21
Posts: 13
Location: Slovenija
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,

_________________
Andreo


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 14:52 
Offline
Site Admin
User avatar

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


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 21:13 
Offline
User avatar

Joined: 19. Jul 2010, 23:21
Posts: 13
Location: Slovenija
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

_________________
Andreo


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 27. Oct 2010, 22:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Have you turned off Javascript on Firefox?
Then of course a lot of stuff is disabled.

Best,
Michael


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 28. Oct 2010, 14:39 
Offline
User avatar

Joined: 19. Jul 2010, 23:21
Posts: 13
Location: Slovenija
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

_________________
Andreo


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 28. Oct 2010, 18:17 
Offline
Site Admin
User avatar

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


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 28. Oct 2010, 21:18 
Offline
User avatar

Joined: 19. Jul 2010, 23:21
Posts: 13
Location: Slovenija
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

_________________
Andreo


Top
 Profile  
 
 Post subject: Re: Missing Login link
PostPosted: 29. Oct 2010, 00:09 
Offline
Site Admin
User avatar

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


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 28 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