Resource icon

XenForo 2 Style Tweaks (use attachments for og:image & others) 1.0.4

No permission to download
An update is needed for XF 2.1.6 -- If you are running a version of CinVin Style Tweaks earlier then 1.0.4 and you are running XF 2.1.6 then you need to do this update!

Starting with XF 2.1.6, XF now includes the mainEntityOfPage and Publisher tags.
If you running an earlier version of CinVin Style Tweaks then you will have duplicate Publisher and mainEntityOfPage meta tags inserted in your pages resulting in a validation error.

Starting with 1.0.4 this add-on no longer adds those tags but it does change the mainEntityOfPage type to be 'DiscussionFormPosting' and the id to be the thread URL.
The [publisher] and [mainentityofpage] meta tags are now generated on the thread view pages See the thread linked below at XenForo for the details.

Here's an example of how it shows at Cameraderie; the new tags are inserted above the datepublished tag.
        <script type="application/ld+json">
            "@context": "",
            "@type": "DiscussionForumPosting",
            "@id": "https:\/\/\/threads\/show-reflections.252\/",
            "headline": "Show \"Reflections\"",
            "articleBody": "For example: of your life, of how you look like, of...anything. \r\nI took this picture with G1 plus 14-45 lens, I like the reflections of the bridge into the water of a canal.\r\nLooking forward to your pics, thanks in advance.",
            "articleSection": "Herman's Genres",
            "author": {
                "@type": "Person",
                "name": "Herman"
            "discussionUrl": "https:\/\/\/threads\/show-reflections.252\/",
"mainEntityOfPage": {
    "@type": "DiscussionForumPosting",
    "@id": "https:\/\/\/threads\/show-reflections.252\/"
"publisher": {
    "@type": "Organization",
    "name": "Cameraderie",
    "logo": {
        "@type": "ImageObject",
        "url": "https:\/\/\/styles\/cameraderie\/scfb.png"
"datePublished": "2010-07-31",
            "dateModified": "2019-09-07",
            "image": "https:\/\/\/data\/avatars\/l\/0\/53.jpg?1424144756",
            "interactionStatistic": {
                "@type": "InteractionCounter",
                "interactionType": "",
                "userInteractionCount": 259
This update is just to fix the add-on release number. With this I've also changed it from being an "alpha" & "beta" release to a gold 1.0.0 release.

If you are using any version prior to this you will need to uninstall it and install this as a fresh copy. The alternative would be to manually change the version number in your xf-addons table for this to "1000070" and then installing this version as a a rebuild. Unless you are comfortable with touching your datatables directly I recommend just uninstalling and re-installing.
Top Bottom