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 10. Aug 2022, 07:12

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

All times are UTC + 1 hour [ DST ]

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 29. Nov 2005, 00:50 
User avatar

Joined: 5. Aug 2005, 19:39
Posts: 77
I am trying to get hold of the level TWG has reached. Please update your docs as soon as possilbe ! I am by no means a novice, but the learning curve is EXTREMELY high as it stands now !


This is what I wanted: I have several albums, I want to add a random picture of that album on the thumbs page of that album. So I tried this:

<img src="image.php?twg_album=folder1&twg_random=1&twg_type=random&twg_random_size=200">

in a file called thumb.htm in the folder folder1. Nothing happens

So I rename the file to footer.htm. Guessed good: nothing happens

So I rename the file to folder.txt. Oi, presto: one thumbnail. Wrong postition though. I want it to be below the thumbnails. I am lost. Completely

Suggestion: allow for html like this to be used in the footer.htm. allow footer.htm to be in any directory ?

 Post subject:
PostPosted: 29. Nov 2005, 15:37 
Site Admin
User avatar

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

Answer is pretty easy - you assume stuff twg just can't do out of the box ;).

all html includes (footer, header, overview, thumb and image.htm) have to be in the main directory and therefore are the same for all albums!.
Therefore the stuff you tried cannot work ;).

folder.txt is for each directory and intended to display a nice extra text for an album.

Below the thumbnails is no extra include right now!

But you can to this easy by yourself!

use the thumbs.htm (in the main folder) - put the code for your random image in there and replace the album with

<?php echo $twg_album ?>
if you have fancy album names use urlencode($twg_album)

<img src="image.php?twg_album=<?php echo urlencode($twg_album) ?>&twg_random=1&twg_type=random&twg_random_size=200">


Have fun using TWG.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]

Who is online

Users browsing this forum: Bing [Bot] and 3 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