Album Cover in Flash SlideShow
fabian-r - October 1, 2008 - 23:05
| Project: | album photos |
| Version: | 6.x-2.0-2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | fabian-r |
| Status: | active |
Jump to:
Description
Hi. How can I create the AlbumCover(img-Link) in the XML for the Flash SlideShow?
// $b = '[ALBUM COVER IMG]<--'">'; //
It would be nice in a changed swf-file like SlideShowPro.
Thanks for every answer!

#1
Sorry, but I don't get what you mean, could you explain it a bit more ?
What do you want to do, which version are you using? You want to use a special flash gallery?
#2
#3
Sorry... OK... I'm using the version 6x.-2.0.-2. on Drupal 6.4
Yes, I want to use a special flash gallery (SlideShowPro - http://slideshowpro.net).
So this gallery swf can show the album cover image but the swf must read the imagefilepath from every gallery that i created in the xml.
My problem is: How can i write this pathes in the
<album>tags in the xml?... on line 130 of the photos.page.inc is this...
...
$b = '<album title="'.$title.'" description="'.drupal_substr(strip_tags($description), 0, 100).'" tn="'.[???_ALBUM-IMAGE-PATH_???].'">';... so I need a variable or function for the Album Image Path for
tn=""#4
Ok..
I'm not sure what has been changed, my code examples are from the actual develepment version... but AFAIK there were no DB changes...
This is the code that loads the image path:
<?php$a = db_fetch_object(db_query('SELECT * FROM {x_album} WHERE pid = %d', $node->nid));
if ($a->fid) {
$p = _photos_get_path_cover($a->fid);
$info['album']['fid'] = $a->fid;
$info['album']['url'] = _photos_file_create_url($p['p']);
}
?>
And so it is displayed:
<?phpif($node->album['url']){
$v = l('<img src="'.$node->album['url'].'">',"node/$node->nid",array('html'=>true));
}
?>
Is this enough information for you ?
#5
So i've try it - but no chance. I'm a beginner and i dont know where i must place the code parts.
#6
Any idea how i can integrate this?
#7
subscribe