AMPXF - AMP for Xenforo 2

AMPXF - AMP for Xenforo 2 2.3.0 Patch Level 3

No permission to buy (€50.00)
  • "Text logo" to also be a link like the image logo is
  • Slight regrouping of options for clarity
  • 2 new options (both default to disabled):
    • Show button in header that links to canonical (non-AMP) page
    • Show text link to canonical (non-AMP) page in footer
  • Don't mark empty links as "broken" (they are valid, although probably no intentional) Thanks for reporting this @JoyFreak
  • Improve Link checker to first do a utf8_deaccent() on the urls so umlauts/scandics etc are "valid urls" (which they are)
  • Fix canonical tag insertion on /tags/ pages
  • Added support for XenAddons/CAS
  • Load Font Awesome icons with {{ base_url() }} so it loads correctly on all forums.
  • minimize amp_fa.css
  • Cleanup some iframe-attrs when converting to amp-iframe so it follows spec
  • Better URL handling for urls with special characters in them
  • Improve the url cleanup to check urls against rfc2396 for validity
This is a beta release :)
  • fix so that $xf.isAMP can be used as display criteria for widgets
  • URL cleanup improvements
    • better cleanup of broken links for migrated forums.
    • autocleanup tel: and mailto: links that have been prepended with http(s)://
    • If the addon encounters an URL that is clearly broken it will escape it so that the googlebot validator doesn't react to it, and still considers it "valid" (so the page can still show in search results).
      • the AMPBot will still pick it up as a "broken link" and show it in the dashboard
    • When visiting a page with broken link (and being logged in), it will be style with red text as in attached screenshot
The URL cleanup won't yet catch all "invalid urls", and we are looking into if we could use the same regexp that the AMP validators use to "hide the broken links".

This is how it looks if you visit a page where the addon has catched a broken link:
Screenshot from 2021-02-28 17-27-46.webp
This is a beta release, if you are not sure what that entails, please don't install this version, and instead wait for the RC or Stable version :)
  • Loads the Font Awesome icons from your own servers instead of FA CDN, this has a few benefits:
    • light | regular | solid icon styles/weights will be respected
    • Many more icons avilable than in the free version
    • if your forum uses the "Font awesome weight" of "solid", this way will load less assets
    • no need to load all.css and needed icons are inline instead
  • Fixed a bug where <img>-tags with newline in them wasn't replaced with <amp-img>
  • Added alt text to logo, and aria-label to "logo homepage link". Thanks @briansol for reporting this 👍
How to disable a widget for AMP pages
  • Like
Reactions: Sunka and briansol
  • Also hide ads on the node views (not only thread views) if set to disable ads for specific node(s)
  • Advanced option added: "Disable AMP for Forum/Node pages"
  • Fix a bug where the canonical link was missing for tags pages (since Beta 4 where the head tags was set to be inserted like normal XF does it). Thanks to @Masetrix for reporting this :)
Back
Top Bottom