This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
forked from acegiak/Semantic-Linkbacks
-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
readme.txt
executable file
·329 lines (212 loc) · 12.5 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
=== Semantic-Linkbacks ===
Contributors: pfefferle, dshanske, edent
Donate link: https://notiz.blog/donate/
Tags: webmention, pingback, trackback, linkback, microformats, comments, indieweb
Requires at least: 4.9
Requires PHP: 5.6
Tested up to: 6.1
Stable tag: 3.11.3
License: MIT
License URI: http://opensource.org/licenses/MIT
Richer Comments and Linkbacks for WordPress!
== Description ==
Generates richer WordPress comments from linkbacks such as [Webmention](https://wordpress.org/plugins/webmention) or classic linkback protocols like Trackback or Pingback.
The limited display for trackbacks and linkbacks is replaced by a clean full sentence, such as "Bob mentioned this article on bob.com." If Bob's site uses markup that the plugin can interpret, it may add his profile picture or other parts of his page to display as a full comment. It will optionally show collections of profile pictures, known as Facepiles, instead of the full setences.
Semantic Linkbacks uses [Microformats 2](http://microformats.org/wiki/microformats2) to get information about the linked post and it is highly extensible to also add support for other forms of markup.
== Privacy and Data Collection ==
This plugin collects data from sites that send webmentions for the purpose of displaying richer comments on a site. This data is under the control of the site owner. It is the personal responsibility of that individual or individuals to remove any information at the request of the original content creator. Over time, we will add additional tools to assist in doing so.
== Frequently Asked Questions ==
= Do I need to mark up my site? =
Most modern WordPress themes support the older Microformats standard, which means the plugin should be able to get basic information from to enhance linkbacks. The plugin is most useful with the [WordPress Webmention plugin](https://wordpress.org/plugins/webmention/) and sites/themes that support Microformats 2.
= Why Webmentions? =
[Webmention](http://indiewebcamp.com/webmention) is a modern reimplementation of Pingback and is now a W3C Recommendation.
= What about the semantic "comment" types? =
The IndieWeb community defines several types of feedback:
* Replies: <http://indieweb.org/replies>
* Reposts: <http://indieweb.org/repost>
* Likes: <http://indieweb.org/likes>
* Favorites: <http://indieweb.org/favorite>
* RSVPs: <http://indieweb.org/rsvp>
* Tagging: <http://indieweb.org/tag>
* Listen: <http://indieweb.org/listen>
* Watch: <http://indieweb.org/watch>
* Read: <http://indieweb.org/read>
* Follow: <http://indieweb.org/follow>
* Classic "Mentions": <http://indieweb.org/mentions>
= How do I extend this plugin? =
See [Extensions](https://indieweb.org/Semantic_Linkbacks#Extensions)
= How do I add this into my plugin? =
The plugin will automatically enhance webmentions, trackbacks, and pingbacks with an avatar and additional context. It will also automatically add a facepile instead of individual comments, but this feature can either be turned off by an aware theme or under Discussion in your Settings.
= Why do some [emoji reactions](https://indieweb.org/reacji) not show up? =
Some emoji characters in webmentions you might receive, e.g. Facebook reactions from [Bridgy](https://brid.gy/), take more than two bytes to encode. (In technical terms, these Unicode characters are [above the Basic Multilingual Plane](https://en.wikipedia.org/wiki/Plane_(Unicode)).) To handle them, you need MySQL 5.5.3 or higher, and your database and tables need to use the [`utf8mb4` charset](https://dev.mysql.com/doc/refman/5.7/en/charset-mysql.html). [Usually WordPress does this automatically](https://make.wordpress.org/core/2015/04/02/the-utf8mb4-upgrade/), but not always.
First, [follow these instructions](https://wordpress.stackexchange.com/questions/195046/relaunch-4-2-utf8mb4-databse-upgrade/244992#244992) to switch your MySQL database to `utf8mb4`. Then, make sure `DB_CHARSET` and `DB_COLLATE` in your `wp-config.php` are either unset, set to the blank string, or set to these values:
define('DB_CHARSET', 'utf8mb4');
define('DB_COLLATE', 'utf8mb4_general_ci');
= Who made the logos? =
The Webmention and Pingback logos are made by [Aaron Parecki](http://aaronparecki.com) and the Microformats logo is made by [Dan Cederholm](http://simplebits.com/work/microformats/).
= Why are you providing avatars? =
The plugin attempts to store the URL to an actual profile image on the source site. The default avatar set by WordPress is only used if there is no such image found.
Even the WordPress default avatars are served by querying Gravatar.com which serves the file. Gravatar works by you providing an email address which it uses to match the image.
The majority of linkbacks enhanced by this plugin do not have email addresses therefore we know that gravatar will not have anything on file.
If there is no email address it will serve the local avatar. If there is an email, it will go out to gravatar.com and see if they
have a gravatar on file. If there is it will store the gravatar URL, otherwise it will store the URL for the local avatar if set.
The plugin uses a locally cached version of the mystery icon normally provided by WordPress and Gravatar.
== Changelog ==
Project actively developed on Github at [pfefferle/wordpress-semantic-linkbacks](https://github.com/pfefferle/wordpress-semantic-linkbacks). Please file support issues there.
= 3.11.3 =
* Deactivate itself if Webmention Version is 5.0.0 or above
= 3.11.2 =
* Fix array access issue
* Fix coding standards
= 3.11.1 =
* Fix HTML issue
= 3.11.0 =
* Fix AMP compatibility. Props to [Milind More](https://github.com/milindmore22).
= 3.10.4 =
* Whitelist `vendor` folder
= 3.10.3 =
* Remove jQuery dependency. Props to [Florian Brinkmann](https://github.com/florianbrinkmann).
* Fix Facepile errors. Props to [Terence Eden](https://github.com/edent).
* Remove refbacks as a default. Add a filter to decide on what comment types would be used.
* Use `comment` as default comment-type: https://core.trac.wordpress.org/ticket/49236
= 3.10.2 =
* Fix default value of `semantic_linkbacks_facepiles` (props @prtksxna)
= 3.10.1 =
* Fix load issues with Webmention vs Semantic Linkbacks
= 3.10.0 =
* Use Webmentions avatar-handler if available
= 3.9.3 =
* Fixes https://github.com/pfefferle/wordpress-semantic-linkbacks/issues/41
= 3.9.2 =
* Only load MF2 parser inside parsing function to ensure bundled version is loaded
* Update development dependencies
= 3.9.1 =
* Quick fix facepile problem id comments are closed
= 3.9.0 =
* Support rel-alternate (mf2-json)
* New php-mf2 version
= 3.8.1 =
* Add follow post as type
* Add warning to settings page if php-mbstring not installed
* Return false in Emoji function if php-mbstring not installed
* Add approve link to emails sent
= 3.8.0 =
* Add locally hosted copy of the mystery man icon and serve it if there is no gravatar
* Redo settings and settings page
* Settings page to merge with Webmentions page if webmentions loaded
= 3.7.7 =
* Add read type
* Capture read-status if available
* Change string as previous tense was off
= 3.7.6 =
* Update Parser to version 0.4.3
* Introduce watch and listen properties
= 3.7.5 =
* fixed Reacji UI ((#154)[https://github.com/pfefferle/wordpress-semantic-linkbacks/issues/154])
= 3.7.4 =
* Replace `rsvp-invite` property which is not in use with `invite` property and add unit tests
* Enhance post type returns to include post, page, and sitename
* Add basic person tagging support
= 3.7.3 =
* Replace tracking with interested property as noted on https://indieweb.org/rsvp
* Remove `h-as` properties
* Remove hard-coded microformats2 properties from facepile and move them to being generated from comment_class
* Remove unused properties
* Introduce type argument in list_linkbacks to generate unique ideas for each list of linkbacks without having to specify them using style and li-class
* Whitelist property swarm-coins, used by [OwnYourSwarm](https://ownyourswarm.p3k.io/docs#coins) and display it if using built-in comment handler.
= 3.7.2 =
* Bugfix: "Normal comments" hidden in comment-section (https://github.com/pfefferle/wordpress-semantic-linkbacks/issues/140)
= 3.7.1 =
* Fixed reacjis and facepiles
= 3.7.0 =
* Add settings to enable each type independently in the Facepile
* Optionally render mentions as normal comments again
* Support Reacji...aka single-emoji reactions
* Bump minimum PHP to 5.4 due emoji detector library dependency issues
* Overlay emoji on individual avatars in reactions facepile
* Offer mf2 compatible template for comments
* Fix semantic_linkbacks_cite filter as was previously filtering the entire comment text
* Switch semantic_links_cite filter to filtering the format for the citation instead of the prepared citation
* Count correct text length for unicode characters
* Facepile Template improvements
* Allow new comment template to be overridden by filter or theme declaring microformats2 support
* Code standards compliance changes
* Improved testing for PHP versions 5.4 and up to ensure compatibility
* Remove direct calls to comment meta in favor of helper functions to ensure future proofing
= 3.6.0 =
* Only show the first 8 avatars in a facepile by default. If there are more, include a clickable ellipsis to show the rest. Customizable via the `FACEPILE_FOLD_LIMIT` constant.
* Link facepile avatars to user profile/home page, not response post
* Always show avatar images with correct aspect ratio
= 3.5.1 =
* Bugfix release
= 3.5.0 =
* Add Facepile code
* Add setting to disable automatic facepile include
* Add filter to allow themes to disable the setting and the feature if they facepile themselves
* Add PHP requirement to readme file
= 3.4.1 =
* Abstract out linkback retrieval functions to allow for easier changes in future
* Fix retrieval issue
* Remove merge and compatibility function creating double slashing due update in 4.7.1
* Replace blacklist for properties with whitelist for select properties
* Update avatar function to not override if user_id is set on assumption local overrides remote
= 3.4.0 =
* Fix Tests and Error in Authorship
* Update Parser
* Switch to looser restrictions if WP_DEBUG is enabled and stricter ones otherwise
* Enhance Author Properties to allow for retrieving remote h-card
* Store mf2 properties
* Store location in WordPress Geodata
* Use rel-syndication if not u-syndication
* Support new webmention source meta key
= 3.3.1 =
* fixed https://github.com/pfefferle/wordpress-semantic-linkbacks/issues/68
= 3.3.0 =
* Due to changes in WordPress 4.4 through 4.7 and version 3.0.0 of the Webmentions plugin this plugin can act on the retrieved remote source
rather than rerequesting this information.
* Major enhancement work is done in preprocessing now rather than post-processing
* Refactoring
* Render full mention content if short enough. Introduce MAX_INLINE_MENTION_LENGTH which defaults to 300 characters to implement same.
* Fix text domain
= 3.2.1 =
* updated hooks/filters
= 3.2.0 =
* changed hook from `<linkback>_post` to `comment_post` (thanks to @dshanske)
* used the WordPress Coding Standard
* small code improvements
= 3.1.0 =
* I18n support
* German translation
* some small changes and bugfixes
= 3.0.5 =
* quick fix to prevent crash if Mf2 lib is used by a second plugin
= 3.0.4 =
* added counter functions for comments by type (props to David Shanske)
* some bugfixes
= 3.0.3 =
* some small tweaks
* added custom comment classes based on the linkback-type (props to David Shanske for the idea)
= 3.0.2 =
* added support for threaded comments
= 3.0.1 =
* fixed bug in comments section
= 3.0.0 =
* nicer integration with trackbacks, linkbacks and webmentions
* cleanup
= 2.0.1 =
* "via" links for indieweb "reply"s (thanks to @snarfed for the idea)
* simplified output for all other indieweb "comment" types
* better parser (thanks to voxpelly for his test-pinger)
* now ready to use in a bundle
= 2.0.0 =
* initial release
== Thanks to ==
* Pelle Wessman ([@voxpelli](https://github.com/voxpelli)) for his awesome [WebMention test-pinger](https://github.com/voxpelli/node-webmention-testpinger)
* Ryan Barrett ([@snarfed](https://github.com/snarfed)) for his feedback and pull requests
* Barnaby Walters ([@barnabywalters](https://github.com/barnabywalters)) for his awesome [mf2 parser](https://github.com/indieweb/php-mf2)
* David Shanske ([@dshanske](https://github.com/dshanske)) for his feedback and a lot of pull requests
* ([@acegiak](https://github.com/acegiak)) for the initial plugin
== Installation ==
1. Upload the `semantic-linkbacks`-folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the *Plugins* menu in WordPress
3. ...and that's it :)