Code Monkey home page Code Monkey logo

wordpress-refback's Introduction

Refback

Contributors: dshanske
Tags: refback, linkback, comment, response
Requires at least: 4.9.9
Tested up to: 5.6
Stable tag: 2.0.1
License: GPLv2

Enable Refbacks on your WordPress site

Description

Refback is a linkback method that works using the standard HTTP Referer header. Like pingbacks, trackbacks, and webmentions, it attempts to present links of other sites that have linked to you. Unlike other methods, the other site requires no additional support. The implementation works exactly as the other linkbacks do in WordPress.

Frequently Asked Questions

Why not use Webmentions?

Webmentions are preferable, however, webmentions must be supported by the sender

How can I send and receive Refbacks?

On the Settings --> Discussion Page in WordPress:

  • Activate receiving refbacks by checking the "Allow link notifications from other blogs (pingbacks and trackbacks) on new articles" option.

How do I supporting refbacks for my custom post type?

When declaring your custom post type, add post type support for refbacks by either including it in your register_post_type entry or adding it later using add_post_type_support.This will also add support for receiving pingbacks and trackbacks as WordPress cannot currently distinguish between different linkback types.

Refbacks will also respect the webmention plugin settings for which post types to support. If you enable webmentions for that type, it will also enable refbacks.

Do I need the Semantic Linkbacks Plugin?

No. This will work independently. However, if you have that plugin, it will parse refbacks for Microformats.

Do I need the Webmentions Plugin?

No. This will work independently. However, it will use the options in the webmentions plugin, if enabled, specifically to accept refbacks to different post types and route homepage and other archive page mentions to pages if configured.

Changelog

Project and support maintained on github at dshanske/wordpress-refback.

2.0.1 (2020-12-25)

  • Improvement after a few hours of testing.
  • Improved deduplication.
  • Allow display of avatars by default.
  • Store a referer count for future, which will increment during each referral.

2.0.0 (2020-12-25)

  • Rewrite of plugin based on webmention code improvements through 5.X
  • Removal of old dependencies
  • Update to hook into Semantic Linkback using a filter. Previously, refback support was enabled by default in that plugin

1.0.0

  • Initial release based on the Webmention plugin

wordpress-refback's People

Contributors

dshanske avatar pfefferle avatar

Stargazers

N.A. Ferrell avatar  avatar Chris Aldrich avatar

Watchers

 avatar James Cloos avatar Chris Aldrich avatar  avatar  avatar

Forkers

pfefferle

wordpress-refback's Issues

Setting to discard self-refbacks

Given the tremendous number of self-refbacks, it would be nice to have a setting that would allow the plugin to silently discard refbacks to one's own website. Since adding the plugin I'd estimate that 99.9% of the refbacks I get are from people clicking links on my own website rather than external links others.

This should be separate from preventing self-webmentions as I (and I suspect others may) want to have those show up to cross link or cross reference posts on their own sites.

(Originally published on https://boffosocko.com/2019/02/14/setting-to-discard-self-refbacks/)

Refback Duplication

Despite the fact the code is supposed to check for an existing refback, it seems to be duplicating refbacks.

Add counter to comment

Since refbacks are done by referer string, every time someone follows it, I could increment some sort of metadata.

Ensure refbacks cause a refresh based on age

Since the plugin checks for existing refbacks each time, this means that it could refresh the refback when someone clicks through from another site. However, if this was done every time...it would create a load issue. But if it only happened if a last modified time was sufficiently old...

It could also trigger a webmention update as well in the same manner.

Blocklist

Support a list of domains to ignore referers from.

Fatal error: Uncaught Error: Call to undefined function wp_get_meta_tags()

Noticed today after updating Webmentions to 5.1.2
Refback: 2.0.1
WordPress: 6.2.2

There seems to be no longer a function wp_get_meta_tags.

Fatal error: Uncaught Error: Call to undefined function wp_get_meta_tags() in wp-content/plugins/refback/includes/class-refback-receiver.php:440
Stack trace:
#0 wp-includes/class-wp-hook.php(308): Refback_Receiver::default_title_filter()
#1 wp-includes/plugin.php(205): WP_Hook->apply_filters()
#2 wp-content/plugins/refback/includes/class-refback-receiver.php(216): apply_filters()
#3 wp-includes/class-wp-hook.php(308): Refback_Receiver::do_refback()
#4 wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(565): WP_Hook->do_action()
#6 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(293): do_action_ref_array()
#7 phar:///usr/local/bin/wp-cli.phar/vendor/wp-cli/cron-command/src/Cron_Event_Command.php(262): Cron_Event_Command::run_event()
#8 [internal function]: Cron_Event_Command->run()

UI suggestion: Admin drop down filter for refbacks

Similar to the design set up for other comment types, it would be nice to have a filter for refbacks in the dropdown menu at /wp-admin/edit-comments.php. With the Webmentions plugin enabled, one is presented with the options to filter for "All Comment Types", "Comments", "Pings", and "Webmentions". Adding a filter for "Refbacks" would be incredibly helpful as well.

refback comment types dropdown

(Originally published at https://boffosocko.com/2018/12/26/ui-suggestion-admin-drop-down-filter-for-refbacks/)

Better Deduping

Right now, the dedupe code is a basic copy of the webmention code for the same function, and it ends up merging the refback and the webmention.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.