Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 02:29:07 PM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155539 Posts in 21712 Topics by 7737 Members
Latest Member: deanmacullam
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: [LightBox2] Put file name in the slideshow  (Read 300 times)
betan

Offline Offline

Posts: 15


« on: August 26, 2010, 04:05:43 PM »

Hello

In my WebsiteBaker site, i put the module LightBox2.
When i click on a image, The Galery Title is diplayed.
I want to put the filename information next to the galery title.

Can you help me, please?

Thanks.
Logged
betan

Offline Offline

Posts: 15


« Reply #1 on: August 26, 2010, 04:20:51 PM »

OK, in the wiew.php I replace
Code:
title="' . $gallery_name .
'" by 
Code:
title="' . $img_list[$img_count] . '"
in this part :
Code:
while ($col_count <= $img_columns) {
echo '<td>';
if ($img_total > $img_count){
echo '<a href="' . WB_URL . $gallery_path . $img_list[$img_count] . '" class="lb_image_link" rel="lightbox[' . $gallery_name . ']" title="' . $img_list[$img_count] . '"><img class="lb_image" src="' . WB_URL . $thumb_path . $img_list[$img_count] . '" border="0" /></a>';
}
echo '</td>' . "\n";
$col_count++;
$img_count++;
}

How can I suppress the extension for the filename displayed?
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!