Resource icon

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

No permission to download
This contains two minor changes. Note this is 1.0.8, the 1.0.7 release has been jumped over.
  • Fixed a bug causing a broken div if the option to show the back button in the navbar was turned off. Thanks to @chromaniac for reporting it. 👍
  • Changed the template modification (TMS) for thread_view with the OG:IMAGE from priority 10 to 88. For most people this won't make a difference but the default XF priority is 10 and by leaving it at the default there is a conflict between this and the Themehouse Featured Threads add-on.
New options added since the last public release.... :)
  • Added new option to override the default ".png" file extension when using your own emoji CDN location. If you aren't using 'native' emoji and are using a custom CDN location then this option allows you to use SVG images or other extensions.
  • Added new option to insert an OPENSEARCH metatag.
  • Added new option to change the "What's New" icon in the menu bar (the default 'lightning bolt' icon) to link to "New Posts" instead.
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.