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

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  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: random image
PostPosted: 23. Sep 2007, 22:00 
Offline

Joined: 16. Aug 2007, 09:30
Posts: 13
I have a problem getting the random image properly working, without adding a specific album.

I have used the example for version 1.6 from the faq:

src="http://my_own_domain/twg/image.php?twg_album=&twg_random=1&twg_type=random&twg_random_size=640&twg_random_subdir=true">

I get a message "check album parameter".

when I add an album behind "twg_album=" it works ok.


Top
 Profile  
 
 Post subject:
PostPosted: 23. Sep 2007, 22:07 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
check the examples folder.

There is a overview.htm - copy it to the main folder - then you get it like in the demo.
Do you get a log file.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 23. Sep 2007, 22:49 
Offline

Joined: 16. Aug 2007, 09:30
Posts: 13
I get next in the debug file:
09.23.2007 22:50:37 - ERROR 8 in home/web/snl44503/twg/inc/random.inc.php, line 34: Undefined index:


Top
 Profile  
 
 Post subject:
PostPosted: 23. Sep 2007, 22:53 
Offline

Joined: 16. Aug 2007, 09:30
Posts: 13
just to add:
after copying the overview.htm, I also get the same "check album parameter" within the main folder of the gallery


Top
 Profile  
 
 Post subject:
PostPosted: 23. Sep 2007, 23:06 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
seems no dirs can be found from my funtion that look for directories that can be seen- do you have protected folders ?

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 24. Sep 2007, 10:36 
Offline

Joined: 16. Aug 2007, 09:30
Posts: 13
The remark about "protected folders" became the key to solve my problem.

in the past I have been testing with a "private.txt" file to protect some folders. During this testing I also made a "private.txt" file within the main folder "./pictures".

This private.txt in the main folder is ignored when I access my webgallery, but apparently the random function does not.

Looking at this behaviour I have the following: why is private.txt ignored within the main folder?
When it is not ignored, I can protect all of my albums by just having this private.txt in there.


Top
 Profile  
 
 Post subject:
PostPosted: 24. Sep 2007, 10:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
good point - I don't have a general login yet.

I like the idea and will add this to 1.7 ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 12. Oct 2007, 22:18 
Offline

Joined: 20. Aug 2007, 00:15
Posts: 59
Location: Denmark
I give up, I need help :oops:

I've tried everything I can think of and some random things no one COULD think of. I've read this thread and THAT made me realize a few obvious errors I had made... but it's still not working....

<a href ='#removed_broken_linkshowroom/index.php?twg_random=1'>
<img src="#removed_broken_linkshowroom/image.php?twg_album=#removed_broken_linkshowroom/index.php?twg_album=Malerier%2FJulie+Seabrook&twg_show=x|zzz&twg_random=1&twg_type=random&twg_random_size=100">
</a>

...the question is why...?


Top
 Profile  
 
 Post subject:
PostPosted: 12. Oct 2007, 23:55 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
this cannot work!

the src you have to use is:

#removed_broken_linkshowroo ... m_size=100

paste it in the browser - then you wee a new image every time ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 13. Oct 2007, 05:03 
Offline

Joined: 20. Aug 2007, 00:15
Posts: 59
Location: Denmark
It worked !!!

But how do I make it change in random between every catagory?

This is the main overview of all the different catagories:

#removed_broken_link

?


Top
 Profile  
 
 Post subject:
PostPosted: 13. Oct 2007, 10:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
by rading the whole howto - there is an extra parameter to go through all subfolders too ;).

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 14. Oct 2007, 01:03 
Offline

Joined: 20. Aug 2007, 00:15
Posts: 59
Location: Denmark
TinyWebGallery wrote:
by rading the whole howto - there is an extra parameter to go through all subfolders too ;).

/Michael

I already played with twg_random_subdir=true before I wrote in this thread, without making it work.

When I add it now, nothing changes, cause there are no subfolders in "julie Seabrook". I've tried changing the src by copy/pasting the url from the showroom/Malerier folder, but I can't make it work?

What's wrong:
<a href ='#removed_broken_linkshowroom/index.php?twg_random=5'>
<img src="#removed_broken_link?twg_album=Malerier&twg_random=1&twg_type=random&twg_random_size=175_random_subdir=true">
</a>


Top
 Profile  
 
 Post subject:
PostPosted: 17. Oct 2007, 05:21 
Offline

Joined: 20. Aug 2007, 00:15
Posts: 59
Location: Denmark
(My structure: twg=showroom - showroom has 7 subfolders (different catagories of art) each catagory has subfolders with different artists.)

Since it seems to require a "twg_album" is it possible to make the random picture be selected from the main folder "showroom"[twg] ?

I would like to show a random picture on my frontpage from anywhere inside the twg album. I've tried pasting the 7 different url links with "|" between but no luck. I hope to be in a situation where new artists are added all the time. That's why I hope to make it show a random picture from the main folder, so I don't have to configure each time I add a new artist.

I can't make it work if I simply write twg_album=Malerier:
src="#removed_broken_linkshowroom/image.php?twg_album=Malerier&twg_show=x&twg_random=1&twg_type=random&twg_random_size=175_random_subdir=true">
</a>


Top
 Profile  
 
 Post subject:
PostPosted: 17. Oct 2007, 05:42 
Offline

Joined: 20. Aug 2007, 00:15
Posts: 59
Location: Denmark
I just found out why a lot of my experiments has not worked. The artist I was using had an "ø" in his name! I had to unicode my frontpage before it worked :)

I still can't do the "|" trick and apply different folders, nor can I make it simply choose from the "Malerier" folder inside "showroom".

It would be fine if I could give it an adress for each of the 7 subfolders inside "showroom" because they are not going to change, but the subfolders inside (hopefully) are going to be constantly evolving.


Top
 Profile  
 
 Post subject:
PostPosted: 17. Oct 2007, 07:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Can you simpy try to use the correct syntax?

#removed_broken_linkshowroo ... ubdir=true

works fine.

The
&twg_random_subdir=true
was in your case
_random_subdir=true

/Michael


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