Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

'TWG Variables' for left/right album description
https://www.tinywebgallery.com/forum/viewtopic.php?f=3&t=1581
Page 1 of 1

Author:  jaguar11735 [ 3. Jul 2008, 00:38 ]
Post subject:  'TWG Variables' for left/right album description

It would be beneficial if there were 'TWG Variables' or similar that could be entered into the albumr.txt and albuml.txt files. These variables could be something like '[Album_Name]'. When a user types [Album_Name] into the albumr.txt or albuml.txt files, TWG reads this and replaces [Album_Name] with the album name specified by the foldername.txt file.

A list of the variables I thought of:
Album Name - from foldername.txt
Album Description - from folder.txt
Link to Album
Photo Count - similar to what is displayed when no albumr/l.txt is used

I attempted to implement this myself, but so far have been unable to find in the code where the folder.txt and foldername.txt files are read, as well as where the link and count are generated.

Also, the ability for TWG to automatically choose formatting based on whether the file is left or right. What I mean by this can be seen here. In this file, I made up variables for the name/description (these would be replaced by my above idea). The script determines whether the filename is albumr.txt or albuml.txt, and outputs the appropriate formatting. This may not be able to be implemented because it is dependent upon the formatting that the user wants.

Author:  TinyWebGallery [ 3. Jul 2008, 09:02 ]
Post subject: 

about the variables - that's a good idea.
i'll make a note in my todo list... because most of the variables are already there. They are just not shown. I could simply extend the FAQ and tell you which variables you have to use ... ;).

about the formating. You are right. i can make 2 different styles that are used. Then you don't have to do this in the album.txt files...

But I think you would like something like a generic album.txt - because in your link you do some parsing although you know in which files you are ...

/Michael

Author:  TinyWebGallery [ 17. Sep 2010, 21:29 ]
Post subject: 

I have just added this to my local build - this feature will be available in 1.8.2!

- Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/