Script shows comments from your friendica server in your (static website) blog.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 950 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # friendica-comment #
  2. Script shows comments from your friendica server in your (static website) blog. Possible replacement for disqus.
  3. ![screenshot](screenshot.png)
  4. # Requirements #
  5. ## CORS ##
  6. [CORS] (http://enable-cors.org) (Cross Site Scripting) must be activated:
  7. in .htaccess:
  8. Header add Access-Control-Allow-Origin "*"
  9. Header add Access-Control-Allow-Methods: "GET"
  10. In apache module headers must be activated:
  11. a2enmod headers
  12. ## Friendica ##
  13. RSS of your blog must be in your contacts and configured as 'remote_self' (articles are shown in your public friendica timeline).
  14. ## Blog ##
  15. In blog html:
  16. friendica_domain must be set
  17. ```html
  18. <script type="text/javascript"><!--
  19. var friendica_domain = "http://friendica_instance.com"
  20. //--></script>
  21. ```
  22. Name of the blog entry is in
  23. ```html
  24. <article><h1> article </h1></article>
  25. ```
  26. Placeholder for comments:
  27. ```html
  28. <div id ="comments"></div>
  29. ```