Member
Member
chross   30-03-2011, 11:13
#1

Hi folks,
I really want to integrate Supersize! by buildinternet.com into my frontpage. My idea is that the newest uploads to the page are shown (dynamic album) upon entering my page.

My problem is that Supersize! uses a javascript object to store information about images used. How I can modify zenphoto to output the information in the way I need?

The sample code looks like:

`

slides : [ //Slideshow Images

                                                    {image : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.1/slides/quietchaos-kitty.jpg', title : 'Quiet Chaos by Kitty Gallannaugh', url : 'http://www.nonsensesociety.com/2010/12/kitty-gallannaugh/'},

                                                    {image : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.1/slides/wanderers-kitty.jpg', title : 'Wanderers by Kitty Gallannaugh', url : 'http://www.nonsensesociety.com/2010/12/kitty-gallannaugh/'},

                                                    {image : 'http://buildinternet.s3.amazonaws.com/projects/supersized/3.1/slides/apple-kitty.jpg', title : 'Applewood by Kitty Gallannaugh', url : 'http://www.nonsensesociety.com/2010/12/kitty-gallannaugh/'}

                                            ]

`

Administrator
Administrator
acrylian   30-03-2011, 11:52
#2

Please visit our user guide.

Member
Member
chross   11-04-2011, 11:31
#3

Hi acrylian,
I had a look, but frankly I don't know what yo want me to find there. The third-party extension section is very basic and the functions guide does not contain a function that prints imagelinks in the way I want.

Please give me one or two more hints, I don't expect anyone to do the work for me, but I am stuck.

Cheers,
Christian

Administrator
Administrator
acrylian   11-04-2011, 12:31
#4

I assume you read the theming tutorial. Then get familiar with Zenphoto's object model framework. That you will need to accomplish what you want. (And there are functions to print the full image link as you have in your example...).

There is a plugin name "image_album_statistics" to get the latest items. As most of our functions consist of a pair of a "get" (gets data) and "print" variant (which prints the data got by the "get" variant). You will have to use the "get" variant as a guide to create a function for your purpose using the mentioned object model.

Member
Member
chross   12-04-2011, 09:09
#5

Thanks a lot.
Will try now.

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