Can you help me in defining image url? [now for album...]

pulser
pulser's picture

Joined: 2005-05-29
Posts: 88
Posted: Sun, 2011-07-17 21:02

Sorry for the dumb question in beforehand.
But, can you please help me in tuning up Facebook Comment module?

In fact, I've already succeeded in it mostly. But, can not tune the syntax of the tag properly in order FB to get proper thumb from the page of photo.tpl.

I'm adding the tag into head of theme.tpl (matrix theme), but how can I get the variable which containts the main image URL of photo page, that FB should get as a base for thumb?
I've tried this.

Quote:
{* Include this theme's style sheet *}
<meta property="og:image" content="{$image}"/>
<link rel="stylesheet" type="text/css" href="{g->theme url="theme.css"}"/>

I've tried already also <meta property="og:image" content="{$imageViewLink}"/>, but failed.

Can you help me in this string composition? Thanks in advance...

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2011-07-17 21:39
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2011-07-17 21:43

I ask because different themes have different variables available in each template.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
pulser
pulser's picture

Joined: 2005-05-29
Posts: 88
Posted: Mon, 2011-07-18 06:41

Matrix one.

Quote:
head of theme.tpl (matrix theme), but

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-07-18 12:10

I'll have to get back to you this afternoon as my day job is calling.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
pulser
pulser's picture

Joined: 2005-05-29
Posts: 88
Posted: Mon, 2011-07-18 12:37
suprsidr wrote:
I'll have to get back to you this afternoon as my day job is calling.

Thank you in advance.

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Mon, 2011-07-18 13:24

Url to the main image will be something like <meta property="og:image" content="{g->url arg1="view=core.DownloadItem" arg2="itemId=`$theme.item.id`"}"/>

--
dakanji.com

 
pulser
pulser's picture

Joined: 2005-05-29
Posts: 88
Posted: Mon, 2011-07-18 19:10

Thanks!
Works like a charm.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2011-07-18 19:22

Oh, I'm sorry, I thought you wanted the thumbnail.

Quote:
how can I get the variable which containts the main image URL of photo page, that FB should get as a base for thumb?

which is not directly available in the photo.tpl template.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
pulser
pulser's picture

Joined: 2005-05-29
Posts: 88
Posted: Sat, 2011-10-15 21:47

And, if to continue the idea...

How can I get a number of thumb urls, if I try to build the Facebook multi-previews for album pages (not photo ones with one photo)?

In fact, I guess, theme.tpl should be modified again, not album.tpl, but with what string?

Smth like:

Quote:
<meta property="og:image" content='{g->image id="%ID%" item=$child image=$child.thumbnail class="%CLASS% giThumbnail"}'/>

Does not work :(