Outputting lgPath ?
chrislabeard - August 11, 2009 - 06:27
| Project: | SlideShowPro |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi, i would like to get lgPath working so i can have an image for my albums I don't care which picture it is just any picture is fine.
I've tried to figure this out myself but to no avail.
Thanks

#1
alright just kidding ... okay how can i get the url of an image in tn="".
/*** Format an album.
*/
function slideshowpro_xml_album($album, $images) {
static $id = 0;
$output .= '<album id="%album_id" title="%title" description="%description" tn="" lgPath="">'."\n";
$output .= implode("\n", $images) ."\n";
$output .= "</album>\n";
$variables = array('%album_id' => $id, '%title' => check_plain($album->name), '%description' => check_plain($album->description),
'%lgPath' => url(variable_get('image_default_path', 'images'), array('absolute' => TRUE)));
$id++;
return strtr($output, $variables);
}
I'm guessing i need to add a variable like %tnpath or something but i have no idea what to do? Any help would be great !