Changes in README.md
This commit is contained in:
parent
87afc8e6ab
commit
01a1d88d6c
25
README.md
25
README.md
|
@ -1,35 +1,40 @@
|
||||||
## friendica-comment#
|
# friendica-comment #
|
||||||
|
|
||||||
Script shows comments from your friendica server in your (static website) blog. Possible replacement for disqus.
|
Script shows comments from your friendica server in your (static website) blog. Possible replacement for disqus.
|
||||||
|
|
||||||
## Requirements ##
|
# Requirements #
|
||||||
|
|
||||||
# CORS #
|
## CORS ##
|
||||||
[CORS] (http://enable-cors.org) (Cross Site Scripting) must be activated:
|
[CORS] (http://enable-cors.org) (Cross Site Scripting) must be activated:
|
||||||
in .htaccess:
|
in .htaccess:
|
||||||
|
|
||||||
Header add Access-Control-Allow-Origin "*"
|
Header add Access-Control-Allow-Origin "*"
|
||||||
|
|
||||||
Header add Access-Control-Allow-Methods: "GET"
|
Header add Access-Control-Allow-Methods: "GET"
|
||||||
|
|
||||||
In apache module headers must be activated:
|
In apache module headers must be activated:
|
||||||
|
|
||||||
a2enmod headers
|
a2enmod headers
|
||||||
|
|
||||||
# Friendica #
|
## Friendica ##
|
||||||
|
|
||||||
RSS of your blog must be in your contacts and configured as 'remote_self' (articles are shown in your public friendica timeline).
|
RSS of your blog must be in your contacts and configured as 'remote_self' (articles are shown in your public friendica timeline).
|
||||||
|
|
||||||
# Blog #
|
## Blog ##
|
||||||
In blog html:
|
In blog html:
|
||||||
|
|
||||||
friendica_domain must be set
|
friendica_domain must be set
|
||||||
<script type="text/javascript"><!--
|
<script type="text/javascript"><!--
|
||||||
var friendica_domain = "http://friendica_instance.com"
|
var friendica_domain = "http://friendica_instance.com"
|
||||||
//--></script>
|
//--></script>
|
||||||
|
|
||||||
Name of the blog entry is in <article><h1> article </h1></article>
|
Name of the blog entry is in
|
||||||
|
<article><h1> article </h1></article>
|
||||||
|
|
||||||
Placeholder for comments: <div id ="comments"></div>
|
Placeholder for comments: <div id ="comments"></div>
|
||||||
|
|
||||||
## TODO ##
|
## TODO ##
|
||||||
* connection to friendica via https
|
* connection to friendica via https
|
||||||
* CSS for <a href class="contact-photo-link">, <div class="wall-item-actions-author">, <div class="wall-item-content">
|
* CSS for
|
||||||
|
<a href class="contact-photo-link">, <div class="wall-item-actions-author">, <div class="wall-item-content">
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue