Member
Member
peh   13-01-2006, 11:26
#1

Does anyone know if the Stopdesign theme works with 1.0beta?... or if there is a new version somewhere?

Member
Member
vsnguyen   13-01-2006, 16:54
#2

the stopdesign doesn't work for 1.0beta!!

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

[b]EDIT i.PHP[/b]

  • 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;

}

`

[b]EDIT template-functions.php[/b]

  • Find - should be at line 529 to 533
    `

function printAlbumThumbImage($alt, $class=NULL, $id=NULL) {

echo "";

}

`

  • Add Under
    `

// STOP DESIGN FUNCTION

function printAlbumThumbImageStopdesign($alt, $class=NULL, $id=NULL) {

echo "";

}

`

Member
Member
peh   13-01-2006, 19:17
#3

Thanks a lot!

Now I'm running the newest 1.0.1 beta with the Stopdesign theme... and it looks like everything is working just fine

Member
Member
calca   19-01-2006, 20:17
#4

http://nekton.mine.nu/archives/2006/01/19/stopdesign-for-zenphoto/

i have edited stopdesing for use only zenphoto function ..

Developer
Developer
trisweb   22-01-2006, 00:04
#5

Hehe, it should allow arbitrarily sized thumbs now also (with 1.0b). Not documented, of course. We're workin on that ;-)

I like it better with square thumbnails though. I'll try to include a version that works by default with the 1.0 release.

Member
Member
calca   22-01-2006, 10:28
#6

i don't found the function and i edited to call know method.

Developer
Developer
trisweb   22-01-2006, 23:44
#7

The function's not there yet; it was made possible though... sorry about that. I'll try to make it work with the next release...

Member
Member
calca   24-01-2006, 20:28
#8

o so good, with new relase i will edit stopdesign theme..

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.