problem displaying slideshow problem displaying slideshow
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

problem displaying slideshow

Started by Deus, July 19, 2005, 12:46:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Deus

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
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

Nibbler

Looks ok to me, can you post a specific link or screenshot ?

Deus

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.
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Nibbler

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.

Deus

ah, i thought was setting the max height/width for uploading an image.
Thanks nibbler.
Oh and yes lots of code has been changed.
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

Deus

#6
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?
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

kegobeer

One topic per thread, please.  Feel free to start a thread on the miscellaneous board.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots