Description of the image in a post link

Tony Franco

Joined: 2013-03-06
Posts: 53
Posted: Wed, 2013-12-04 13:54

Dear Sirs,

Please, is there a way to put the 'title' and 'description' of the image at a post link?

Like this example at facebook:

It stays like this: http://clip2net.com/s/6jsEZr
Link: http://www.obrasdarte.com/galeriaobrasdarte/Edgardo-Stroetzel/#img=53
Title: Edgardo Stroetzel (name of album)
Link of website: www.obrasdarte.com (promotion)
No description.

It would be possible to add the title of the picture and it description at the link? to show a little part of the description and to know the title of the picture?

Like:

Link of picture: http://www.obrasdarte.com/galeriaobrasdarte/Edgardo-Stroetzel/#img=53
Title of picture | Title of Album
Link of website: www.obrasdarte.com (promotion
Description: 200 caracthers (little)

Thanks and Regards,

Tony

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Fri, 2013-12-06 23:48

It's not there because you don't have the information in the <head> section of your pages.
http://codex.galleryproject.org/Gallery3:Modules:ogp_tags

If you want the name of the album to show up after the name of the photo, you'll have to edit the module to make that change.

 
Tony Franco

Joined: 2013-03-06
Posts: 53
Posted: Tue, 2013-12-10 19:48

Hi tempg!

Thanks by your reply!

Yet with the module ogp_tags, it is not working...

Please, take a look at this link to share at facebook: http://www.obrasdarte.com/galeriaobrasdarte/Camilla-Sanpe/#img=7

The module is active at this moment.

The Title of the picture: "Reflexões de Afrodite" (inside gallery)

The Description of the picture: (inside gallery)

"Técnica: Óleo sobre tela

Dimensões: 70 X 50 cm

Contato:

"

Even the picture that goes with the link is wrong..

But in fact, just go the name of album and main url: http://clip2net.com/s/6mfSH0

What do you think that could be?

Thanks and Regards,

Tony

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-12-11 02:21

First, you have many of the og tags twice; I'm not sure if that's a glitch in the module, or if you're both using the module and adding the tags somewhere else in the code as well.

Of the tags that you do have, there is no og:description tag for the page you linked.

There are other tags, and they're not for the image; they are for the album. For example, it says:
<meta property="og:url" content="http://www.obrasdarte.com/galeriaobrasdarte/Camilla-Sanpe"/>
That means that when you share the page, it's sharing the album, not the specific photo. I think that's also why you're getting a different image than you expected; it's using the highlight image for the album, not for the photo.

Why is it doing that? I don't know. I haven't actually used the og tags module, so I'm not sure if the issue is there. My first thought is that it may be your theme--especially because your url structure is different than I thought it should be: You're using hash tags in the url to get to the photo pages; that's not default behavior.

Try switching to the default theme ("Wind") and sharing to see what it does. BUT: Don't share the same image or album you've already tried; share something different. (Facebook caches some of that imfo and sharing the same album/photo may get you the same results as before even if you change the code.)

 
Tony Franco

Joined: 2013-03-06
Posts: 53
Posted: Wed, 2013-12-11 12:44

Hi tempg!

Thank you!!

I think you are truly right!

I changed to the wind theme, and it worked like you said! ( http://clip2net.com/s/6mumBR )

Even the facebook like/share module is working correctly now, before the 'like' was for the album, now the 'like' is for the picture.

Thank you very much!!

Regards,

Tony

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-12-11 14:03

Glad that's working for you.
The page still has duplicate og tags. I don't think it matters too much, but you should try to remove the extras. The tags showing up twice are: og:image, og:title, og:type, og:url, and og:site_name.

If you're happy with the Wind theme, I'll consider this issue solved/closed.

If you're not happy with the theme and really want to use whatever that was you were using before, I can try to help you get the tags working properly in that theme.

 
Tony Franco

Joined: 2013-03-06
Posts: 53
Posted: Wed, 2013-12-11 18:56

Hi tempg!

Thank you very much!

Some people in the past told me to change to the wind theme, i like a lot of the other theme, but it seens to have conflicts...

So i will stay with the wind. It´s more fast too...

I don´t know why og tags are duplicated, maybe some conflict between modules, how i discover from where is comming each og tags?

I have an extra doubt, i don´t know if you want that i open another topic....

This image ilustrate: http://clip2net.com/s/6mHGvV - is it possible to increase the length ? for the main page too.

Thanks and Regards,

Tony

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-12-11 20:01
Quote:
how i discover from where is comming each og tags?

First, try to deactivate the ogtags module (since we know that that module is adding one set), then see what's left.

Quote:
is it possible to increase the length ?

Add this to the bottom of screen.css to make the wrapper wider: #doc4 {width: 85em;} OR if you want to use px instead, use #doc4 {width: 1080px;}

 
Tony Franco

Joined: 2013-03-06
Posts: 53
Posted: Wed, 2013-12-11 22:21

Hi tempg!

Quote:
Add this to the bottom of screen.css to make the wrapper wider: #doc4 {width: 85em;} OR if you want to use px instead, use #doc4 {width: 1080px;}

Perfect!! :) Thank you!

Quote:
First, try to deactivate the ogtags module (since we know that that module is adding one set), then see what's left.

I made the test you said, the result: http://clip2net.com/s/6mMn02

I need social share, and OGP Tags or Facebook Opengraph... what´s your suggestion?

Thanks and Regards,

Tony

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Wed, 2013-12-11 23:12

I'm surprised that none of them are complete. Maybe make a note on the individual module threads.

In the meantime, if the fb:app id was correct in the sample page you referenced earlier, social_share is probably the one you should keep, since this all started with Facebook sharing needs and it's the only one of the 3 that also includes the share buttons you're currently using. (There's no FB ids listed in the last image you linked, but they were listed in the source code for an earlier page you sent, so I'll just assume you want them included.)

Back up everything you currently have. Place the file I'm attaching in the "helper" subfolder of the social_share module to replace the file that's already there.

The only thing you'd then be missing is the og:image:type tag, which isn't a killer. (I didn't add it because I need to first look at all of the type decs possible. It's "image/jpeg" for Gallery thumbs, but that could change, plus you may share other pages later that aren't images, so I'm skipping that for now.)

EDIT: Forgot to mention that you'll have to rename the attached file to "social_share_theme.php"--basically, just delete the "_.txt" from the end of the filename.

 
Tony Franco

Joined: 2013-03-06
Posts: 53
Posted: Thu, 2013-12-12 13:56

Hi tempg!

Thank you!

Quote:
In the meantime, if the fb:app id was correct in the sample page you referenced earlier,

Sorry.. when i did the test, the numbers disappeared... now it is there!

Quote:
social_share is probably the one you should keep

Only social_share is there!

Quote:
Place the file I'm attaching in the "helper" subfolder of the social_share module to replace the file that's already there.

Done! :)

At this moment: http://clip2net.com/s/6n1MKb

Thanks and Regards,

Tony

 
tempg

Joined: 2005-12-17
Posts: 1857
Posted: Thu, 2013-12-12 15:13

The image you linked last didn't have anything in the description field, but I checked the actual site and it's working.

Also, note that your old links (e.g. http://www.obrasdarte.com/galeriaobrasdarte/Edgardo-Stroetzel/#img=53) no longer link to the photos because the urls have changed when you changed themes; it's not a big deal though (hopefully) because the links still get you to the album that contains the photo. This is probably better because every other theme (that I know of) does urls the way the Wind theme does and it's more future-proof if you ever upgrade Gallery or change themes.

Looks good!

 
Tony Franco

Joined: 2013-03-06
Posts: 53
Posted: Thu, 2013-12-12 17:28

Hi tempg!

You are right! now each photo can be "Like" and "Share".

It´s incredible your skills with gallery!

Thank you very much!!! :)

I wish a beautiful Christmas and New Year to you and your family!! :)

Thanks and Regards,

Tony

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sat, 2013-12-14 19:19

Hello, it works fine. I'm happy. I have looked for it and overlook it. Folder helpers ... :/
But woks fine only if it is written in the PHP file "description" with only one "s". ;)
Thanks!

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Sat, 2013-12-14 19:21

Facebook Debugger says:

Quote:
Errors That Must Be Fixed
Meta Tags In Body Your page has meta tags in the body instead of the head. This may be because your HTML was malformed and they fell lower in the parse tree.
Please fix this in order for the tags to be usable.