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)

RichieBoy67 03-31-2014 06:13 PM

Great work! Thanks

fxdigi-cash 08-28-2014 05:42 AM

Thanks for the great mod. There is something I don't understand. why only external images displayed, but not thumbnails??

even I change the option from the settings to thumbnail, still the same images, no thumbnails.

BirdOPrey5 08-28-2014 12:36 PM

Facebook won't recognize images going through a PHP page, only direct links to real images.

fxdigi-cash 10-23-2014 12:23 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2512976)
Facebook won't recognize images going through a PHP page, only direct links to real images.

but it does recognize the 1st and 2nd pictures made as attachments... however, no more than 2 images...

BirdOPrey5 10-25-2014 02:14 PM

Quote:

Originally Posted by fxdigi-cash (Post 2519847)
but it does recognize the 1st and 2nd pictures made as attachments... however, no more than 2 images...

That must be new behavior then. I did extensive testing months ago and it would not use any vBulletin attachments as images. They would be a big improvement on FB's part.

mykkal 02-27-2015 11:01 PM

Does this work on vb 4.2.3? I have php 5.5 running

BirdOPrey5 02-28-2015 10:55 AM

I don't see why it wouldn't, but I haven't tested against 5.5 specifically.

m2006 08-26-2015 01:31 AM

install on vbulletin 4.2.3 worked

NeutralizeR 04-10-2016 03:25 AM

Not sure why (I moved the website to HTTPS a few weeks ago), but i had to disable the ":secure_url" in the plugin to make it work for attachments:

PHP Code:

  //  if(strtolower(substr($thisimg, 0, 5)) == 'https') //If https site  //    $secure_og = ':secure_url'; //   else      $secure_og = ''; 

With secure_url enabled:

Code:

Object at URL ... of type 'article' is invalid because a required property 'og:image:url' of type 'url' was not provided.
Test platform: https://developers.facebook.com/tools/debug/og/object/

NeutralizeR 05-02-2016 11:30 AM

vBSEO deals with attachment URL's like this:
PHP Code:

if(!isset($VBSEO_REWRITE_TEXTURLS)){$r_tags 'a|span|iframe';if(VBSEO_ABSOLUTE_PATH_IN_URL){$r_tags .= '|form|script|link';}if(VBSEO_ABSOLUTE_PATH_IN_URL||VBSEO_REWRITE_ATTACHMENTS||VBSEO_REWRITE_AVATAR){$r_tags .= '|img';}$r_tattr 'href|src|action|url|\.open|\.location';$newtext preg_replace ('#(<(?:'.$r_tags.')([^>]*?)(?:'.$r_tattr.')\s*[=\(]\s*["\'])([^"\'>\)]*)(.*?[\>])([^<]*)(</a>)?#ise','vbseo_replace_urls(\'$1\', \'$3\', \'$2\', \'$4\', \'$5\', \'$6\')',$newtext); 

So changing "content" to "href" makes the URL use vbseo version
PHP Code:

$bop5_og_tags .= "<meta property="og:image$secure_og" content="$thisimg" />\r\n"

But of course, we can't use href attribute with meta tag.

Adding meta and content to the regexp makes all meta content tags start with forum URL.

Do you have any advice how to use vbseo powered attachment URLs in og:image?


All times are GMT. The time now is 05:04 PM.

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.01063 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_code_printable
  • (3)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