AMPXF - AMP for Xenforo 2

AMPXF - AMP for Xenforo 2 2.3.0 Patch Level 3

No permission to buy (€50.00)
This release is only needed if you are running XF 2.2.7 and seeing an error such as this in your admin error logs:
ErrorException: Template error: [E_WARNING] include(): ....

Suppresses the error that is wrongly raised by isKnownTemplate in XF 2.2.7, related error report:
  • Improve CSS minification be more efficient
  • Don't show "broken link" inside admin when the advanced option for broken link checks is enabled.
  • Fix for XFMG media slider widget to render correctly on AMP pages
  • Style compatibility fix to work with XF 2.2.7, thanks @Masetrix for reporting this so quickly :) 👍
  • Added advanced option to enable broken link highlighting on the canonical pages as well for easier cleaning up of broken links
  • Much improved handling of proxied images
  • Like
Reactions: CoZmicShReddeR
  • Fix bug with non-http/https links sometimes breaking the AMP page validity
This is a beta release, only install it if you know what that means :)

  • Allow html-entities inside href="" as valid URL
  • Unknown image dimension magics 🧙‍♂️
    • 2 new Advanced options:
      • Fix unknown image sizes (on by default)
      • Utilize visitors's browsers to check image sizes where server failed (off by default)
        • This option from our own testing is able to find image dimensions for ~5% of the ones where server failed (most other seem to be expired domains/images)
    • new endpoint at /ampimgsize where admins can see short summary of how many image sizes that have been found so far.
    • If you want to see how much impact this feature has on AMP page generation you can add &time=1 to the AMP url and it will print out a debug line with how many image dimensions where fixed in how long time.
      • spoiler alert: it is minimal, most we have seen on our own forum is e.g. "5 images replaced in 0.3ms"
      • note: If no image dimensions were fixed for the page you test on, it won't print out anything.
    • How the image dimension magic works:
      • The first time an image with unknown dimensions is encountered the AMP page will render with the unknown-image class, and the URL will be put in a queue to be checked by the server in a cronjob.
      • Once image dimensions are known, it will be inserted with correct width="" and height="" attributes which the AMP spec wants..
  • Added advanced option to hide signatures on AMP pages
  • Fix bug with amp-dailymotion videoid containing more info than valid id
Back
Top Bottom