coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: twist3r on June 05, 2008, 05:44:15 PM

Title: [Solved]: Image title instead "Click to view full size image"
Post by: twist3r on June 05, 2008, 05:44:15 PM
Hello. I do own a gallery @ http://www.dlh.ro/vedete . My question is related to the fact that I want to replace the text "Click to view full size image" with the image title.

I do have now in theme.php :
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$lang_display_image_php['view_fs']}\" /><br />";

What i have to put instead to work ? I tried with $pic_title instead of {$lang_display_image_php['view_fs']} but that just doesen't work. I need to have that alt text changed to the image title or at least of album title. Can be done ? Thanks
Title: Re: Image title instead "Click to view full size image"
Post by: just_some_guy on June 05, 2008, 05:50:09 PM
$pic_html .= "<img src=\"" . $picture_url . "\" class=\"image\" border=\"0\" alt=\"{$CURRENT_PIC_DATA['title']}\" /><br />";

Use the CURRENT_PIC_DATA array, i changed your code to do this; see above.
Title: Re: Image title instead "Click to view full size image"
Post by: twist3r on June 05, 2008, 06:03:17 PM
Great. It works. Thanks a lot
Title: Re: [Solved]: Image title instead "Click to view full size image"
Post by: aftab1003 on June 07, 2008, 01:49:26 PM
the above code is not in my theme.php
can u pleas tell me wich portion from /sample/theme.php past to my actual theme.php ?
Title: Re: [Solved]: Image title instead "Click to view full size image"
Post by: twist3r on June 07, 2008, 01:57:20 PM
I copied function theme_html_picture() from sample theme.php . You should find that portion inside it.