Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

External pingback server integration #225

Closed
Purexo opened this issue Jun 10, 2015 · 7 comments
Closed

External pingback server integration #225

Purexo opened this issue Jun 10, 2015 · 7 comments

Comments

@Purexo
Copy link

Purexo commented Jun 10, 2015

It'll be very cool to have a pingback system beetween Shaarli. Like Wordpress.
I'm think that the best way to interact beetween shaarlieur.

@nicolasdanelon
Copy link

maybe with a plugin, right?

@nodiscc
Copy link
Member

nodiscc commented Jun 11, 2015

@Purexo please explain more precisely:

  • what exactly does it do?
  • how does one use it (step by step)
  • what purpose this serves

This was previously requested at sebsauvage#75

If you have a proposition for an implementation, please go ahead.

@Purexo
Copy link
Author

Purexo commented Jun 11, 2015

Je vais parler français, histoire que ce sois plus simple pour moi d'expliquer.

Je pense que pas mal de personnes utilisant Shaarli, utilisent aussi un blog à coté, et pour la plus part utilisent WordPress comme CMS de blog.
Wordpress intègre nativement/par défaut un systeme de Pingback.

Le principe est "simple"

  1. Une personne A écris une note contenant le permalink d'une note Shaarli d'une personne B
  2. Le serveur de A va ping B pour lui dire "Hé, regarde je parle de toi ici. (ici = le permalien de la note de A)"
  3. Le serveur B si il accepte, va ajouté dans la section pingback de la page de sa note le liens de A

Ainsi ce systeme à trois avantages majeur :

  • Cela permet d'être mis au courant facilement lorsque quelqu'un parle de nous.
  • Quand on lis B, On peut être redirigé vers des personnes parlant de B/citant B.
  • Qu'une discussion par liens interposé ce fasse, et ce suive facilement

@fbartels
Copy link

As long as its optional and opt-in. why not?

But I don't use shaarli as a blog system and therefore would have not use for it.

@nodiscc
Copy link
Member

nodiscc commented Jun 14, 2015

Thanks for the explanation; en français c'est très bien.

Pingback requires an XML-RPC server to work. For reference, wordpress' XMLRPC server is 6300 LOC, which is almost 3 times shaarli's size - https://github.com/WordPress/WordPress/blob/master/wp-includes/class-wp-xmlrpc-server.php

The pingback spec can be found at http://www.hixie.ch/specs/pingback/pingback - There is a reference pingback server/proxy at http://software.hixie.ch/utilities/cgi/pingback-proxy/. It should be fairly easy to send POST requests to such a server when saving a link (POST http://your.server.example/utilities/cgi/pingback-proxy/client-proxy?source=$permalink&target=$url) which will take care of notifying the remote server via XMLRPC. If you are able to write a standalone pingback server or use this, we could hook the save function to send it a POST when saving a link (optional).

Shaarli's datastore can only store description linkdate private tags title url fields so there is no way it could save pingbacks from others for an item, so Shaarli can't notify you when you receive one. However we could easily add a <link rel="pingback" href="http://your.server.example/utilities/cgi/pingback-proxy/server-to-get-proxy/http://www.example.net/pingback.cgi"> on permalink pages, which would pass pinbgbacks requests to the proxy, and notify you by mail or other means when someone pingbacks you - See Server Proxy: Mail on http://software.hixie.ch/utilities/cgi/pingback-proxy/.

If you or someone is able to implement a standalone pingback server that can be hooked to Shaarli in some way - the server example mentioned above might also work out of the box (requires testing) - we could add this as an option (integration of a third party pingback server).

Would this be ok? Should I rename the issue to External pingback server integration?

@nodiscc nodiscc added this to the future milestone Jun 14, 2015
@nodiscc
Copy link
Member

nodiscc commented Jun 14, 2015

Also note that support for integrating an external comments system has been requested at #181. The issue is about adding support for Isso (http://posativ.org/isso/) comment fields in the linklist. Isso's developer has open an issue about adding Pingback/trackback support to his software - check isso-comments/isso#19 - so this is another possible way.

@nodiscc nodiscc changed the title Pingback system beetween all Shaarli External pingback server integration Jul 14, 2015
@ArthurHoaro
Copy link
Member

Closing as it's tagged as wontfix (see @nodiscc explanation). This could be done with 3rd party + plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants