aaronpk
(Aaron Parecki)
Novembre 30, 2019, 7:37
1
It appears Amazon is no longer providing the iframe code for their ads. I only get the option to copy Javascript code now.
Is there a plan to update the advertising plugin to support the new Javascript ads?
neil
(Neil Lalonde)
Décembre 2, 2019, 3:33
2
That’s interesting. So the plugin’s amazon support needs to be completely rewritten.
It looks like you don’t need a plugin for this though. Can you try using theme components to place the ad code wherever you want? I wrote about it here:
I thought of this request again, and it turns out that it’s fairly simple to implement without a plugin now by using Theme Components .
[Admin-Localhost_Discourse]
[Admin_Localhost_Discourse_2]
The code for placing an ad above topics, and after every 3 posts:
<script type="text/x-handlebars" data-template-name="/connectors/topic-above-post-stream/my-house-ads">
<div style="margin-bottom:10px;">
<a href="http://www.discourse.org/buy">
Discourse Hosting For YOU!
</a>
</div>
</script>
…