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. Apr 2024, 18:01

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  [ 20 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 10. Jan 2009, 04:39 
Offline
User avatar

Joined: 10. Jan 2009, 04:32
Posts: 11
Location: Massachusetts
Hi,
I'm having an issue with the $user_login_mode_hide_gal=.
I tried putting in $user_login_mode_hide_gal="true";
and also the gallery name in the quotes, but the private gallery's still show when I'm not logged in.

What would be the proper syntax for this.
I tried the faq and did a search here, but I am still confused.

Awesome gallery btw, I've manage to find all the little tweaks that I wanted to add. This app has so many features.


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jan 2009, 09:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you have to set

$user_login_mode_hide_gal=true;

and enable the user login mode
$user_login_mode = true;

And the album has to be private of course (private.txt with username in it).

- Michael


Top
 Profile  
 
 Post subject: Thanks
PostPosted: 10. Jan 2009, 12:05 
Offline
User avatar

Joined: 10. Jan 2009, 04:32
Posts: 11
Location: Massachusetts
Wow that was a quick reply, I think I'm going to like it here!!

But thanks, I knew I was missing something. I didn't add the $user_login_mode = true; , but I had everything else.

ok, so thats fixed, but how do you add all users that should have access to the private.txt? I understand putting the password on the first line and seperating passwords with commas, how do you differentiate the passwords from the users? That part is still unclear.

I still have some minor css related stuff and I have to read through making it
a little quicker loading, but other than that I'm just about done with the set-up.

Thanks for the help, and my gallery is here if you wanted to poke around:
#removed_broken_link


Top
 Profile  
 
 Post subject:
PostPosted: 10. Jan 2009, 22:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you put user names in the private.txt.

You have either the user login mode or the "old" password mode. You cannot mix them. You have to decide which way you prefer.

About the speed. Have your read the howto about it. It seems you have turned on the main cache already. I don't know how fast your webspace is.

How many images are in the gallery? I only tested up to 200.000 images ;).

- Michael


Top
 Profile  
 
 Post subject: oh
PostPosted: 10. Jan 2009, 22:38 
Offline
User avatar

Joined: 10. Jan 2009, 04:32
Posts: 11
Location: Massachusetts
oh ok, now I understand. :oops:

Yup, I've read though and made some changes and the speed seems ok.
I have the advantage of hosting on my own home server which is an old
dual p2 350 with 512 megs of ram. I'm running Windows server with Abyss web server. That old work horse has been running my website for 7-8 years with no problems.

I only have a couple of hundred images so far.

Thanks for the reply's, I really appreciate it!!


Top
 Profile  
 
 Post subject: hidden/invisible folder
PostPosted: 4. Aug 2009, 05:18 
Offline

Joined: 3. Aug 2009, 11:38
Posts: 6
After read through How-to #12 and the post here, I still having problem to hidden the album.

I have created some subfolders called "testing", "testing1", "testing2" under the parent folder called "Photos"
I would like the user A can view all the subfolders album once he logined in while the other users can view "testing1" and "testing2" only (no matter login or not)
That means all the users can "testing1" and "testing2" folders while "testing" is hidden/invisible (not a lock on ablum)

I have created a config.php inside the folder "testing" with
$user_login_mode_hide_gal=true;
$user_login_mode=true;
Also, I have created a private.txt with User A password inside the folder "testing" as well.

However, I can only see a "locked" album of "testing" instead of invisible/hidden when a guest reached the "Photos" folder.

Did I missing out something or did something wrong?


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 07:00 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
in the private.txt only the user name has to be stored. Not the password.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 07:51 
Offline

Joined: 3. Aug 2009, 11:38
Posts: 6
Hi,
It still not working :(
Ok. I'm using the default folders to do the testing.
I'm using Mexico 2005 as testing folder
I have created a config.php inside the Mexico 2005 folder and modified the default private.txt of that folder
The content in the config.php is shown below (only 2 lines):
$user_login_mode_hide_gal=true;
$user_login_mode=true;

the contect in private.txt is show below (only 1 line):
admin

I have cleared all the cache image in the server as well as the PC.
I just reload the page and I can still see the Mexico 2005 album.
However, I want the Mexico 2005 album invisible until admin login


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 07:55 
Offline

Joined: 3. Aug 2009, 11:38
Posts: 6
Did I mis-unstanding invisible/hidden folder feature.
I believe the Mexico 2005 folder will not shown up instead of locking up with the setting mentioned above


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 08:35 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
have you put thin in the config.php of the mexico folder?

Because this is read when you go into the folder. you need to put this in e.g.
my_config.php

I just tested with

$user_login_mode_hide_gal=true;
$user_login_mode=true;

and it work fine with TWG 1.7.8

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 09:14 
Offline

Joined: 3. Aug 2009, 11:38
Posts: 6
Well, it still not working.
I have done the following:
download twg178 and unzip it
chmod to 777 for certain files according to the installation check
create my_config.php in Mexico folder with
$user_login_mode_hide_gal=true;
$user_login_mode=true;

add admin in private.txt

You can have a look the result in #removed_broken_link


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 09:17 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
the config not in the mexico folder!

this setting is needed before! therefore it has to be in the main my_config.php

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 09:22 
Offline

Joined: 3. Aug 2009, 11:38
Posts: 6
oh. i get it. many thanks for your help.


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 09:37 
Offline

Joined: 3. Aug 2009, 11:38
Posts: 6
BTW, I wanna to check whether below is normal:
After login, I can see the Mexico folder and the lock on the right bottom corner is opened. If I just logout by clicking the "Logout" at top right corner, the Mexico folder will still visible until I press the lock on the right bottom corner of Mexico folder, right?

Or the Mexico folder will automatically hidden again if i just click "Logout"?


Top
 Profile  
 
 Post subject:
PostPosted: 4. Aug 2009, 21:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
no - you have to click the lock to lock the album.

- Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 40 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:
powered by phpbb | Datenschutz/ Privacy policy