Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Latest Folder https://www.tinywebgallery.com/forum/viewtopic.php?f=3&t=1507 |
Page 1 of 1 |
Author: | Koempy [ 29. Apr 2008, 19:15 ] |
Post subject: | Latest Folder |
Hi, I need the function, that shows the latest Folders sorted by date, in example the 5 latest Folders. Is that possible? I need this, because on my Homepage i have a little Frame where always are shown the 5 newest folders/albums. But now i am change this manually. It would be nice, if it could be done automatically. Greets Frank |
Author: | TinyWebGallery [ 30. Apr 2008, 08:32 ] |
Post subject: | |
you might simply change the sorting in the config? searching for "sort" in the config.php or on the configurgarion page on the website would help . /Michael |
Author: | Koempy [ 30. Apr 2008, 17:55 ] |
Post subject: | |
That nearly, what i search. But i am searching the funtion, that only shows the five latest album, to integrate it in a iframe module in a joomla homepage... like my homepage... PS: I registered TWG an hour ago |
Author: | TinyWebGallery [ 30. Apr 2008, 19:11 ] |
Post subject: | |
then you simply have to modify the function that reads the albums and only return the first 5 elements. it's in filefunctions.inc.php - get_directories. you can truncate the array after the sorting. array_slice should work ... Registration was a god idea . /Michael |
Author: | Koempy [ 30. Apr 2008, 20:13 ] |
Post subject: | |
The Problem is, that after a update of TWG is all for nothing I am not so good at coding php. And i have at the moment not so much time, because i am writing my diplom thesis It would be great, if it would be a standard feature, not only a hack for me |
Author: | TinyWebGallery [ 30. Apr 2008, 20:28 ] |
Post subject: | |
but it's a very uncomon feature - if you see into the config.php - there are already tooooo many parameters. -i only want to introduct new once if really needed. is it not enough for you to have a paging and the older folders are simply shown on page 2-x? /Michael |
Author: | Koempy [ 30. Apr 2008, 20:33 ] |
Post subject: | |
the sorting with date is great. This feature is surely good. when you look at my homepage... www.koempy.de you see the reason for the feature. I know, that there are maaaaaaaaaaany parameters I can understand you. I think i would try to implement it for myself at the weekend |
Author: | TinyWebGallery [ 30. Apr 2008, 20:51 ] |
Post subject: | |
the change is only one line . and you could set the number of rows from 3 to 2 and then don't use a style for the paging (then only numbers seperated with a | (1 | 2 | 3 ... )). change $paging_use_style to get a "smaller" paging. /Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |