AMPXF - AMP for Xenforo 2

AMPXF - AMP for Xenforo 2 [Paid] 1.4.9

No permission to buy (€50.00)
mazzly updated AMPXF - AMP for Xenforo 2 with a new update entry:

Version 1.2.3 with Various bug fixes and initial AMS support

  • Improved code for CSS rendering
    • Compatibility with SV/RedisCache to force raw cache when generating styles. Otherwise risk for corrupted styles due to race conditions.
  • <amp-youtube> Component now also supports playlists
  • Compatibility styles with CMTV/Badges
  • Fix tiny compatibility bug introduced in 1.2.0 that made some custom developer thread types not render as AMP pages anymore
  • Fix so that the Ad position "Below messages" works without needing to have...

Read the rest of this update entry...
 
How about us who are using custom font style, like google font but locally hosted woff2 files?
What is the proper way to implement it on AMP pages?

Thanks.
I got it working same way as Non AMP pages.
Working fine as locally hosted woff2 fonts also.

CSS:
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('{{ asset('myStyles') }}/fonts_poppins/poppins-v15-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('{{ asset('myStyles') }}/fonts_poppins/poppins-v15-700.woff2') format('woff2');
}

Thanks @briansol and @mazzly
 
Is this intended?
Poll result isn't displayed on AMP pages?
If poll results are set to be visible to guests they will show on amp as well..
If you found some issues where normal page shows it different on normal/amp (when logged out) then please open a support request and I will look into it.
 
  • Like
Reactions: rdn
Doesn't seem to like Paypal button:

Code:
https://cafesaxophone.com/thre.../support-the-cafe.17032/?amp=1
Page still has problems..

    DISALLOWED_ATTR on line: 106 column: 0
    The attribute 'alt' may not appear in tag 'input'.
    DISALLOWED_ATTR on line: 106 column: 0
    The attribute 'border' may not appear in tag 'input'.
    DISALLOWED_ATTR on line: 106 column: 0
    The attribute 'src' may not appear in tag 'input'.

https://cafesaxophone.com/threads/support-the-cafe.17032/?amp=1

(Latest version 1.2.3)
 
Am interested in this add-on. Are you guys seeing an increase in organic search engine traffic after installing and configuring it?
 
Doesn't seem to like Paypal button:

Code:
https://cafesaxophone.com/thre.../support-the-cafe.17032/?amp=1
Page still has problems..

    DISALLOWED_ATTR on line: 106 column: 0
    The attribute 'alt' may not appear in tag 'input'.
    DISALLOWED_ATTR on line: 106 column: 0
    The attribute 'border' may not appear in tag 'input'.
    DISALLOWED_ATTR on line: 106 column: 0
    The attribute 'src' may not appear in tag 'input'.

https://cafesaxophone.com/threads/support-the-cafe.17032/?amp=1

(Latest version 1.2.3)
That is because that Paypal button seems to have some things that are not according to spec... Has PayPal provided that code, or is it modified? 🤔

@mazzly How to fix The author stylesheet specified in tag 'style amp-custom' is too long - the limit is 75000 bytes?

View attachment 244791
Is this for a page with AMS? Does it happen on many pages, or just some? Can you open a support ticket with some example links where it happens?
Turn on the 'remove inline styles' option if you haven't already.
This might help, but it might also make a lot of threads not "look as intended".. If the problem above was with AMS, it might be that I need to shave the styles a bit :D
Thank you. That’s a deal killer for me.
Fair enough, your choice :)
Am interested in this add-on. Are you guys seeing an increase in organic search engine traffic after installing and configuring it?
If you check https://ampxf.com/#results you can see the results we experienced for the sites that installed it during the beta testing. Also this one that installed after launch: https://xenforo.com/community/threads/ampxf-amp-for-xenforo-2-paid.189922/page-17#post-1493369


Guys, gotta do some "boring stuff" with bookkeeping today, but will see if I manage to crank out a small release. Otherwise you might need to hold off for tomorrow for a new release :)
 
That is because that Paypal button seems to have some things that are not according to spec... Has PayPal provided that code, or is it modified?
It is the Paypal provided code.

Code:
<form action="https://www.paypal.com/donate" method="post" target="_top">
<input type="hidden" name="hosted_button_id" value="KYRVD3CEVMGBC" />
<input type="image" src="http://cafesaxophone.com/x-pic/pp-donate.png" border="0" name="submit" title="PayPal - The safer, easier way to pay online!" alt="Donate with PayPal button" />
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1" />
</form>
 
Is this for a page with AMS? Does it happen on many pages, or just some? Can you open a support ticket with some example links where it happens?

This thread view and get this Error via google webmaster tools for only one thread URL. Enabled Remove custom font-colors and -sizes from posts option then Google AMP Validation Started. Do we still need open a support ticket for this issue?

ScreenShot00151.png
 
Top Bottom