Is there anyone here that fixed the smile issue ? Instead of the smileys their codes shows up.
I forget the mention that issue appears on AMP pages , sorryHow is that? Which features are turned on in options? It shouldn't do that, smilies should work normally.
Ah, that's expected. XenForo smilies are image sprites which are not working nice in AMP so we decided to disable it.I forget the mention that issue appears on AMP pages , sorry
Thank you for the answerAh, that's expected. XenForo smilies are image sprites which are not working nice in AMP so we decided to disable it.
<amp-img src="http://static.hometheaterforum.com/imgrepo/1/1a/htf_imgcache_884.gif" width="83" height="73" layout="responsive" alt="" border="0"></amp-img></a><font color="#000000" face="Verdana" size="4"><u><b>VIDEO QUALITY</b></u><b>: <font color="red">3/5</font> <amp-img src="http://static.hometheaterforum.com/imgrepo/4/4d/htf_images_smilies_star.gif" width="15" height="12" layout="responsive" alt="" border="0" class="inlineimg" title="star"></amp-img> <amp-img src="http://static.hometheaterforum.com/imgrepo/4/4d/htf_images_smilies_star.gif" width="15" height="12" layout="responsive" alt="" border="0" class="inlineimg" title="star"></amp-img> <amp-img src="http://static.hometheaterforum.com/imgrepo/4/4d/htf_images_smilies_star.gif" width="15" height="12" layout="responsive" alt="" border="0" class="inlineimg" title="star"></amp-img>
@xfrocks any idea why i'm getting the following error?
Disallowed attribute in HTML tag 'amp-img'
Here's the code in question:
Code:<amp-img src="http://static.hometheaterforum.com/imgrepo/1/1a/htf_imgcache_884.gif" width="83" height="73" layout="responsive" alt="" border="0"></amp-img></a><font color="#000000" face="Verdana" size="4"><u><b>VIDEO QUALITY</b></u><b>: <font color="red">3/5</font> <amp-img src="http://static.hometheaterforum.com/imgrepo/4/4d/htf_images_smilies_star.gif" width="15" height="12" layout="responsive" alt="" border="0" class="inlineimg" title="star"></amp-img> <amp-img src="http://static.hometheaterforum.com/imgrepo/4/4d/htf_images_smilies_star.gif" width="15" height="12" layout="responsive" alt="" border="0" class="inlineimg" title="star"></amp-img> <amp-img src="http://static.hometheaterforum.com/imgrepo/4/4d/htf_images_smilies_star.gif" width="15" height="12" layout="responsive" alt="" border="0" class="inlineimg" title="star"></amp-img>
https://xenforo.com/community/resources/post-content-find-replace.1549/Right - i'm just wondering if there's a way to strip it out - these are old legacy posts.
I'm using bd cache's css to file function with ssl without any problem. You probably didn't change the url in xenforo setting.We're in the process of switching our forums over to SSL (yeh, we're a bit behind lol) and we noticed bd cache is breaking it because the caching feature "css to file" is baking in the full url and it's doing it with http. Is there a workaround for this?
Thanks,
Ray
The best way to include components is below:
Code:<xen:callback class="bdCache_Helper_Amp" method="renderCustomElementScript" params="{xen:array 'element=ad', 'date=201610261016'}"><script async custom-element="amp-ad"<xen:comment> </xen:comment> src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script> </xen:callback>
The add-on will look for the latest version for each declared element and include the script when render.
<xen:container var="$containerTemplate">bdcache_amp_PAGE_CONTAINER</xen:container>
<div align="center">
<amp-ad width=300 height=250
type="adsense"
data-ad-client="ca-pub------------"
data-ad-slot="---------">
</amp-ad>
</div>
<xen:include template="thread_view" />
The variable $bdCache_isAmp is available within thread_view. I think it would work for your use case.Is there a way to put the ads code in the tread_view template (I mean the one included in the bdcache_amp_thread_view (<xen:include template="thread_view" />)? I'd have to put an if condition "if amp", does it exist/work?
If I put the code like this the ad will appear only on top of the thread, I'd like to put it after the first post:
Code:<xen:container var="$containerTemplate">bdcache_amp_PAGE_CONTAINER</xen:container> <div align="center"> <amp-ad width=300 height=250 type="adsense" data-ad-client="ca-pub------------" data-ad-slot="---------"> </amp-ad> </div> <xen:include template="thread_view" />
Thanks
The variable $bdCache_isAmp is available within thread_view. I think it would work for your use case.
I was using this add-on a long time ago when first released but we have experienced some css issues but i hope it should be fixed now. Issue was that some cached pages can't call the current css which deleted (cached before) on web server.
@xfrocks Why you don't use your bd[cache] add-on on your official forums ? Is it not healthy still ? I'm interesting with that add-on just want to serve the css.php from static file.
So, i thought you must remove this css cache feature from your add-on.We do use the add-on on the site but the CSS feature is problematic so we had to disable it.
Xf 2.1 already offer similar feature.@xfrocks we are preparing to migrate to XF 2.1. We use this add-on for our XF1.5 sites. Do we need it for XF2?
We use essential cookies to make this site work, and optional cookies to enhance your experience.