Embedded Forum Demo
Here's a Talkyard demo forum, in an <iframe>
.
Work in progress (year 2025) — see: Make Talkyard work in an <iframe>
Here's how the embedding code looks, right now: (note that for this to work, the forum must be configured to Allow embedding from this domain)
<iframe src="https://forum.example.com?embHow=Forum"><iframe>
Later, probably you'll want to use a script instead: (not yet implemented though)
<script defer type="text/javascript">
talkyardServerUrl = 'https://forum.example.com';
talkyardOtherConfVal = ...
</script>
<script defer src="https://forum.example.com/-/embedded-forum.js"></script>
This future script will make you stay logged in accross page reloads. Maybe it'll support deep linking to pages inside the iframe too (probably via the #urh-hash).
And maybe it'll resize the <iframe> to fit on a mobile phone's screen, but likely it'd work better to place the <iframe> at the bottom of the page, and let it be as tall as needed.