Pages (2): 1 2   
Member
Member
kilroy   31-05-2012, 18:52
#1

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 created a custom function to return the full URL of the current page and another one to return the website root URL as I found no equivalents in Zenphoto.
Do they exist?

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.
Unfortunately the getCopyright() function returns an error when used on an image page.
How can I display the contents of this field?

Thanks in advance for any hints.

Administrator
Administrator
acrylian   31-05-2012, 19:03
#2

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.

Member
Member
sbillard   31-05-2012, 19:05
#3

Zenphoto links are typically to the install, not to the server root. There is WEBPATH and FULLWEBPATH. There are functions to give you the url to a particular object which is what is usually needed.

GetCopyright() is a method of the image object. Since you do not quote the error, this is about the best help I can be.

[edit] I see acrylian has answered while I was typing.

Other metadata fields to consider are: artist, byline, or copyright holder depending on the custom.

Member
Member
fdnyfish   01-06-2012, 15:52
#4

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">

Administrator
Administrator
acrylian   01-06-2012, 15:59
#5

Well, update the HTML respectively the CSS of your theme.

Member
Member
fdnyfish   01-06-2012, 17:00
#6

thats what i'm asking how to do

Administrator
Administrator
acrylian   01-06-2012, 17:17
#7

How shall we answer that without even knowing which theme you are using? Aligning html elements via css is not really Zenphoto specific.

Member
Member
fdnyfish   01-06-2012, 18:40
#8

i feel dirty

                " title="">

                " title="">>

                >





                " title=""> »

                    " title="">



                » 












                " title="">

&media=&description=" class="pin-it-button" count-layout="horizontal">

        " class="colorbox">
Administrator
Administrator
acrylian   01-06-2012, 18:43
#9

Sorry, a 3rd party theme I don't know. Maybe its author will respond.

Btw, please learn how to escape code correctly. Use backticks.

Member
Member
swamyg1   05-06-2012, 14:41
#10

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?

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