Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthordankdank
    • CommentTimeMay 3rd 2008
     
    I am using the Softer theme (but could use Air, if that would help solve my problem). I am using, for example, 9 images in an album.

    In options I enable thumbnail navigation -- and use 0 for Thumbnail Navigation Range, to use all the images.

    The only way I can find to control the order of the navigation thumbnails is by uploading images one by one, in the reverse of the order I want them to appear (that is, I upload the last image first and the first image last). If I want to change the image arrangement (new order or add a new image), I have to delete all the images and upload every image one by one using the new image arrangement.

    The sort-order thumbnail options in Administration do not seem to have an effect on the order of the navigation thumbnails. I would prefer to sort the navigation thumbnails on image file name, but could if necessary sort on caption.

    Am I doing something wrong? Is there a code change I can make to be able to sort the navigation thumbnails on image file name or caption?
    • CommentAuthormikethecow
    • CommentTimeFeb 25th 2009
     
    Hi

    i was having the same issue - found this, can't remember exactly how it works but this forced the thumbs into the right sort order for me

    <code>
    function cmp($a, $b)
    {
    if ($a == $b) {
    return 0;
    }
    return ($a < $b) ? -1 : 1;
    }

    $image_list =usort($GLOBALS["image_list"], "cmp");

    </code>

    HTH