Jump to content

Gallery Documentation

Featured Replies

Posted

Hello.

Can we get documentation for the gallery_image class in a similar manner to how IPSMember and ccsFunctions is done? I'm getting better at this so I can figure out a lot on my own, but I'd still like to see explanations on functions like makeImageTag, makeImageLink, fetchImages. For example in makeImageTag what are the available choices for the thumbClass option? That kind of thing.

Yes, this is on my todo list.

  • Author

Yes, this is on my todo list.


Nice. Can't wait. :)

http://community.invisionpower.com/resources/documentation/index.html/_/developer-resources/api-methods/ipgallery-helper-classes-images-r801

  • Author

Yup this is the information I was looking for in regards to fetchImages and makeImageTag. Perfect. Thank you.

YW. I'd like to flesh it out with more examples, and there are several other classes to document, but the albums and images classes are done, and probably the most necessary.

More examples would be helpful. With all the issues I am having with the Gallery, I am wondering if there is a better way to structure it -- for instance; Albums versus Categories.

  • 7 months later...

Link above from bfarber is dead.

Looking for documentation on the usage of Gallery functions like makeImageTag

Brandon,

Just a quick question regarding the docs. I see the documentation for the helper classes, but when I see an "object" passed as an attribute into a given template, how do I know what is available within it. For example I was editing the sharedmedia bbcode and it currently has something like $image['thumb']. How do I know what other arguments/keys are in the $image array? Is that documented anywhere (defaults in the IPB build, as I'd imagine these objects can be custom as well). What I'm really trying to figure out is how to do that same kind of default lightbox popup to a gallery image but with a larger size in the topic/post preview.

If I were attempting to figure out what data was available in the skin template, I would add this to the skin template:

<php>var_dump($variable);</php>

Got ya, thanks Brandon!

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.