Resource icon

[bd] Cache [Paid] 1.1.0

No permission to buy ($10.00)

SIneDave

Member
@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>
 

Ugur Ilmaz

Member
@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>
You can't use "border" and "font" html codes in AMP.
 

Solari

Active member
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
 

Ugur Ilmaz

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

diretur

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

xfrocks

Well-known member
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.
 

maxicep

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

xfrocks

Well-known member
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.
We do use the add-on on the site but the CSS feature is problematic so we had to disable it.
 

maxicep

Active member
We do use the add-on on the site but the CSS feature is problematic so we had to disable it.
So, i thought you must remove this css cache feature from your add-on.
Because of I'm thinking to buy this add-on for just this feature. Right?
 
Top