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:16

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: Captions cut-off
PostPosted: 19. Apr 2009, 20:11 
Offline

Joined: 19. Apr 2009, 20:05
Posts: 4
Location: London UK
I have quite long captions & they display OK normally. However, in slideshow mode, the bottom of the captions are cut off. Any ideas? - Regards, Kevin


Top
 Profile  
 
 Post subject:
PostPosted: 19. Apr 2009, 20:46 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The slideshows are running inside an iframe. If they are too long then they are cut off (I think you have more than 2 lines?). You would have to increase the size of the iframe to fix this.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Apr 2009, 21:13 
Offline

Joined: 19. Apr 2009, 20:05
Posts: 4
Location: London UK
Where do I change this? - Thanks, Kevin


Top
 Profile  
 
 Post subject:
PostPosted: 19. Apr 2009, 21:32 
Offline
Site Admin
User avatar

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

iframe id='slideframe'

in inc/image.inc.php. There is a iframe definition for each slideshow type.

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 19. Apr 2009, 23:50 
Offline

Joined: 19. Apr 2009, 20:05
Posts: 4
Location: London UK
Isn't it this part that I need to change?

$heightaddon = 20;
if ($show_captions) {
$heightaddon += 20;
}

Is there a way of knowing the actual height needed for any caption?

Regards, Kevin


Top
 Profile  
 
 Post subject:
PostPosted: 19. Apr 2009, 23:56 
Offline
Site Admin
User avatar

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

The iframe is the same for all images of a slideshow. you would have to check how may lines the longest caption has.

How many lines has your longest caption?

- Michael


Top
 Profile  
 
 Post subject:
PostPosted: 20. Apr 2009, 00:07 
Offline

Joined: 19. Apr 2009, 20:05
Posts: 4
Location: London UK
So far 9. Is it possible to calculate this height (by knowing the number of characters, font width, frame width etc.)?

Regards, Kevin


Top
 Profile  
 
 Post subject:
PostPosted: 21. Apr 2009, 11:29 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Everything is possible. But you would have to check all captions of a folder first.
An other point is having 9 lines of caption which is in a slideshow which shows a new image every 5 or 10 sec?

If you don't use the maximized slideshow then normally quite some space is below so you can make the iframe larger without any problems. YOu just ja to check if the slideshow still looks good in your layout.

- 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 27 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