Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
Is there a way for me to retrieve the relative path to the intermediate thumb?.
plogger_get_picture_thumb(THUMB_LARGE);
foreach ($pictures as $picture){
if ((isset($_GET["album_id"]) && ($_GET["album_id"] == $picture["parent_album"])) || !isset($_GET["album_id"])){
if ((isset($_GET["pictures"]) && ($_GET["pictures"] == 1)) ||
(isset($_GET["picture_id"]) && ($_GET["picture_id"] == $picture["id"]))){
if ($limitType == 'pictures'){
if ($total == $limit){
break;
}
$total++;
}
$picture["sm_thumb_path"] = 'plog-thumb.php?id='.$picture["id"];
$picture["lg_thumb_path"] = 'plog-thumb.php?id='.$picture["id"].'&type=2';
//this is where i try to get the large thumbpath...
$picture["relPathLargeThumb"] = plogger_get_picture_thumb(THUMB_LARGE);
$xml .= '<picture';
...
$id = $picture["id"];
$pic = get_picture_by_id($id);
$path = $pic['url'];
$picture["relPathLargeThumb"] = generate_thumb($path, $id, THUMB_LARGE);
$path = generate_thumb($thumb["path"], $thumb["id"], $thumb["type"]);
header("Location: ".$path);
$path = generate_thumb($thumb["path"], $thumb["id"], $thumb["type"]);
// make sure the generated url and the browser url have the same domain syntax
$browser_www = strpos($_SERVER['HTTP_HOST'], 'www');
$thumb_www = strpos($path, 'www');
if ($broswer_www !== $thumb_www) {
if ($browser_www === false) {
$path = str_replace('www', '', $path);
} else {
$path = str_replace('//', '//www.', $path);
}
}
header("Location: ".$path);
$path = generate_thumb($thumb["path"], $thumb["id"], $thumb["type"]);
// make sure the generated url and the browser url have the same domain syntax
$browser_www = strpos($_SERVER['HTTP_HOST'], 'www');
$thumb_www = strpos($path, 'www');
if ($browser_www !== $thumb_www) {
if ($browser_www === false) {
$path = str_replace('www.', '', $path);
} else {
$path = str_replace('//', '//', $path);
}
}
//echo "<script>alert('$path');</script>";
header("Location: ".$path);
$path = generate_thumb($thumb["path"], $thumb["id"], $thumb["type"]);
// make sure the generated url and the browser url have the same domain syntax
$browser_www = strpos($_SERVER['HTTP_HOST'], 'www');
$thumb_www = strpos($path, 'www');
if ($browser_www !== $thumb_www) {
if ($browser_www === false) {
$path = str_replace('www.', '', $path);
} else {
$path = str_replace('://', '://www.', $path);
}
}
//echo "<script>alert('$path');</script>";
header("Location: ".$path);
1 to 12 of 12