Pages (2): 1 2   
Member
Member
drsprite   20-06-2013, 12:53
#1

I'm trying to modify the zpMasonry theme's album view to not show the standard thumbnails, but to instead try to use the JavaScript Masonry library that it has built in.

For the album view, I'm looking to have all photos "masoned" into each other. Much like the pink squares on the Masonry dev page: http://masonry.desandro.com/methods.html#layout

I understand where in album.php the developer is calling the photo thumbnails, but I can't find the right Zenphoto function to display thumbnails to make this idea work.
http://www.zenphoto.org/documentation/functions/_template-functions.php.html

Any ideas or tips on how I could achieve this would be greatly appreciated.

Administrator
Administrator
acrylian   20-06-2013, 13:08
#2

I suggest to start with the theming tutorial to learn the basics of Zenphoto theming. zpMasonry is a quite advanced theme - as all of the developer are - which does a lot of special things.

Member
Member
ayan   20-06-2013, 14:56
#3

@drsprite..a questiom a bit out of the topic since you are using masonry theme...are you using the register and addthis script on the theme and is functioning properly? Just asking out of curiosity..

Member
Member
drsprite   20-06-2013, 15:05
#4

@ayan: nope, I'm not using those at this time. I have added some custom facebook/twitter/pinterest sharing code to it though.

Member
Member
drsprite   20-06-2013, 15:06
#5

@acrylian: the theme tutorial could use a bit of updating. All the hyperlinks for Zenphoto calls are going to 404 pages on php.net. I would have expected those hyperlinks to go to a Zenphoto function help page or something (and not PHP.net).

This is the right tutorial, right? http://www.zenphoto.org/news/theming-tutorial

Administrator
Administrator
acrylian   20-06-2013, 16:16
#6

Yes, that is the correct tutorial. Those wrong links are actually cause by the automatic generated documentation. Thanks for the note, I will take a look. We probably remove the links anyway since we probably use a new documentation generated soon and they change all the time. Small team and too less resources to check everything everytime…;-{

It should be easy to find them on the documentation itsefl. There is a article on the user guide with some quick links that hopefully still work.

Btw, I replied to your email meanwhile.

Member
Member
ayan   20-06-2013, 16:26
#7

@drsprite..would you mind sharing the custom codes ? It will solve a bit of my problem. And also if you find a way to "mason" the thumbs.

Administrator
Administrator
acrylian   20-06-2013, 16:28
#8

@ayan: You could also just use the code these services provide and paste them. Or directly from addthis itself (which is what we do on our site btw).

Member
Member
drsprite   20-06-2013, 16:34
#9

@acrylian: no problem on the documentation. I understand it's a small community here :)

Thanks for the reply, will talk about it internally.

Member
Member
ayan   20-06-2013, 16:57
#10

@acrylian...the custom code provided by addthis is in html. How can i place html in php?

Member
Member
drsprite   20-06-2013, 17:12
#11

@ayan, Easiest way is to end the PHP code block before switching to HTML tags, then at the end of HTML code, re-start the PHP code blocks.

`

Hello HTML text

`

Administrator
Administrator
acrylian   20-06-2013, 17:26
#12

Sorry, I really assumed that the php basics like this were known. I would like to recommend to learn php basics anyway if starting to customize themes.

You will need them everywhere. And the more your like to change the more you need to dig into PHP.

While this site is not always accurate in its general documentation of web techniques it has a nice tutorial for those basics:
http://www.w3schools.com/php/php_intro.asp

Administrator
Administrator
acrylian   20-06-2013, 19:00
#13

Btw, the broken links in the theming tutorial should be fixed. Always let us know if you find some more.

Member
Member
drsprite   20-06-2013, 19:18
#14

Sounds good!

Member
Member
ayan   21-06-2013, 14:25
#15

i tried out thw custom codes but the buttons are not showing up. Is it because i am using wampserver?

Member
Member
ayan   21-06-2013, 14:32
#16

I think zp-masonry does not function in real terms of "mason"ing the albums as it functions of displaying the albums and images are rigid.
A lot modification is required tp have its title as masonry. I bet modifying the themefunctions file will help. Any views regarding this?

Member
Member
ayan   22-06-2013, 12:19
#17

The jquery.masonry.js file doesnt get called anywhere in the whole theme to function. How is then the theme masoning anyway. Asking out of eagerness..

Administrator
Administrator
acrylian   22-06-2013, 12:59
#18

It is called in the footer.

Member
Member
ayan   22-06-2013, 15:29
#19

But doesnt mason the way desandro masons.

Member
Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.