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.
LubuWest 14df292d0b Search for article instead of header 4 years ago
LICENSE Initial commit 4 years ago
README.md Screenshot 4 years ago
friendica_comments.js Search for article instead of header 4 years ago
screenshot.png Screenshot 4 years ago
style.css Search for article instead of header 4 years ago
test.html Screenshot 4 years ago

README.md

friendica-comment

Script shows comments from your friendica server in your (static website) blog. Possible replacement for disqus.

screenshot

Requirements

CORS

CORS (Cross Site Scripting) must be activated: in .htaccess:

Header add Access-Control-Allow-Origin "*"

Header add Access-Control-Allow-Methods: "GET"

In apache module headers must be activated:

a2enmod headers    

Friendica

RSS of your blog must be in your contacts and configured as ‘remote_self’ (articles are shown in your public friendica timeline).

Blog

In blog html:

friendica_domain must be set

    <script type="text/javascript"><!--
        var friendica_domain = "http://friendica_instance.com"
    //--></script> 

Name of the blog entry is in

	<article><h1> article </h1></article>

Placeholder for comments:

    <div id ="comments"></div>