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 20. Apr 2024, 12:37

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  [ 31 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject:
PostPosted: 9. Sep 2006, 07:11 
Offline

Joined: 16. Aug 2006, 05:05
Posts: 11
aaah you mean to put that in the additional settings in the TWG config page. got it :D thanks


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2006, 07:12 
Offline

Joined: 16. Aug 2006, 05:05
Posts: 11
now if only i could get rid of that middle button :D


Top
 Profile  
 
 Post subject:
PostPosted: 9. Sep 2006, 07:54 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
search for

$show_up_button = true;

in the navpath.inc.php and set both settings to false.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jul 2007, 18:31 
Offline

Joined: 16. Jul 2007, 22:46
Posts: 25
This works good. Unfortunately it's a system-wide setting.

What I would love to do is define some sort of 'root' directory that stops the user from going up more than he is allowed to

Example:
/pictures/Holiday
/pictures/DinnerWithCustomer
Both galleries don't have viewing restrictions but I wouldn't want my customers to go 'up' and view my Holiday pictures (as an example).

Now you can define the root.txt file that stops them from using the 'Galleries' link to checkout your other pictures but they still can click 'up' until they get to that gallery.


Any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: 25. Jul 2007, 22:57 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
the problem is that with root.txt you can restrict the users to get the buttons - but never that they simply change the url at the top!

e.g.
http://www.tinywebgallery.com/demo/inde ... twg_show=x

there are no buttons to get up - but you can still modify the url ...

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2007, 10:58 
Offline

Joined: 16. Jul 2007, 22:46
Posts: 25
I realize that if people know the URL they will get there. If they're that smart they may see all of my pictures. This is just for the typical "dont-know-what-this-is-lets-click-it"-users (i.e. all of my customers ;-)

With root.txt you can only change the "galleries" link to a customized "home" link that points to your specific url. The UP button remains no matter what's in the root.txt correct?

\pictures\holiday2006
\pictures\holiday2006\day1
\pictures\holiday2006\day2
\pictures\holiday2006\day3
\pictures\customerdinner

Q: Could i put something in the 'top' level folder's config.php that stops that particular folder from showing the up button? (in this case \pictures\holiday2006). I would still like to use the up arrow in it's subfolders.

Tnx!
DJ

PS. excellent support & responsiveness for my questions! this is something that makes me think about registering!


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2007, 11:23 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
no - like you see in the example the is no up button!

But you have to provide a root.txt in the sub folders too ;). In the sub folders the up button should be there.

for your pictures - make password protection to this folder - private.txt ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2007, 13:51 
Offline

Joined: 16. Jul 2007, 22:46
Posts: 25
Ah! I think we might be getting somewhere. A totally unimportant thing that I did not mention (not! ;-) is that my TWG is integrated in a PmWiki.

Now it looks like if the twg URL in your browser matches the URL configured in root.txt, twg stops showing the 'up' icon. Is that correct?

In my case the URL in my browser always is #removed_broken_link

This URL stays the same, no matter how often I click the up arrow --> no match with root.txt --> up up up!

This makes things a lot more complicated... Any ideas left? (ps good implementation of the root.txt)

DJ


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2007, 15:58 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
? - don't understand what you want to say me...


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2007, 16:41 
Offline

Joined: 16. Jul 2007, 22:46
Posts: 25
Is it correct that twg compares the current URL with the URL in root.txt and if they match it stops displaying the up-arrow?

In that case I have an problem. Because of the integration in PmWiki (which works great btw) the URL is always the same:
#removed_broken_link
(even though I will be browsing the whole picture gallery)

Therefore it never matches the URL and will always display the up arrow.

If there's no solution for this that's bad luck for me ;-)


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2007, 17:03 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
no - is does not do that.

First what is the content of your root.txt

And have you read the howto properly!! the root.txt behave differently depending where it is!

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2007, 22:44 
Offline

Joined: 16. Jul 2007, 22:46
Posts: 25
Hi,

Getting close now. All galleries/folders work fine with the root.txt file solution, except the one that I am using to test (causing my email flood on this forum ;-)

For this particular picture folder I noticed something interesting in the xml directory: two similar files for that one folder:
pictures_holiday_munich_etc
pictures_holiday_garmisch_etc
but [i]also[/i]:
_pictures_holiday_munich_etc
_pictures_holiday_garmisch_etc

(note the prefixed "_")
This only happens for this folder called "holiday" folder.

Why would these "_"-prefixed xml files be created and could that be the cause that for this folder the root.txt is not working? I have checked the rights of the xml files and root.txt files (all with the correct IUSR rights).


Top
 Profile  
 
 Post subject:
PostPosted: 26. Jul 2007, 23:11 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
no - they don't have anything todo with that.

The other folders are working?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 27. Jul 2007, 14:32 
Offline

Joined: 16. Jul 2007, 22:46
Posts: 25
Hi,

Apologies for (all of) my questions. If this is my folder structure:

/pictures/
----Holiday/
--------/US2001/
------------/Day1/
------------/Day2/
------------/Day3/
--------/Munich2002/
------------/Day1/
------------/Day2/
----Cars/
--------/Audi/
--------/BMW/

What would I have to put in which directory to make /US2001 the root (and /Munich2002 ). So if someone's in the US2001 or Munich2002 folder, they wouldn't be able to go to /pictures/holiday or /pictures/cars without knowing the url.

By putting the root.txt in Pictures/Holiday I can prevent users from going to Pictures/Cars. So that only works for the 1st level subfolders?

(and how would this affect the links on the top-left? (like Home | Holiday > US2001 > Day1). Would these still link to higher level subfolders?


Top
 Profile  
 
 Post subject:
PostPosted: 27. Jul 2007, 14:45 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
like is it described in the howto.

The root.txt should be in the

US2001 folder
in the root.txt has to be a http:// .... address to your home

in the Day1 ... folders has to be a root.txt with the content US2001 (or Munich2002 for the lower 3).

and of course the breadcrumb will stop earlier - looks like the US2001 is the top folder.

/Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

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