- Edited
How To Embed A Discussion Thread On Another Website?
will this consume additional system resources/ burden to the system?
example link https://ghost.org/integrations/discourse/
https://youtu.be/Xsar2sfNuqY?t=507
How To Embed A Discussion Thread On Another Website?
will this consume additional system resources/ burden to the system?
example link https://ghost.org/integrations/discourse/
https://youtu.be/Xsar2sfNuqY?t=507
tolgaaaltas how to embed discussions in a different page like mentioned in above ghost.org page ?
Hari I don't know all details but iframe URL should be like this: https://domain/embed/discussionid
For example:
Normal URL: https://discuss.flarum.org/d/27814-embed-discussion-in-a-different-page-extension-wish
Embed URL: https://discuss.flarum.org/embed/27814
is this v1.0 compatible?
Hari yes. It's a Flarum core extension. It's not just installed by default.
Automating the creation and linking of discussions is something that extensions need to do however. My Wordpress extension does it for example, then uses a customized version of flarum/embed to show it on the page.
clarkwinkelmann when I saw this post I thought about our wp integration
once could you check this page they have done something similar to wp extension (a javascript integration) but it's on a static page .. the discourse extension allows to manage/restrict access of embedding to the self domain.
what they have shown in the above video is really cool.
we are switching to static pages (gatsby, docs, Github pages ..etc)
I think automation is not needed cuz we just create blogs or pages and embed them manually in most cases.
easy modifications to embed can make similar functionality like discourse?
Hari will this consume additional system resources/ burden to the system?
we are planned to use flarum cache & gatsby cache too
Just now I have read this discussion https://discuss.flarum.org/d/2317-how-to-use-flarum-ext-embed
Hari How To Embed A Discussion Thread On Another Website?
yeah it's possible.
how to install latest version of embed?
composer require flarum/flarum-ext-embed
or
composer require "flarum/flarum-ext-embed":"dev-master"
Hari the second one
Problem 1
- Root composer.json requires flarum/flarum-ext-embed dev-master -> satisfiable by flarum/flarum-ext-embed[dev-master].
- flarum/flarum-ext-embed dev-master requires flarum/core ^0.1.0-beta.8 -> found flarum/core[v0.1.0-beta.8, ..., v0.1.0-beta.16] but it does not match your minimum-
stability.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
what if u try composer require flarum/embed:"*"
Justoverclock thanks, the embed is working now
how to restrict embed to my domain only? like mentioned here
i do not want someone else to put my embed code and load my site
and will this consume additional system resources/ burden to the system?
Edit:
<iframe src="https://www.site.com/ask/embed/10" width="100%" frameborder="0" scrolling="no" height="19261px"></iframe>
is this the best way to embed? On his page it's nice like no extra scroll .. it looks like native comments
with current flarum embed and iframe when the user clicks back or other buttons it's going to a different page
can we display only comments and when the user clicks take him to the main discussion page? like happing at
<iframe src="https://www.site.com/ask/embed/10" width="100%" frameborder="0" scrolling="no" height="19261px"></iframe>
in the website when the user clicks back or other buttons it's going to a different page in the iframe
can we display only comments and when the user clicks take him to the main discussion page? like happing at
Justoverclock is it possible with custom development?
Hari never used flarum embed but i think is definitely possible