addition to the theme zp-Base

Hi,
I have a website based on zp-base theme and i want to have top slider where I an put 10 latest added image by date.
i am no programmer but if someone can guide me how to inject some sort of code can fetch and play as slideshow I would be happy for the help.

Comments

  • acrylian Administrator, Developer
    Sorry, if you are no programmer this might be complicated. Quick answer you can use the printSlideshow() function from one of the two slideshow plugins to create a slider where needed. See its documentation on the functions documentation
  • I have enabled slideshow2 plugin and added code as you said in index.php

    I enabled all checkbox under theme pages under slideshow2 plugin settings but somehow does not show up. any further help you can tell ?
  • acrylian Administrator, Developer
    You did create an album object to tell the function what to display, too?
  • Well I want to bring in latest uploaded images so I called

    <?php printSlideshow(); ?>
    in index.php
  • I just want to make 10 images latest uploaded to show there.
  • acrylian Administrator, Developer
    You didn't read the documentation of the function, did you?
    http://www.zenphoto.org/documentation/plugins/media/_zp-extensions---slideshow.php.html#functionprintSlideShow (that is the older plugin but both work the same)

    That will not work because you need to pass an album object to it to get any display at all. To get the latest images it is a bit more. You first need to setup a dynamic album for all images, set it to the appropriate sorting and then pass its album object to the function.

    Info about objects:
    http://www.zenphoto.org/news/zenphotos-object-model-framework
  • But then i don't want the dynamic album to visible in my general gallery.

    I have bird gallery of INDIA which is scientific display by its own family and adding an album random is breaking its flow.

    I just want to show visitors some randome 10-15 latest uploaded images there on index page.

    my web is : www.wildart.in
  • acrylian Administrator, Developer
    But then i don't want the dynamic album to visible in my general gallery.

    That's no problem, just don't publish it:
    http://www.zenphoto.org/news/an-overview-of-zenphoto-users#rules-of-protection-andvisibility-for-zenphoto-obj

    Without using an album you would have to built the slider completely yourself based on the statistics function. That might not be something for your as you said you are no programmer.
Sign In or Register to comment.