vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Integration with vBulletin - More Open Graph Images (Free) by BOP5 (https://vborg.vbsupport.ru/showthread.php?t=300221)

NeutralizeR 05-03-2016 05:02 PM

VBSEO fix = Edit functions_vbseo.php:

find:
PHP Code:

$r_tags .= '|img'

replace with:
PHP Code:

$r_tags .= '|img|meta property="og:image"'

find:
PHP Code:

$r_tattr 'href|src|action|url|\.open|\.location'

replace with:
PHP Code:

$r_tattr 'href|content|src|action|url|\.open|\.location'


dariyos 07-11-2016 08:04 AM

this mod only generate og:images like this:

Code:

<meta property="og:image" content="http://www.sps-forum.de/attachment.php?attachmentid=32693" />
<meta property="og:image" content="http://www.sps-forum.de/attachment.php?attachmentid=32694" />
<meta property="og:image" content="http://www.sps-forum.de/attachment.php?attachmentid=32692" />
<meta property="og:image" content="http://www.sps-forum.de/attachment.php?attachmentid=32573" />
<meta property="og:image" content="http://www.sps-forum.de/attachment.php?attachmentid=32575" />
<meta property="og:image" content="http://www.sps-forum.de/attachment.php?attachmentid=32574" />
<meta property="og:image" content="http://www.sps-forum.de/attachment.php?attachmentid=32517" />

Facebook can't read that ...

Facebook want it like this:

Code:

<meta property="og:image" content="http://www.sps-forum.de/image.png />
do you have an other solution for this?

If I post external links with the IMG-Tag, it works, but I see only ONE Image when I click on "SHARE" ...
Can't change between the images when I have more than 1 external images.

BirdOPrey5 07-11-2016 09:53 PM

I see no difference between what the mod makes and what you say works.

However, please see in my original description of the mod:

Quote:

*It appears Facebook will never use vBulletin attachments even though the Facebook Debugger does pick them up and show them. I suspect the reason is because attachments are not to actual jpg/gif/png images but instead are links to attachment.php. Nevertheless I included the attachment option because Facebook may change this behavior one day and other social networks may not have this limitation.
Using attachments simply isn't going to work. Facebook doesn't use them for whatever reason. Other services that use og:images might, so I left the option in the mod, but Facebook does not.

dariyos 07-12-2016 05:11 AM

thats bad,

at google+ it works, but I can't change the image in the sharer window, there is only one image available, no arrows to change the image. I think the "sharer" window picks only the first image from the quellcode... any ideas?

I use DBSeo

How can I rewrite the attachment-urls from

http://domain.com/attachment.php?attachmentid=1234

to

http://domain.com/attachments/1234/originalbildname.png

?

BirdOPrey5 07-12-2016 07:18 AM

Even rewriting the URLs using DBSEO or VBSEO doesn't help. Facebook knows it's not a "real" link somehow (likely because of the redirect involved) and just doesn't use it. I've tried for months, feel free to keep trying, but ultimately it is of my opinion attachments will simply never work with Facebook.

As for the Google issue, I can't imagine any way to specify which would be the first image for every single thread on your site.

The first image will be the first image using [IMG] in a post on the page, you could add an image to the first post using an [IMG] tag to force it to be the first one created by the mod. Maybe created a custom BB Code to hide the image using CSS display:none so regular users don't even see it, but seems like a lot more work to me then it is worth.

dariyos 07-12-2016 07:53 AM

Google+:

When I activate the mod, and delete the static picture to show on every thread, the sharer displays the first image, and this is my Logo from the header - not from the post-content.

is it not possible to show all pictures in a row - with arrows I can change the pictures?

BirdOPrey5 07-12-2016 01:17 PM

It would be up to Google to show arrows that can change the picture, not this mod.

If you want to move the extra pictures by this mod below the picture included on every page in your Facebook settings so Google sees that one first, do the following-

1) Edit your headinclude template. Add this code at the very bottom of the template:
Code:

<!-- Extra og images -->
Save changes.

2) Edit the plugin Insert Open Graph Tags find the line:
Code:

$bpfind = '<meta property="og:type" content="article" />';
Change it to:
Code:

$bpfind = '<!-- Extra og images -->';
Save changes.

That should do it, the default Facebook image will be the first og:image on every page.

dariyos 07-13-2016 05:56 AM

When I set a Facebook Image here:

Settings -> Facebook Connection -> Logo URL

then this image is the first image that will show on every site.
when I delete that URL, then my first Image is the Header-Logo. <- thats wrong.

I want it like this:

If a thread has no external Image included, then show the default Facebook Logo.
If a thread has an external Image included, then show the included image, NOT the FB-Logo.

when I set a default Facebook Logo, then it shows always the Facebook Logo, on every site.

BirdOPrey5 07-13-2016 07:29 AM

I'm sorry but if Google finds your header logo first, that's the way their algorithm works. There's no way I know of it control what order the pictures are chosen other than the ordering they are written to the page. The header-logo and such is beyond my control.

VICOS 08-13-2016 06:50 PM

The FB OG Debugger complains about the meta tags being outside of the <head></head> section and refuses to consider them:

Quote:

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.
I believe the HTML standard also prohibits this.


All times are GMT. The time now is 03:32 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01764 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete