friendica-comment/README.md

45 lines
950 B
Markdown

# friendica-comment #
Script shows comments from your friendica server in your (static website) blog. Possible replacement for disqus.
![screenshot](screenshot.png)
# Requirements #
## CORS ##
[CORS] (http://enable-cors.org) (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
```html
<script type="text/javascript"><!--
var friendica_domain = "http://friendica_instance.com"
//--></script>
```
Name of the blog entry is in
```html
<article><h1> article </h1></article>
```
Placeholder for comments:
```html
<div id ="comments"></div>
```