# 官方广告插件中的房屋广告

**URL:** <https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715>\
**Category:** Announcements\
**Tags:** advertising\
**Created:** [2019年五月2日 20:30 UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715 "2019-05-02T20:30:39Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [2019年五月10日 17:37 UTC](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715/30 "2019-05-10T17:37:01Z")

</div>

Maybe what you’re looking for is the theme component code:

> [@Request: House Ads Plugin](https://meta.discourse.org/t/request-house-ads-plugin/75532/3):
>
> 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](https://meta.discourse.org/t/developer-s-guide-to-discourse-themes/93648#heading--4-b). 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\> …

---

_[View the full topic](https://meta.discourse.org/t/house-ads-in-the-official-ad-plugin/116715)._
