I modified the initial post a bit. It looks like my initial budget guess wasn’t realistic.
Also I removed the mockup screenshot of extending the House Ads interface, as that would surely require hacking or forking the Ad plugin codebase.
It’s looking like what I need would have to be accomplished via some clever Javascript and CSS. I noticed that there is a CSS class for each post number, which I assume would help with the modified logic I need. I wonder if it would be possible to take advantage of the current Ad module code and set N = 1
and then suppress/hide the unwanted instances after that with Javascript and/or CSS. (Not sure if <script>
tags can be added to House Ads? This post says probably no.)
I found some similar requests here, so it looks like this functionality would be useful to the community:
- https://meta.discourse.org/t/assistance-automatically-inserting-a-banner-after-every-initial-post-within-a-forum-topic
- https://meta.discourse.org/t/how-i-can-put-adsense-banner-after-first-post-only
- https://meta.discourse.org/t/is-it-possible-to-space-out-the-ads-in-the-topic
- House Ads in the official Ad Plugin - #132 by Jay91
- House Ads in the official Ad Plugin - #159 by Maynard
- House Ads in the official Ad Plugin - #168 by Alaa