Hello,

I've read this issue #602906: Slideshow Pro Album pictures and tried to create a preview picture for each album. I simply want to use the first image as preview picture.

Am I right with overriding the theme_ssp_images function?
I declared $album_preview = $base_path.$node->field_images[0]['filepath']; and put it into the tag as tn="'.$album_preview .'".
So this is the whole line:

print '<album id="'.$single_album_node->title.'" title="'.$single_album_node->title.'" description="'. strip_tags($single_album_node->body).'" tn="'.$album_preview .'" >';

I tried it for both cases SSP_SINGLE and SSP_MULTIPLE but in none of both tn is going to be loaded.

I'd really appreciate if somebody could help me.

Thanks a lot,
Stefan

Comments

kylebrowning’s picture

Thats correct you should be overriding those.

Let me take a look a little bit later today, Ill see if I can get it working.

design.er’s picture

Great, I'm looking forward to read from you.
Thanks a lot for your time! :)

kylebrowning’s picture

Status: Active » Fixed

This has been resolved in beta3.

you might need to do some tweaking to the theme_ssp_params. In order for it to look somewhat nice, I had to remove unnecessary columns.

design.er’s picture

Yes, since beta5 it works fine in multiple slideshows but the preview picture still doesn't appear in the album. Am I missing something?

design.er’s picture

I've figured it out... it was just a little of copy & paste and rewriting the theme_ssp_image for the ssp_single case, so never mind. :)
But maybe it makes sense to implement this into the module to achieve an uniformly appearance of both slideshow and multiple slideshow.

kylebrowning’s picture

hrmm, what did you change?

design.er’s picture

I simply added the following line on line 130 of ssp.module:

$album_thumb = imagecache_create_url('ssp_thumbnail', $node->field_images[0]['filepath'], TRUE);

And then added tn="'. $album_thumb .'" on line 131 into the <album> tag.

:)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.