Thumbnail Path

Phoca Gallery - image gallery extension
intellicent
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Aug 2011, 01:32

Thumbnail Path

Post by intellicent »

I'm trying to find a way to include the thumbnail path in a meta tag. I've seen a way to do it, but I couldn't get it to show up for me.

Any ideas? Is there a clear cut way to do this?
intellicent
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Aug 2011, 01:32

Re: Thumbnail Path

Post by intellicent »

I have the following in my header, but it only returns http://www.harmonconcrete.com and nothing else.

Code: Select all

$strHtml .= $tab.'<meta property="og:image" content="http://'.$_SERVER['HTTP_HOST'].'/'.$item->linkthumbnailpath.'"/>'.$lnEnd;
intellicent
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Aug 2011, 01:32

Re: Thumbnail Path

Post by intellicent »

I guess I should explain why I'm trying to do this...

When a user makes a comment thru the Facebook comments, the URL is sent to Facebook, but there's no image. In order to have an image display in Facebook, I need to establish the thumbnail path in the meta property og:image.

I hope that makes sense.
smoothj1970
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 31 Aug 2011, 01:59

Re: Thumbnail Path

Post by smoothj1970 »

in the head section of the index.php of my template I put a direct link to the image I want:

Code: Select all

<meta property="og:image" content="http://www.yourwebsite.com/images/siteimage.jpg" />
I dont know if just pointing it to images or some other path would work but pointing to a specific image certainly does, at least for me.
intellicent
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 31 Aug 2011, 01:32

Re: Thumbnail Path

Post by intellicent »

That would be great, but I need the PHP code for automatically generating the image in the meta tag. Otherwise you'd have to do it for each page, and that's no good. These would be dynamically generated.
Post Reply