AMPXF - AMP for Xenforo 2

AMPXF - AMP for Xenforo 2 [Paid] 1.4.9

No permission to buy (€50.00)
Right. Siropu should probably remove the target attribute even if enabled for tooltips only keywords...

BTW, you would have to disable this option for individual tooltip keywords. Disabling it from default configuration settings for the addon would not remove it from existing keywords.
 
Re: https://ampxf.com/which-license

GA4 does not have Audience > Overview for daily active user stats. Where do we get these stats with GA4?
Oh... Luckily I had a property with the newer ganalytics code so I could find out.

The report that opens by default called "Reports snapshot" should be the same thing. Unfortunately the csv file they provide is not the same format so the which-license page doesn't handle it yet..

But: The share button gives the alternative to "share link", if you send that link along with the domain to ampxf@jeaw.fi we can check and let you know.

I applied for a Tiny site license back in May 2021 (and had the same issues as @Mouth) - but sent what I could..

Unfortunately I never heard back?
Hmm that is weird.. Can you follow the above description and I will have a look :)
 
Not sure if this is an AMP problem or not but I get a few of these a day in my Xenforo Error log. So figured I would let you know about it.


Server error log
  • ErrorException: Template error: [E_USER_WARNING] Macro public:thread_view:thread_custom_fields_status is unknown
  • src/XF/Template/Templater.php:650
  • Generated by: Bobby
  • Aug 5, 2021 at 9:28 PM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/satellite...', 650, Array)
#1 src/XF/Template/Templater.php(650): trigger_error('Macro public:th...', 512)
#2 src/XF/Template/Templater.php(763): XF\Template\Templater->getTemplateMacro('public', 'thread_view', 'thread_custom_f...')
#3 src/addons/MaZ/AMP/XF/Template/Templater.php(136): XF\Template\Templater->callMacro('thread_view', 'thread_custom_f...', Array, Array, NULL)
#4 internal_data/code_cache/templates/l1/s103/public/post_edit_new_post.php(13): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'thread_view::th...', Array, Array)
#5 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#6 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('post_edit_new_p...', Array, true, NULL)
#7 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:post_edi...', Array)
#8 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#9 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Post\\EditNew...', 'public:post_edi...', Array)
#10 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView('XF:Post\\EditNew...', 'public:post_edi...', Array)
#11 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#14 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#15 src/XF.php(512): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}

Request state​

array(4) {
["url"] => string(23) "/xen/posts/4634522/edit"
["referrer"] => string(68) "https://www.satelliteguys.us/xen/threads/overcoming-a-forest.394631/"
["_GET"] => array(0) {
}
["_POST"] => array(8) {
["message_html"] => string(178) "<p>Hipkat will be along to advise but to get you started, you can have 3 separate dishes with a Hopper 3. &nbsp;You just have to use a DPH 42 switch to add the hybrid needed.</p>"
["_xfInlineEdit"] => string(1) "1"
["attachment_hash"] => string(32) "fbc2b1a3ffdd41acf134787d729cdd6b"
["attachment_hash_combined"] => string(87) "{"type":"post","context":{"post_id":4634522},"hash":"fbc2b1a3ffdd41acf134787d729cdd6b"}"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(40) "/xen/threads/overcoming-a-forest.394631/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
Not sure if this is an AMP problem or not but I get a few of these a day in my Xenforo Error log. So figured I would let you know about it.


Server error log
  • ErrorException: Template error: [E_USER_WARNING] Macro public:thread_view:thread_custom_fields_status is unknown
  • src/XF/Template/Templater.php:650
  • Generated by: Bobby
  • Aug 5, 2021 at 9:28 PM

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/satellite...', 650, Array)
#1 src/XF/Template/Templater.php(650): trigger_error('Macro public:th...', 512)
#2 src/XF/Template/Templater.php(763): XF\Template\Templater->getTemplateMacro('public', 'thread_view', 'thread_custom_f...')
#3 src/addons/MaZ/AMP/XF/Template/Templater.php(136): XF\Template\Templater->callMacro('thread_view', 'thread_custom_f...', Array, Array, NULL)
#4 internal_data/code_cache/templates/l1/s103/public/post_edit_new_post.php(13): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'thread_view::th...', Array, Array)
#5 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#6 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('post_edit_new_p...', Array, true, NULL)
#7 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:post_edi...', Array)
#8 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#9 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:post\\EditNew...', 'public:post_edi...', Array)
#10 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView('XF:post\\EditNew...', 'public:post_edi...', Array)
#11 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#14 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#15 src/XF.php(512): XF\App->run()
#16 index.php(20): XF::runApp('XF\\Pub\\App')
#17 {main}

Request state​

array(4) {
["url"] => string(23) "/xen/posts/4634522/edit"
["referrer"] => string(68) "https://www.satelliteguys.us/xen/threads/overcoming-a-forest.394631/"
["_GET"] => array(0) {
}
["_POST"] => array(8) {
["message_html"] => string(178) "<p>Hipkat will be along to advise but to get you started, you can have 3 separate dishes with a Hopper 3. &nbsp;You just have to use a DPH 42 switch to add the hybrid needed.</p>"
["_xfInlineEdit"] => string(1) "1"
["attachment_hash"] => string(32) "fbc2b1a3ffdd41acf134787d729cdd6b"
["attachment_hash_combined"] => string(87) "{"type":"post","context":{"post_id":4634522},"hash":"fbc2b1a3ffdd41acf134787d729cdd6b"}"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(40) "/xen/threads/overcoming-a-forest.394631/"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
I don't think it is related to the AMP addon, mostly because it happens on a non-AMP:ed page :)

Quickly googling I found this:
 
Thanks, I will check it out. Only reason I mentioned AMP because of these lines.

#3 src/addons/MaZ/AMP/XF/Template/Templater.php(136): XF\Template\Templater->callMacro('thread_view', 'thread_custom_f...', Array, Array, NULL)
#4 internal_data/code_cache/templates/l1/s103/public/post_edit_new_post.php(13): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'thread_view::th...', Array, Array)
#5 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#6 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('post_edit_new_p...', Array, true, NULL)
#7 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:post_edi...', Array)
 
Thanks, I will check it out. Only reason I mentioned AMP because of these lines.
Yep I've noticed reports coming here quite often :D

It is because all the normal template/macro renderings will also "pass through" the AMPXF code, which just passes it along when it is not an AMP page :) 👍
 
noticed this today... footer link when enabled appears twice for imgur embeds. this might be happening for other services too but i have not seen this happen for twitter embeds at least. my embeds are powered by s9e media sites addon instead of xenforo though.

Exm9fXS.png
 
On the latest release and when I land on an AMP page I get ‘’ errors and no ads from the .js file load. If I hit refresh errors go away and the JS loads the ads properly.

mos this a cache issue?

I thought I had fixed this by upgrading to the latest release, but the problem
 
Can I just check what's your definition of "visitor" in terms of the license tiers?

Edit: nevermind, I found the answer earlier in thread.
 
Last edited:
On the latest release and when I land on an AMP page I get ‘’ errors and no ads from the .js file load. If I hit refresh errors go away and the JS loads the ads properly.

mos this a cache issue?

I thought I had fixed this by upgrading to the latest release, but the problem
Can you open a support request on ampxf.com and also link to a page where this happens and we will have a look :)
 
I am going to migrate my site to a new domain within 2-3 months. So if I purchase license now for my existing domain, can I use the same lisence for my new domain. Once migrated old domain will be redirected to the new domain @mazzly
 
I am going to migrate my site to a new domain within 2-3 months. So if I purchase license now for my existing domain, can I use the same lisence for my new domain. Once migrated old domain will be redirected to the new domain @mazzly
Yes that will be fine, just open a support ticket once it is done and we will switch it over :) 👍
 
mazzly updated AMPXF - AMP for Xenforo 2 with a new update entry:

1.4.5 Beta 1

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...

Read the rest of this update entry...
 
Top Bottom