Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support any website...? #98

Open
braco opened this issue Dec 25, 2023 · 5 comments
Open

Support any website...? #98

braco opened this issue Dec 25, 2023 · 5 comments

Comments

@braco
Copy link

braco commented Dec 25, 2023

Wouldn't it be possible to support any website?

The comments would be lazy initialized in the sense that nodebb would only create the post on its back end when a user was entering a first comment on that page.

There is a simple configuration to check if the current page the comment box lives on is valid. Maybe a wildcard for the URL.

"https://mydomain.com/blog/*"

the nodebb plugin would check to see that the URL returns a 200 (not 404) before allowing the first comment.

Or it could check for a meta tag with something allowing comments there.

The use case is that I would like to drop nodebb comments onto a static blog, but don't see why this wouldn't work for everything.

@psychobunny
Copy link
Owner

psychobunny commented Dec 25, 2023 via email

@braco
Copy link
Author

braco commented Dec 27, 2023

Happy holidays!!

I only have a couple of weeks worth of experience in nodebb (as a user), so I'm pretty useless for PRs.

I have a somewhat large nonprofit community that I just launched a website for, and part of that is a ton of scientific content. Each one of the papers has its own page now, so it would be really nice if people could comment under that particular study and have that tracked in nodebb. The lazy load / lazy topic aspect is important because there are thousands of papers and a lot of them are not important.

Also seems like you could deeply simplify this plugin, doesn't it? This would let it work on any website, WP etc included, no integrations needed.

You could do something as simple as

<meta name="comments" content="enabled">

and have the server check for that tag

and then maybe even tags/categorization in the meta as well?

<meta name="nodebb-category" content="xyz">

nodebb-plugin-comments-anywhere? :)

@psychobunny
Copy link
Owner

psychobunny commented Dec 28, 2023 via email

@braco
Copy link
Author

braco commented Jan 9, 2024

post holiday bump! 😬

@psychobunny
Copy link
Owner

psychobunny commented Jan 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants