Member
Member
atomicmak   2016-01-05, 10:49
#1

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.

Administrator
Administrator
acrylian   2016-01-05, 10:52
#2

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

Member
Member
atomicmak   2016-01-05, 11:21
#3

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 ?

Administrator
Administrator
acrylian   2016-01-05, 12:58
#4

You did create an album object to tell the function what to display, too?

Member
Member
atomicmak   2016-01-05, 13:38
#5

Well I want to bring in latest uploaded images so I called

in index.php

Member
Member
atomicmak   2016-01-05, 13:39
#6

I just want to make 10 images latest uploaded to show there.

Administrator
Administrator
acrylian   2016-01-05, 13:52
#7

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

Member
Member
atomicmak   2016-01-05, 15:21
#8

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

Administrator
Administrator
acrylian   2016-01-05, 15:39
#9

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.