Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [Solved]: Image title instead "Click to view full size image"  (Read 5524 times)

0 Members and 1 Guest are viewing this topic.

twist3r

  • Coppermine newbie
  • Offline Offline
  • Posts: 13

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 :
Code: [Select]
$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
Code: [Select]
$pic_title instead of
Code: [Select]
{$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
« Last Edit: June 05, 2008, 06:55:58 pm by Nibbler »
Logged

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Image title instead "Click to view full size image"
« Reply #1 on: June 05, 2008, 05:50:09 pm »

Code: [Select]
$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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Image title instead "Click to view full size image"
« Reply #2 on: June 05, 2008, 06:03:17 pm »

Great. It works. Thanks a lot
Logged

aftab1003

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 67
    • PictureRating Site for Teens
Re: [Solved]: Image title instead "Click to view full size image"
« Reply #3 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 ?
Logged

twist3r

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: [Solved]: Image title instead "Click to view full size image"
« Reply #4 on: June 07, 2008, 01:57:20 pm »

I copied function
Code: [Select]
theme_html_picture() from sample theme.php . You should find that portion inside it.
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.