Resource icon

XenForo 2 Styles Tweaks (use attachments for og:image & others) 1.0.0

No permission to download
Visible Branding
No
Additional Requirements
XenForo 2.1.x
This is a collection of several options related to XenForo meta tags and miscellaneous display tweaks. This is how, for example, we are using attachments for the og:image at Cameraderie photography forum.

After installing go into your XF Options page and look for "CinVin - Style Tweaks" to change your settings.

Unfurl Description Length
Enter the maximum length to use for the text of unfurled URLs. The default value is hard-coded in the bb_code_tag_url_unfurl template. Enter a new maxium length value here or leave it as 0 to use the XF default value from the template. (See thread 161444 at XenForo.com for reference.)
13939



Use Post Attachment for OG:Image and use Twitter Card [meta tags og:image, og:image:height, og:image:width and twitter:card]
By default value of the og:image is the value entered for the Metadata logo URL in your style templates under Basic Options. When posting to social media like Twitter and Facebook using a post attachment image instead is usually preferred. Turn this option on to use try to use an attachment instead. Enabling this option will also include the meta tag twitter:card using the card type specified. If you are unsure what value to use then leave it at summary_large_image. If no attachment image is available to use then the default XF value will be used. (See Metadata logo URL in ACP.)
*** GUESTS NEED PERMISSIONS TO VIEW ATTACHMENTS IN ORDER TO USE AN ATTACHMENT AS THE OG:IMAGE! ***
13940


Twitter Site Name [meta tag twitter:site]
Enter a Twitter account name to include in the meta tags as the twitter:site value. This meta tag is required when specifying the Twitter Card to be certain types like summary_large_image. This is typically the same value you would have used for the Twitter Connected Accounts value. (See Twitter Card Tags for reference.)
13941


Facebook App ID [meta tag fb:app_id]
Enter your Facebook Application ID. This is typically the same value you would have used for the Facebook Connected Accounts value. Having the Facebook Application ID is required in order to gather statistics with Facebook Insights. If you do not use/care about FB Insights then this value will not affect you if it is missing. XenForo will not add the meta tag back. (See thread 164982 at XenForo.com for reference.)
13942


Page "Type" for Thread View [meta tag og:type]
The default Open Graph value for XenForo pages is "website" on all pages. Enter a different value, such as "article", to use on Thread View pages. Be sure the value you enter is valid and that you are absolutely sure you want to change it. This will be used on Thread View pages only, the rest of your XenForo pages will still use the XF default. Leave this blank to use the default XF value. A value of article or blog is required for use with Pinterest Rich Pins. (See Pinterest Article Pins for reference.)
13943
Author
Kevin
Downloads
2
Views
108
First release
Last update
Rating
0.00 star(s) 0 ratings

Latest updates

  1. Fixed Version Number, Changed Release Status

    This update is just to fix the add-on release number. With this I've also changed it from being...
Top Bottom