Browse code

add usage with chevereto from wiki

René Wagner authored on 28.09.2019 13:55:40
Showing 1 changed files

1 1
new file mode 100644
... ...
@@ -0,0 +1,29 @@
1
+# Usage Guide
2
+
3
+Chevereto 
4
+
5
+## Installation
6
+
7
+1. Install and configure Hashover-Legacy as mentioned in the Readme
8
+2. Apply settings to Chevereto under Dashboard -> Settings -> External Services
9
+* Comments API: `JavaScript/HTML`
10
+* Comments Code:   
11
+Replace the values to your needs, you especially should adjust the `<path to your image route section>`, by default this is something like `https://yourdomain.com/image/`.  
12
+ The use a canonical URI for hashover is highly recommended as the page title in Chevereto changes when an image is renamed. Using the canonical URI only the image ID is used for referencing the comments.
13
+```
14
+<script type="text/javascript">
15
+       var rows="6";        // Sets "Comments" field height
16
+        var name_on="yes";    // Disables "Name" field
17
+        var passwd_on="yes";  // Disables "Password" field
18
+        var email_on="yes";   // Disables "E-mail" field
19
+        var sites_on="yes";   // Disables "Website" field
20
+</script>
21
+ <script>var canon_url = '?canon_url=' + encodeURIComponent('<path to your image route>' + window.location.href.slice(window.location.href.lastIndexOf(".") + 1)); 
22
+document.write('<script src="/hashover.php' + canon_url + '"><\/script>');</script>
23
+<noscript>You must have JavaScript enabled to use the comments.</noscript>
24
+```
25
+The section where the canon URI is put together could need some improvement.
26
+
27
+## Add comment counter to image page
28
+
29
+...