XF 2.1 Embed Gleam Giveaway Widget in Forums

Mt.Drek

New member
We often host giveaways on our site using the Gleam Giveaway widget. Here's an example: https://gleam.io/o16fL/toms-hardware-system-starter-build-giveaway-with-msi

We would like to embed this widget into the forum. Gleam provides an embed code in HTML:

<a class="e-widget generic-loader" href="https://gleam.io/o16fL/toms-hardware-system-starter-build-giveaway-with-msi" rel="nofollow">Tom's Hardware System Starter Build Giveaway with MSI</a> <script type="text/javascript" src="https://widget.gleamjs.io/e.js" async="true"></script>

How do embed this widget into our forums? Do I add Gleam to the BB code media site? Would I just copy and paste the HTML embed code there into the embed template section?
 

Brogan

XenForo moderator
Staff member
You should just be able to create a new widget of HTML type and paste the code in.
 

Mt.Drek

New member
I'm not sure an HTML Widget would work. We want to embed the widget into a post, not as an item on the forum navigation.
 

Feanor

Member
I would probably do this with custom BBCode, but keep in mind that other users would be able to put it into their posts.
 
Top