The simpler media website CMS
Forum search only. You might also want to search on the main site's user guide.
Forum RSS
Visit the troubleshooting guide.
Visit the paid support page.
Your support helps pay for this server, and helps development of zenphoto. Thank you!
Visit the donations page
// STOP DESIGN if ($_GET['f'] == "true") { $thumb_crop = true; $thumb_size = 230; $thumb_crop_width = 210; $thumb_crop_height = 60;};
} else { $thumb = false; } $size = $_GET['s']; if ($_GET['f'] == "true") { $size = $size."f";};} else { return false;}`EDIT template-functions.php- Find - should be at line 529 to 533`function printAlbumThumbImage($alt, $class=NULL, $id=NULL) { echo " (($class) ? " class=\"$class\"" : "") . (($id) ? " id=\"$id\"" : "") . " />";}`- Add Under`// STOP DESIGN FUNCTIONfunction printAlbumThumbImageStopdesign($alt, $class=NULL, $id=NULL) { echo " (($class) ? " class=\"$class\"" : "") . (($id) ? " id=\"$id\"" : "") . " />";}`
Comments
But you can do the following to make it work..
There are two files you'll need to edit. These files are located in the "zen" folder.
- i.php
- template-functions.php
EDIT i.PHP
- Find - should be on line 24 to line 33
`
if(isset($_GET['s']) && $_GET['s'] < 3000) { // Disallow abusive size requests.
if ($_GET['s'] == "thumb") {
$thumb = true;
} else {
$thumb = false;
}
$size = $_GET['s'];
} else {
return false;
}
`
- Replace with this
`
if(isset($_GET['s']) && $_GET['s'] < 3000) { // Disallow abusive size requests.
if ($_GET['s'] == "thumb") {
$thumb = true;
// STOP DESIGN
if ($_GET['f'] == "true") {
$thumb_crop = true;
$thumb_size = 230;
$thumb_crop_width = 210;
$thumb_crop_height = 60;};
} else {
$thumb = false;
}
$size = $_GET['s'];
if ($_GET['f'] == "true") { $size = $size."f";};
} else {
return false;
}
`
EDIT template-functions.php
- Find - should be at line 529 to 533
`
function printAlbumThumbImage($alt, $class=NULL, $id=NULL) {
echo "
(($class) ? " class=\"$class\"" : "") .
(($id) ? " id=\"$id\"" : "") . " />";
}
`
- Add Under
`
// STOP DESIGN FUNCTION
function printAlbumThumbImageStopdesign($alt, $class=NULL, $id=NULL) {
echo "
(($class) ? " class=\"$class\"" : "") .
(($id) ? " id=\"$id\"" : "") . " />";
}
`
Now I'm running the newest 1.0.1 beta with the Stopdesign theme... and it looks like everything is working just fine
i have edited stopdesing for use only zenphoto function ..
I like it better with square thumbnails though. I'll try to include a version that works by default with the 1.0 release.