Statistics: Posted by Cristián Lávaque — May 31st, 2011, 10:57 pm
<?php foreach ($galleries as $gallery) :
/** Takes gallery thumbnail and edits the url so s2member will allow access by anyone **/
$thumbfilename = "thumbs_".$gallery->previewname;
$thumburl = $gallery->previewurl;
//cut down to just the relative path
$urlpieces = parse_url($thumburl);
$thumbpath = $urlpieces['query'];
//cut out the "s2member_file_download=" part
$thumbpath = str_replace("s2member_file_download=", '', $thumbpath);
//Make key
$key = s2member_file_download_key("$thumbpath");
//Add key
$keystring = "&s2member_file_download_key=".$key;
$keyedurl = $gallery->previewurl . $keystring;
src="<?php echo $gallery->previewurl ?>
src="<?php /*Here's the part I changed*/ echo $keyedurl; ?>
Statistics: Posted by StenCade — May 31st, 2011, 10:36 pm
Statistics: Posted by StenCade — May 31st, 2011, 6:33 pm
Statistics: Posted by Cristián Lávaque — May 31st, 2011, 1:29 pm
Statistics: Posted by StenCade — May 31st, 2011, 3:35 am