![]() |
|
"pin it" button for Zenphoto - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: "pin it" button for Zenphoto (/thread-10031.html) |
"pin it" button for Zenphoto - kilroy - 31-05-2012 I could not find any mention of Pinterest on the forum or user guide, so I supposed there was no "pin it" button for Zenphoto and embarked into making one. Here is what I have done so far: ` [img]//assets.pinterest.com/images/PinExt.png[/img] I still have a little problem: I would like to mention the author in the description. As I found no author field for an image, I planned to use the copyright metadata. Thanks in advance for any hints. "pin it" button for Zenphoto - acrylian - 31-05-2012 Well, the place to search is the extensions section but there is nothing for Pinterest yet. So any plugin will be welcome which is what you need to write actually. Look at the plugin tutorial. Image/albums don't have an author but an owner which is rights management releated. So the metadata field is the right one to use. Zenphoto has functions for everything actually. You will need to look at the object model (getCopyright is a image class method not a standalone function). There is a tutorial on the user guide. We have several cosntants like WEBPATH or FULLWEBPATH for the "full" url. "pin it" button for Zenphoto - sbillard - 31-05-2012 Zenphoto links are typically to the install, not to the server root. There is
[edit] I see acrylian has answered while I was typing. Other metadata fields to consider are: "pin it" button for Zenphoto - fdnyfish - 01-06-2012 I added your PINIT code after my PRINTADDTHIS. My addthis buttons and pinit button are on 2 seperate lines on my webpage. how can I get the pinit button to display on the same line as the addthis? &media=&description=" class="pin-it-button" count-layout="horizontal"> "pin it" button for Zenphoto - acrylian - 01-06-2012 Well, update the HTML respectively the CSS of your theme. "pin it" button for Zenphoto - fdnyfish - 01-06-2012 thats what i'm asking how to do "pin it" button for Zenphoto - acrylian - 01-06-2012 How shall we answer that without even knowing which theme you are using? Aligning html elements via css is not really Zenphoto specific. "pin it" button for Zenphoto - fdnyfish - 01-06-2012 i feel dirty
&media=&description=" class="pin-it-button" count-layout="horizontal">
"pin it" button for Zenphoto - acrylian - 01-06-2012 Sorry, a 3rd party theme I don't know. Maybe its author will respond. Btw, please learn how to escape code correctly. Use "pin it" button for Zenphoto - swamyg1 - 05-06-2012 Ooh this code works but does not pull in the image. Has anybody been able to figure out how to get the image to post? |