The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Images in Articles
On vBulletin 4, after pushing an article link via RSS, or pasting a link into Facebook, images were recognized by the platforms. This is not the case in vBulletin 5.
I'd look for diffs in the content between 5 and 4, does anyone know of a vBulletin 4 site running that utilizes the CMS? |
#2
|
||||
|
||||
We have about 200 CMS articles at www.sawdustzone.org and we're on VB 4.2.3 for another two weeks
|
#3
|
|||
|
|||
Could the issue be that vb4 points to a real URL, where vb5 uses 'file data' variable to point to an image?
|
#4
|
|||
|
|||
Looks like some meta data is missing. I filed http://tracker.vbulletin.com/browse/VBV-15998
|
#5
|
|||
|
|||
Quote:
Code:
itemprop="image" |
#6
|
|||
|
|||
Could something like below, in head_include possibly cover it?
Code:
$('div.post-content img').attr('itemprop', 'image') $('div.post-content img').attr('property', 'og:image') |
#7
|
||||
|
||||
No. Dynamic front-end changes on the fly via Javascript are not visible outside of the browser executing it. This means external sites like Facebook that scrapes the page will not see those changes. What they will see are basically what you see when you view the page source (View-Source) which is what the server outputs when you make a request.
--------------- Added [DATE]1464112733[/DATE] at [TIME]1464112733[/TIME] --------------- What you need to do is create a template hook in the header_head hook location. In the template, you need to retrieve the first attached image in the article. Once you get it, you can render appropriate open graph meta tags. The code for this is not simple. This will require time and effort to do. You could hire me or someone else to do this for you. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|