coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Deus on July 19, 2005, 12:46:29 PM

Title: problem displaying slideshow
Post by: Deus on July 19, 2005, 12:46:29 PM
i have a small problem with the slideshow, it has HUGE borders top and bottom... and i dont know how to fix it.
could someone have a look and point me in the right direction, thanks
Deus
Title: Re: problem displaying slideshow
Post by: Nibbler on July 19, 2005, 03:58:15 PM
Looks ok to me, can you post a specific link or screenshot ?
Title: Re: problem displaying slideshow
Post by: Deus on July 19, 2005, 04:20:21 PM
just click on my sig, goto any album and click on slide show, you'll see there's a huse amount of wasted space top and bottom of the picture.
Title: Re: problem displaying slideshow
Post by: kegobeer on July 19, 2005, 04:23:42 PM
Have you modified any files?
Title: Re: problem displaying slideshow
Post by: Nibbler on July 19, 2005, 04:33:16 PM
I see. The height of that table is related to the config setting 'Max width or height of an intermediate picture/video'. You have that set to 4096, so the table is created that +100 px high.
Title: Re: problem displaying slideshow
Post by: Deus on July 19, 2005, 04:45:10 PM
ah, i thought was setting the max height/width for uploading an image.
Thanks nibbler.
Oh and yes lots of code has been changed.
Title: Re: problem displaying slideshow
Post by: Deus on July 19, 2005, 05:29:46 PM
i'm going to ask another question, i have a sig thats random as you can see, but people are asking me to make one for them.
Problem is, i didnt code it, so if i post the code could someone please tell me what needs to be changed in order to select at random from their album,? just so they can have a personalised sig?
TIA
Deus

ok here's the code snippet

//get 3 random images from albums, visible for unauthorised users (visibility=0)
$pics=mysql_query("select filepath, filename from cpg_pictures, cpg_albums where cpg_albums.aid=cpg_pictures.aid and pwidth>0 and visibility=0 order by rand() limit 0,3");

//Parsing images:
while($pr=mysql_fetch_array($pics)) {
//making arrays of filenames
$fname[]="albums/".$pr['filepath']."thumb_".$pr['filename'];
//getting image size
list($width, $height, $type, $attr) = getimagesize("albums/".$pr['filepath']."thumb_".$pr['filename']);
//adding image width+4 pixels to total width of generated image
$sum_x+=$width+4;
//and duplicating width value into array to calculate positions for images
$ix[]=$width;
//loading image
$im[]=imagecreatefromjpeg("albums/".$pr['filepath']."thumb_".$pr['filename']);



Any idea's what i need to change to select an album rather than the whole gallery?
Title: Re: problem displaying slideshow
Post by: kegobeer on July 19, 2005, 10:59:43 PM
One topic per thread, please.  Feel free to start a thread on the miscellaneous board.