zenphoto forums » Themes

Help me customize- Not sure what I am looking for.

(6 posts)
  • Started 6 years ago by pluto459
  • Latest reply from thinkdreams
  1. pluto459

    Member
    Joined: Feb '07
    Posts: 42

    I am trying to setup a celebrity site and after looking at all photo galleries this is the easiest and the best.
    I have downloaded all the themes I can find and have played with them to see which would be the best to mod.

    I want to be able to set the # of thumbnails on the main page and I think I saw on Gild that there is a random pic. I would like that featur as well.

    I do not know PHP well at all so I am sure its all right in front of me. I will be happy to leave your credit on the site or pay you with money if that works too.

    I have setup the test site at http://www.jhig.com but nothing special. I am open to any and all suggestions. Please email me to at buypluto@aol.com in case i miss your reply here.

    Thanks

    Posted 6 years ago #
  2. thinkdreams

    Contributor
    Joined: Jun '06
    Posts: 653

    pluto459-

    You can modify the number of albums per page and images per page in the zp-config file. The FAQ has a bit of information about it at: http://www.zenphoto.org/trac/wiki/ZenphotoFAQ#Ionlysee5albumsonmyfrontpageand15imagesonmyalbumpageswherecanIchangethis

    Posted 6 years ago #
  3. thinkdreams

    Contributor
    Joined: Jun '06
    Posts: 653

    pluto459-

    As far as the random images, you can use a custom function here:

    http://www.zenphoto.org/trac/wiki/ZenphotoHacks#RandomImageCustomFunction

    When using custom functions, be sure you create a separate customfunctions.php file, and "include" (i.e. use a PHP include statement) it in your theme code. That way you aren't editing core zenphoto code, and your functions are portable across upgrades.

    (We'll hopefully have all the custom theming information someday soon on the Wiki - it's getting there.)

    Posted 6 years ago #
  4. pluto459

    Member
    Joined: Feb '07
    Posts: 42

    Thanks will check it out.
    Hopefully yall can get put in Fantastico and everyone can use Zen.

    Posted 6 years ago #
  5. pluto459

    Member
    Joined: Feb '07
    Posts: 42

    How do i change the thumbnail size of the random picture?

    Is it based on the themes size or what?
    Thanks

    Posted 6 years ago #
  6. thinkdreams

    Contributor
    Joined: Jun '06
    Posts: 653

    @pluto-

    One way you could do it:

    <?php $randomImage = getRandomImages(); $randomImageURL = getURL($randomImage); print "<a href='".getURL($randomImage)."' title='Random Picture...'><img src='".$randomImage->getCustomImage(1000, 620, 180, 620, 180, 300, 300)."' alt='".$randomImage->getTitle()."' /></a>"; ?>

    Bear in mind this code is straight from the effervescence theme header code, so the image might not be formatted for what you want.

    The parameters for the getcustomimage function are:

    getCustomImage($size, $width, $height, $cropw, $croph, $cropx, $cropy)

    Thus, you can fiddle with the numbers until you get with you want.

    Posted 6 years ago #

RSS feed for this topic

Reply

You must log in to post.