The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
||||||||||||||||||||||||||||
More Open Graph Images (Free) by BOP5
![]() Developer Last Online: Aug 2023 ![]() ![]()
![]() Brought to you by BirdOPrey5 / Qapla.com
If you don't know what Open Graph is, it is a standard which Facebook and other big social networking sites use to extract information from a web page being shared/posted on their site. Open Graph meta tags tell Facebook the URL of the page to share, the title of the page, the type of content, and also one or more images to be used as the thumbnail when a page is shared. A major limitation of vBulletin 4.x has always been the image. The only option vBulletin has is to enter the URL to 1 image in Facebook Options in the Admin CP, and the same image would be shared every time any page from your site was posted to Facebook. This would usually be your site's logo. While it was OK, it was really annoying you couldn't get a picture that had more to do with the exact thread being shared. For example if the thread was about Jeeps and had pictures of Jeeps in the thread it would be better to show one of those pictures instead of the site logo. Now you can. Live Demo: http://www.qapla.com/mods/showthread...e-images-tests (View the HTML source code) This Free version will find-
And add ALL of these as possible og meta tags on your thread page. The Pro Version available on Qapla.com works on Blog Entries and CMS Articles as well, but is otherwise the same. Note: The "Pro" version is bundled with my More Share Options TNG Pro mod, a subscription to one gives access to both. Important Notes - This mod only promises to add the images, youtube videos, and attachments (if enabled) to the list of available of meta tags and this can be confirmed working by viewing the HTML source of the page or using the Facebook Debugger to see all images and other content scraped form your page: https://developers.facebook.com/tools/debug This mod cannot promise Facebook will actually use these images! It is important to understand that giving these pictures as an option to Facebook is as far as any modification can go. After that it is up to Facebook's scraping algorithm to determine which, if any, images will be presented to the users as an option when sharing the page. Facebook does not publish strict details on how they make these choices. Search on Google and you'll quickly find many answers to the question but each one different. Facebook does say that images should be (not must but should be) at least 200 by 200 pixels but they prefer even more a 1500 x 1500 pixel image. They prefer images closer to square than very long or tall. They will auto resize or crop as needed. *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. There does not seem to be any ham in presenting multiple images to Facebook, they will choose what they want. I have had more luck getting the option to choose between different thumbnails when using the older "Facebook Share" button as opposed to the "Facebook Like" (or Recommend) button that is default in vBulletin. If you use the free or Pro version of my More Share Options TNG mod you can easily change to the Facebook Share button. Finally this mod knows how to deal with both https and regular http images. The og meta tags are slightly different for each, the correct one will be used based on the image source found. Also, this mod is designed to work with or without the Facebook Platform enabled. For use on vBulletin 4.x.x only. Tested on 4.07, 4.2.0, and 4.2.1. ------------------------------------------------------ Please "Mark as Installed" if you use this. ![]() Donations always appreciated. :up: Nominate MOTM if you LOVE it! ![]() Download Now
Screenshots
Show Your Support
|
7 благодарности(ей) от: | ||
elsa23, eTiKeT?, mytreehouse, m_hady, RichieBoy67, tbworld, the one |
Comments |
#22
|
||||
|
||||
![]()
Could you post a link with the Chinese characters that don't work in the existing mod?
|
#23
|
||||
|
||||
![]()
Umm here's a link to where some showed up bad.
http://www.teslamotorsclub.com/showt...l=1#post420183 |
#24
|
|||
|
|||
![]()
please edit og:description to thread description
|
#25
|
||||
|
||||
![]() Quote:
Will look into adding this option. |
Благодарность от: | ||
letipro |
#26
|
||||
|
||||
![]() Quote:
Think you could add an option for those Twitter tags while you're at it? Would be great if tweets from my site had "the card" show up. ![]() |
#27
|
||||
|
||||
![]() Quote:
![]() To change the page encoding go to Admin CP -> Languages & Phrases -> Language Manager -> Edit your Language, Change charset from ISO-8859-1 to UTF-8 Note- I'm not sure if other steps may be required- I did this on my _TEST_ forum and it seemed to work, I did not do extensive testing. Please do your own testing or keep an eye on things to make sure nothing breaks by this change. |
#28
|
||||
|
||||
![]() Quote:
These are the twitter tags from the NYTimes example I posted above. HTML Code:
<meta name="twitter:card" value="summary"> <meta name="twitter:site" value="@nytimes"> <meta name="twitter:url" content="http://www.nytimes.com/2013/08/24/business/wondering-if-tesla-can-get-there-from-here.html?pagewanted=all"/> <meta name="twitter:title" content="Getting Tesla From Here to There"/> <meta name="twitter:description" content="Tesla Motors gets raves for its Model S, and Wall Street loves the company?s soaring stock. But it remains to be seen whether Tesla can actually sell the cars."/> <meta name="twitter:image" content="http://graphics8.nytimes.com/images/2013/08/24/business/Stewart/Stewart-thumbLarge.jpg"/> But we're probably just interested in the summary card. https://dev.twitter.com/docs/cards/types/summary-card Quote:
|
#29
|
||||
|
||||
![]()
I have a twitter mod in the works... You can see a preview of it at the bottom of this thread-
http://www.qapla.com/mods/showthread...-upgrade-of-VB |
#30
|
||||
|
||||
![]()
So if you include those twitter meta tags, a tweet that includes a link to your site can look more like this:
![]() Perhaps Twitter will play nicer with attached images. I think, though, you only tell it to use one (like the first image of the thread). If no image is available it's better to skip it. The only tags that are required are title and description. Title would obviously just be the thread title. Description would be the first couple hundred characters of the first post like we'd like for facebook. For the pro version would be cool to get the first bit of blog text for the description for both twitter and open graph. CMS articles already have description filled out for open graph. Should just copy that into twitter as well. |
#31
|
|||
|
|||
![]()
I there any way to get a specific default image displayed when a vbulletin thread is posted to facebook? I have installed this mod which does a good hob of fetching other thumbnails, but it seems to pick up smilies and icons, about which FB seems to complain because they are less than 200px, and then for some reason facebook uses my site logo image (which I do not want because it has transparency). I have specified a "default" in the facebook options in vBulletin, but it gets overridden if there are smaller than 200px images.
|
![]() |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|