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

Comments

chrislabeard’s picture

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 !