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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
amh
Forum Members
Forum Members
Posts: 187
Joined: Sun Apr 17, 2005 2:40 pm
Location: Germany -- Augsburg

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

Post 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 :(
Last edited by amh on Thu Mar 22, 2007 2:42 pm, edited 1 time in total.
__/\_|\/|_|-|__  --  designer not coder
cyberman

Re: ImageGallery: Unique CSS-ID for the Pictures

Post 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 .'"';
Post Reply

Return to “Modules/Add-Ons”