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 24. Nov 2024, 13:56

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  [ 4 posts ] 
Author Message
PostPosted: 16. Jun 2008, 18:10 
Offline

Joined: 16. Jun 2008, 18:02
Posts: 2
Location: Brazil - São Paulo
Hi Michael,

Thank you for this excellent work.

What I'm trying to accomplish here is:

- Sort folders (this I know how to do by HOWto)

- Split the folders in the main page, so as the main gallery appears alone in the first "line", then the other galleries appear in the second "line" sorted as I need (just like it appear when you have a folder with pictures and a subfolder. The folder appears on top, and the thumbs appear below in lines).

Thank you very much.
I'll buy an unlimited license soon, so I can use the flash thumbstrip (and other goodies) for all my clients.

_________________
Jonathan Roza
www.elektrastudio.com.br


Top
 Profile  
 
 Post subject:
PostPosted: 16. Jun 2008, 23:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The easies sorting can be done with a prefix.

But only showing one main gallery in the first line and then the other ones below is more complicated. You would have to change the code for this.

If you don't need paging it's actually not a big change. If you have paging it's very hard to do.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 17. Jun 2008, 00:49 
Offline

Joined: 16. Jun 2008, 18:02
Posts: 2
Location: Brazil - São Paulo
Hi Michael,

Thakn you for the fast reply.
I don't need paging (as in multiple pages for folders/galleries in the main page?) as I have only 5 galleries, and will have at max 8 (The gallery is well organized with sub-galleries).

Can you tell me how it is done? I'm not a programmer, and my basic php knowledge is restricted to understand basic coding for changing variables and eventually eliminating part of the code.

Thank you!

_________________
Jonathan Roza
www.elektrastudio.com.br


Top
 Profile  
 
 Post subject:
PostPosted: 17. Jun 2008, 09:14 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you have to do 2 changes in inc/showfolders.inc.php:


search for

$x++ == $menu_x

replace this line with

if ($x++ == $menu_x || $xx==2) {


and then search for:

echo "<td class='mainnav'>";


and replace it with:


if ($xx==1) {
echo "<td colspan=4 class='mainnav'>";
} else {
echo "<td class='mainnav'>";
}


The number after colspan is the number of albums you show in one row!

/Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

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