ZenphotoCMS Forum
Stopdesing Theme for 1.0b ? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Stopdesing Theme for 1.0b ? (/thread-221.html)



Stopdesing Theme for 1.0b ? - peh - 13-01-2006

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




Stopdesing Theme for 1.0b ? - vsnguyen - 13-01-2006

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

}

`




Stopdesing Theme for 1.0b ? - peh - 13-01-2006

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




Stopdesing Theme for 1.0b ? - calca - 19-01-2006

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

i have edited stopdesing for use only zenphoto function ..




Stopdesing Theme for 1.0b ? - trisweb - 22-01-2006

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.




Stopdesing Theme for 1.0b ? - calca - 22-01-2006

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




Stopdesing Theme for 1.0b ? - trisweb - 22-01-2006

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...




Stopdesing Theme for 1.0b ? - calca - 24-01-2006

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