The discussion revolves around implementing house ads in Discourse using Theme Components, inspired by the Pockets plugin from Vanilla Forums. Carlo requests a plugin similar to Pockets for placing HTML ads every few posts. codinghorror notes that the official AdPlugin can serve house ads but through external services. neil explains that house ads can be implemented without a plugin using Theme Components, providing code to insert ads above topics and every third post. Joshua_Kogan encounters issues, which dax attributes to an outdated API version; updating the script version resolves the issue. Joshua_Kogan confirms the fix but clarifies the ads appear in topic streams, not the ‘latest’ list, prompting a question about modifying the behavior. Carlo expresses interest in trying the solution.
That will only work if the images are coming from the same URL / domain as the rest of the “normal” images on the site.
I believe per @neil our official ad plugin can be configured to serve house ads as well, but those would be served from Google, etc, like the other ads.
Thanks for the follow-up. I’m sorry for my late reply. I copy/pasted it into my current theme (with many theme components added) shown at www.sqrpgz.com, and I both previewed and enabled, but nothing. Then I created a new theme titled “house ads”, copy/pasted into the head, and enabled that theme – still didn’t work. Then, I went back to my original theme, and added the “house ads” component – still didn’t work. I may likely be doing something wrong here, and I appreciate any advice!
Wait. Maybe it’s working as intended but, I was confused on how it should work… If I click on a topic, I see the “discourse hosting for you” link on the top of the topic/post page, but I thought it would also be woven into the latest list every three posts. Am I misunderstanding?
Oh brother, I’m with Communiteq (formerly DiscourseHosting).net – I have no idea how to move forward with either suggestion. I’ll reach out them. Thank you!
Now, although it worked, it worked differently than I thought it would. I thought the ad post would show up every third post in the “latest” list. Rather, it places the ad every third post in a topic’s stream. Do you know of anyway to insert a house ad in the “latest” list? Just curious.