coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Lif3styl3 on August 31, 2006, 11:38:36 AM

Title: Where to modify private Album List Thumbs
Post by: Lif3styl3 on August 31, 2006, 11:38:36 AM
Hi,

i have to add some lines to the call of the private album thnub,....
i found one entry already,... but there are problems with the syntax,....

must be this line in index.php I think:
$alb_list[$alb_idx]['thumb_pic'] = '<img src="' . $cpg_privatepic_data['thumb'] . '"  class="image" id="thephoto_'.$ri.'"  border="0" alt="" />';

But I need to modify it with onload="initImage('thephoto_'.$ri.'')"
The problem is i need the ' to open the file with an javascript but these signs are not allowed there,....
Is there something like "-" how in excel to use the sign anyway.
Title: Re: Where to modify private Album List Thumbs
Post by: Nibbler on August 31, 2006, 12:53:32 PM
Escape them with backslashes.
Title: Re: Where to modify private Album List Thumbs
Post by: Lif3styl3 on August 31, 2006, 01:44:24 PM
I've modiefied it that way


$alb_list[$alb_idx]['thumb_pic'] = "<img src=\"" . $cpg_privatepic_data['thumb'] . "\" id=\"thephoto_".$ri."\"
onLoad=\"initImage 'thephoto_".$ri."');\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\"
title=\"$pic_title\">";


It also worked,.....
but thx for your help,....
solved then

plz take a look @http://forum.coppermine-gallery.net/index.php?topic=35580.0 (http://forum.coppermine-gallery.net/index.php?topic=35580.0) if its ready for the mods section