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 22. Nov 2024, 05:07

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  [ 8 posts ] 
Author Message
 Post subject: Latest Folder
PostPosted: 29. Apr 2008, 19:15 
Offline

Joined: 3. Nov 2007, 02:26
Posts: 12
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


Top
 Profile  
 
 Post subject:
PostPosted: 30. Apr 2008, 08:32 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 30. Apr 2008, 17:55 
Offline

Joined: 3. Nov 2007, 02:26
Posts: 12
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 ;)


Top
 Profile  
 
 Post subject:
PostPosted: 30. Apr 2008, 19:11 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 30. Apr 2008, 20:13 
Offline

Joined: 3. Nov 2007, 02:26
Posts: 12
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 ;)


Top
 Profile  
 
 Post subject:
PostPosted: 30. Apr 2008, 20:28 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 30. Apr 2008, 20:33 
Offline

Joined: 3. Nov 2007, 02:26
Posts: 12
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


Top
 Profile  
 
 Post subject:
PostPosted: 30. Apr 2008, 20:51 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

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