zenphoto forums » Themes

Stopdesing Theme for 1.0b ?

(8 posts)
  1. peh

    Member
    Joined: Jan '06
    Posts: 20

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

    Posted 7 years ago #
  2. vsnguyen

    Junior
    Joined: Oct '05
    Posts: 7

    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

    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 "<img src=\"" . getAlbumThumb() . "\" alt=\"$alt\"" .
    (($class) ? " class=\"$class\"" : "") .
    (($id) ? " id=\"$id\"" : "") . " />";
    }

    - Add Under

    // STOP DESIGN FUNCTION
    function printAlbumThumbImageStopdesign($alt, $class=NULL, $id=NULL) {
    echo "<img src=\"" . getAlbumThumb() . "&f=true\" alt=\"$alt\" width=\"210\" height=\"60\"" .
    (($class) ? " class=\"$class\"" : "") .
    (($id) ? " id=\"$id\"" : "") . " />";
    }

    Posted 7 years ago #
  3. peh

    Member
    Joined: Jan '06
    Posts: 20

    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

    Posted 7 years ago #
  4. calca

    Junior
    Joined: Jan '06
    Posts: 6

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

    i have edited stopdesing for use only zenphoto function ..

    Posted 7 years ago #
  5. Zenphoto development team
    trisweb

    Project Manager
    Joined: Sep '05
    Posts: 1,833

    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.

    Posted 7 years ago #
  6. calca

    Junior
    Joined: Jan '06
    Posts: 6

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

    Posted 7 years ago #
  7. Zenphoto development team
    trisweb

    Project Manager
    Joined: Sep '05
    Posts: 1,833

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

    Posted 7 years ago #
  8. calca

    Junior
    Joined: Jan '06
    Posts: 6

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

    Posted 7 years ago #

RSS feed for this topic

Reply

You must log in to post.