vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=300221

BirdOPrey5 14 Aug 2016 10:21

This mod does put them in the <head> area of the page, at least on the default vBulletin styles.

If you have Facebook enabled on your site the mod looks for the text


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

which is in the <head> area when Facebook integration is enabled and adds the extra og:image tags below it.

If the Facebook platform is not enabled it looks for


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and uses that instead. In both cases the code remains inside the <head> section of the source code.

VICOS 14 Aug 2016 17:34

Quote:

Originally Posted by BirdOPrey5 (Post 2574716)
This mod does put them in the <head> area of the page, at least on the default vBulletin styles.

If you have Facebook enabled on your site the mod looks for the text


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

which is in the <head> area when Facebook integration is enabled and adds the extra og:image tags below it.

If the Facebook platform is not enabled it looks for


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and uses that instead. In both cases the code remains inside the <head> section of the source code.

Hi Joe,

My bad and my apologies for the incorrect assessment.

You code was not inserting anything due to the admin settings I had chosen. I had added the other meta og:image code in the postbit_attachmentthumbnail template many months ago and had forgotten about it.

It all works now as you say.

Again, my apologies.

VICOS 14 Aug 2016 18:39

Quote:

Originally Posted by NeutralizeR (Post 2568725)
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I just confirmed this issue when using SSL for your forum. The FB debugger loses it mind and FB actual refuses to see the images.

As soon as I comment out ":secure_url" in the plugin, FB debugger is happy and FB actual sees ALL images and lets you choose which one you want.

It even works when using attachment images, i.e. the image url is:

attachment.php?attachmentid=###

BTW, I am using vB 4.2.3 PL2.

elsa23 04 May 2017 22:56

Hi, I use a Highslide image resize , so all pictures in [IMG] are resized. I had created a [img2] bbcode that not resize image, I use it to show full size in presentation
Is it possible to use [img2] for Open Graph image instead of [IMG] tag or use both together ?
Thanks

Edit
in the xml to import, I had remplaced :
$picfindregex = "\[img](.+)\[/img]";

with:
$picfindregex = "\[img2](.+)\[/img2]";

Now, Open Graph uses [img2] instead of [img]
Is it possible ton use [img] and [img2] together please

BirdOPrey5 06 May 2017 09:47

if you put an asterisk after the 2 it should tell the regex the 2 is optional and work either way:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But not tested. Worse case just go back to the way you had it, no lasting damage.

elsa23 06 May 2017 12:29

Quote:

Originally Posted by BirdOPrey5 (Post 2586234)
if you put an asterisk after the 2 it should tell the regex the 2 is optional and work either way:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

But not tested. Worse case just go back to the way you had it, no lasting damage.

Great, it works!! Thanks a lot http://forum-elodiefrege.com/images/smilies/elo036.gif

elsa23 07 May 2017 16:50

Hi, I use @MarkFL youtube bbcode
http://www.vbulletin.org/forum/showthread.php?t=319623

So the bbcode is :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I tried to edit this line but it does not work, can you help me please


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


BirdOPrey5 08 May 2017 10:16

Quote:

Originally Posted by elsa23 (Post 2586282)
Hi, I use @MarkFL youtube bbcode
http://www.vbulletin.org/forum/showthread.php?t=319623

So the bbcode is :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

I tried to edit this line but it does not work, can you help me please


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Try...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


elsa23 08 May 2017 10:46

Quote:

Originally Posted by BirdOPrey5 (Post 2586293)
Try...


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Thank you so much https://www.vbulletin.org/forum/external/2017/04/2.gif

chikuru 11 Aug 2017 14:11

How can I set default image if theres no attachment?

BirdOPrey5 12 Aug 2017 15:53

The default image if there are no other images is set in the Admin CP -> Settings => Options -> Facebook Settings

chikuru 13 Aug 2017 17:51

Quote:

Originally Posted by BirdOPrey5 (Post 2589308)
The default image if there are no other images is set in the Admin CP -> Settings => Options -> Facebook Settings

Hmm, looks like that doesnt work. If theres no image, the image that appear is one of the image from the theme

BirdOPrey5 14 Aug 2017 22:31

Does the image show up in the open graph codes in the source code of the page? If it does then perhaps Facebook simply hasn't cleared its cache or doesn't like the image you chose (too small, too big, too wide or tall, etc...) Google "Facebook Debugger" and use that to check what Facebook is seeing. You can also force Facebook to re-scrape the page.

ikymbo 28 Feb 2018 00:47

Why doesnt works with https images?

bmwfans 10 Oct 2018 17:00

Perfect!!! Thank you very much, works great on 4.2.3!!!!


All times are GMT. The time now is 10:51.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.