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!

Comments

Berdir’s picture

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?

Berdir’s picture

Status: Active » Postponed (maintainer needs more info)
fabian-r’s picture

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=""

Berdir’s picture

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:

 $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:

if($node->album['url']){
	$v = l('<img src="'.$node->album['url'].'">',"node/$node->nid",array('html'=>true));
}

Is this enough information for you ?

fabian-r’s picture

So i've try it - but no chance. I'm a beginner and i dont know where i must place the code parts.

fabian-r’s picture

Any idea how i can integrate this?

chrislabeard’s picture

Status: Postponed (maintainer needs more info) » Active

subscribe

Nathaniel’s picture

Assigned: fabian-r » Unassigned
Issue summary: View changes
Status: Active » Closed (won't fix)

Closing old issues. Please re-open or start a new issue if this is still a problem in the latest release.