- Edited
I want to achieve something great so I want to Start a new Discussion with Pure JavaScript using flarum API. If I will be able to achieve what I am trying to do then I will post it here OPENSOURCE
I want to achieve something great so I want to Start a new Discussion with Pure JavaScript using flarum API. If I will be able to achieve what I am trying to do then I will post it here OPENSOURCE
Using the Flarum API outside of Flarum requires authentication. Using pure client side JavaScript will publish the credentials needed to the internet.
Either you use or make similar behavior like flarum/embed, or you have your JavaScript interact with a backend in your application so that you can have that backend hit the Flarum API with authentication.
1Dot hi, could you check this once https://blog.codinghorror.com/what-does-stack-overflow-want-to-be-when-it-grows-up/#discourse-comments it's really nice.
If you have coding skills please PR to embed extension
Because if we use current embed we get login button..etc in iframe it's basic and not well optimized at this moment
https://discuss.flarum.org/d/27814-embed-discussion-in-a-different-page-solved/
-
If you are thinking to make hotjar like feedback form or pop up I feel it's difficult with current situation
WordPress like add guest comment is also not possible. (I think)
If we have jam stack , static pages embed is best option
We can even use the discussion embed to put in our wordpress blog post too.
I feel Clark sir's premium extension is also not useful (in my case) cuz the whole login and and posting comments view look different if we don't optimize CSS of flarum and the page. Taking user to the discussion page is ideal and makes fluid experience
Let's say if we use "activate user by registering" extension I don't think user could able to perform register and start a discussion using api in one single request.
1Dot these days speed matters, no one bearing 1-2 seconds delay. First input and page shift ... Such a headache .
I am looking to use wordpress as backend and Gatsby front end.
We are working on a react app and that will take 2-3 months later need to make good Gatsby docs like clone JS theme
WP graph ql and Yost seo graph ql ...
Hope they will add support to more wordpress plugins into graph ql
Edit : intially I thought to use flarum pages but later I have come to know it will slow flarum core
7000 pages in flarum core blog is not a good idea
I wish there could be an a option in flarum to set all blog pages in to static (a cache version) to decrease the burden
Maybe a extension can make static pages of flarum blog pages ? ( I don't know) and it will cost lot of dev efforts too
1Dot yes yes, do not tocuh api like discourse discussion page, user should goto flaurm page after clicking continue discussion or reply buttons, we can shaow first five comments (that's enough) if he is interested he will join in discussion.
You can repo or PR embed extension
PR is always best in case of future version updates concerned team will take care of upgrading it. And core team will guide in efficient way to do it.