[Solved]: Image title instead "Click to view full size image" [Solved]: Image title instead "Click to view full size image"
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

[Solved]: Image title instead "Click to view full size image"

Started by twist3r, June 05, 2008, 05:44:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

twist3r

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

just_some_guy

$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.
Tambien, Hablo EspaƱol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

twist3r


aftab1003

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 ?

twist3r

I copied function theme_html_picture() from sample theme.php . You should find that portion inside it.