Page 1 of 1

ImageGallery: Unique CSS-ID for the Pictures [solved]

Posted: Thu Mar 22, 2007 2:18 pm
by amh
Sorry, for bad english!

Hi!

I need a unique ID for every thumb-picture for the ImageGallery-PlugIn. I find this in the codeid="">';

Is maybe this code who I'm searching from?

Code: Select all

//thumbcount
$deci = array();
for($i=1; $i<=sizeof($liste); $i++) {
$deci[$i] = $i;
while(strlen($deci[$i]) < strlen(sizeof($liste))) $deci[$i] = '0' . $deci[$i];
}
But how I can extract the unique ID?  :'(

May anyone help me? Many Thanks!


edit: here is the answer: $output .= ''; Sorry for posting before thinking :(

Re: ImageGallery: Unique CSS-ID for the Pictures

Posted: Thu Mar 22, 2007 3:22 pm
by cyberman
Go to line 186

Code: Select all

//Set Image
$output .= '<img src="' . $thumbPic .'"';
and change it to

Code: Select all

//Set Image
$output .= '<img id="' . $key . '" src="' . $thumbPic .'"';