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 29. Mar 2024, 09:42

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  [ 4 posts ] 
Author Message
PostPosted: 7. Feb 2011, 15:54 
Offline

Joined: 23. Nov 2010, 08:04
Posts: 3
Hello all,

sorry to bother you for a newbie question - please bear with me for a second. I have not yet understood on how I can set up the passwords properly.

So here is my situation
- pictures: access for user1, user2, user3
- pictures/subdir1: access for user1, user2
- picture/subdir2: access for user1, user3

My assumption was:
1. define user accounts, plus passwords. user1 being an administrator, the others just visitors.
2. in each of the 3 directories (pictures being the "pic root"), I put in a "private.txt", and in this i list the names according to my listing above, with "," as a separator
3. i set this: "$user_login_mode_hide_gal=true; $user_login_mode=true;"

but it does not work - i can not log in any of the users. what is wrong?

thx in advance

stephanie.


Top
 Profile  
 
PostPosted: 7. Feb 2011, 16:44 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The private.txt from the main folder causes the problem.

Curently you can only use a main private.txt or the ones from the subdirectories.
I have to check why they interfere.

Best,
Michael


Top
 Profile  
 
PostPosted: 7. Feb 2011, 21:22 
Offline

Joined: 23. Nov 2010, 08:04
Posts: 3
Hi,

my idea was to have one portal where *all* can log in, and then subportals where *some* of those can get in, but not others. What would be the best solution to achieve that then?


Top
 Profile  
 
PostPosted: 7. Feb 2011, 22:21 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Download 1.8.4 again and replace inc/filefunctions.inc.php.

Before the main password file was always added. But you way makes more sense to me. So now it is possible to have less access in subdirectories. Before I was reading all password files recursive till the main one. Now only to the first one found.

Have fun using TWG,
Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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