# Update a theme component (ad placeholder with html)

**URL:** https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140
**Category:** Marketplace
**Tags:** delivered
**Created:** [August 18, 2024, 8:46am UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140 "2024-08-18T08:46:08Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [August 18, 2024, 8:46am UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140/1 "2024-08-18T08:46:08Z")

</div>

Hello everyone,

Two years ago, I’ve called a developper for a client to create a theme component allowing a forum to create an custom ad between posts. The ad takes the form of a discourse post.

The ads, name and avatars are customable, we can define on what categories they’re shown, what ranks should see them, etc.

Basically, the ad works like this,

> ![ad-style](https://global.discourse-cdn.com/meta/original/4X/f/3/1/f31edb3739b60252e5735b0d43605f39be07f272.jpeg)

And the admin part looks like this

> ![image](https://global.discourse-cdn.com/meta/original/4X/e/6/5/e6534797f2bbd9c409fcb1029adcfb54a22572a1.png)

Anyway, it worked perfectly until last year (around this time : [Commits · discourse/discourse · GitHub](https://github.com/discourse/discourse/commits/main/?since=2023-09-01&until=2023-09-16)). The ads is still shown but the html doesn’t work anymore.

> ![ad-no-html](https://global.discourse-cdn.com/meta/original/4X/5/5/3/5531b8c929eb3b29ca476989f5eb1156a70ebaa3.jpeg)

Sadly the dev is not available anymore so I come to you about this.

I can’t share publicly the code but of course it will be shared to the developper willing to take the project or at least work

If you need a little bit more info about the theme component, how it works, feel free to ask me

**What is your budget, in $ USD that you can offer for this task?**

I know the budget is not that high, we hope we can work on a 120$ budget.  
Of course, I can share the code with a dev to see if it can be done in this budget.

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [August 18, 2024, 9:06am UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140/2 "2024-08-18T09:06:45Z")

</div>

Did you try rebuilding the HTML for the post?

> [@Steven](#):
>
> plugin

> [@Steven](#):
>
> theme component

Plugin or theme component?

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [August 18, 2024, 9:10am UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140/3 "2024-08-18T09:10:13Z")

</div>

Theme component, it was a plugin in a first version but remade into a TC, my bad.

> [@NateDhaliwal](#):
>
> Did you try rebuilding the HTML for the post?

They aren’t real post, I don’t know how to best describe it, they are more like auto-generated placeholders, they don’t have any discourse option to like, quote, edit or rebuild.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [August 18, 2024, 9:41am UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140/4 "2024-08-18T09:41:58Z")

</div>

~~May need to share the git repo if it has one~~ at least if you go with market help in a pm to keep it private.

There have been a lot changes in core. So #Marketplace is likely your best place to ask. Depending on the DeV and the amount of work required to update the component might not be a big expense. The plus the DeV may even give an idea how long they might be willing to keep it updated to help prevent future breakage.

One thing I see that maybe related if my understanding is correct. One of the changes is moving from ember component? To glimmer components - but that is fairly recent.

* * *

The adplugin templates may give an idea on html/css maybe.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [August 19, 2024, 12:50pm UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140/5 "2024-08-19T12:50:16Z")

</div>

I’ve moved the topic in the marketplace category and edited the first post

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [August 19, 2024, 1:30pm UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140/6 "2024-08-19T13:30:59Z")

</div>

I’ll send you a PM. 🙂

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [August 20, 2024, 12:56pm UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140/7 "2024-08-20T12:56:05Z")

</div>

@Arkshine did a great job, the theme component works again.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [September 19, 2024, 12:56pm UTC](https://meta.discourse.org/t/update-a-theme-component-ad-placeholder-with-html/322140/8 "2024-09-19T12:56:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
