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
Looks ok to me, can you post a specific link or screenshot ?
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.
Have you modified any files?
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.
ah, i thought was setting the max height/width for uploading an image.
Thanks nibbler.
Oh and yes lots of code has been changed.
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?
One topic per thread, please. Feel free to start a thread on the miscellaneous board.