A WordPress block to display a collection from Discogs.com

Overview

Blocks for Discogs

This is a WordPress plugin displays your music collection from Discogs.com in a WordPress Block. If you're using the Classic Editor, or a page builder such as Elementor, then you can still use its built in short code [blocks-for-discogs].

A live demo can be seen at: https://danielr.io/projects/blocks-for-discogs-demo/

Installation and Usage

  1. Install and activate the plugin.
  2. Navigate to Blocks for Discogs in the admin menu
  3. Enter your Discogs.com username (required). If you don't already have a discogs.com account, you can register for a free account [here] (https://accounts.discogs.com/register).
  4. Enter your Discogs.com token (required). You can view or generate a token here.
  5. If you're using the WordPress Block Editor, then you can search for the Blocks for Discogs block. Your collection will automatically be displayed, so as long as you have entered a valid username & token.
  6. If you're using the Classic Editor, or a page builder such as Elementor, then you can use the shortcode [blocks-for-discogs].

This plugin employs infinite scroll to seamlessly load your collection as you continue to scroll. This is important to consider, as you will want to avoid placing content below this block/short code.

Currently only one block per page is supported, and only the default collection will be displayed. If you add multiple blocks to one page, only the first block will display content.

Frequently Asked Questions

Why isn't my collection displaying?

Ensure that both username and token are entered correctly. You must also ensure that your collection is publicly accessible by going here and enabling "Allow others to browse my collection".

Is it possible to ...

Currently with the initial release it is not possible to sort the collection, select a custom created collction, want lists, for sale lists, or customize how the collection displays. This functionaliy is intended to be added in future releases.

Screenshots

  1. How the block appears on the front end How the block appears on the front end

  2. How the block appears in the Editor How the block appears in the Editor

  3. View of the settings page View of the settings page

Changelog

1.0 - 2022-09-10

  • Initial plugin release.
Comments
  • Plugin Config Acknowledgement and Error Checking

    Plugin Config Acknowledgement and Error Checking

    A success or failure error should be returned after entering Discog username, API token and clicking the option to save the config.

    Perhaps the pair can be used to determine if a collection is empty and return a config status.

    opened by drardin 1
  • Define admin-ajax.php URL in PHP and pass to front end

    Define admin-ajax.php URL in PHP and pass to front end

    Currently the ajax-admin.php is called explicitly using the URL /wp-admin/admin-ajax.php. This can be problematic because if wp-admin is in a different location, then this file may not be accessible. Defining the path in PHP using admin_url, then passing the path to the front end using wp_localize_script will safeguard against failed calls.

    opened by villanovachile 0
  • Define admin-ajax.php URL in PHP and pass to front end

    Define admin-ajax.php URL in PHP and pass to front end

    Currently the ajax-admin.php is called explicitly using the URL /wp-admin/admin-ajax.php. This can be problematic because if wp-admin is in a different location, then this file may not be accessible. Defining the path in PHP using admin_url, then passing the path to the front end using wp_localize_script will safeguard against failed calls.

    opened by villanovachile 0
  • Add periods, hyphens, and underscores to the username regex

    Add periods, hyphens, and underscores to the username regex

    This PR will solve the issue: Username #5, by adding hyphens, periods, and underscores to the username's sanitization RegEx.

    Currently, when you type a username into the Discogs Settings Block field, it strips the hyphen, period, and underscore, which are allowed characters in discogs.com's usernames.

    Testing instructions:

    1. In /wp-admin, click Blocks for Discogs in the menu to open the settings.
    2. Type any username into the "Your Discogs Username" field (e.g. a-z, 1-07, !@#$%^&, hyphens, underscores, and periods)
    3. Click Save Changes

    Results:

    Only a-z, 1-0, hyphens, underscores, and periods are left in the username field and saved to the database wp_options table.

    Examples:

    Before sanitization: image

    After sanitization: image

    in progress needs review 
    opened by ash1eygrace 0
  • Username

    Username

    Describe the bug A clear and concise description of what the bug is.

    To Reproduce Steps to reproduce the behavior: Attempt tp login with a username the\at contains a _

    Expected behavior Login

    But it removes the underscores and attempts to login. But the username then is incorrect.

    bug in progress 
    opened by Fafnyir 1
Owner
null
A collection of experimental block-based WordPress themes.

Frost An experimental block theme for designers, developers, and creators. About Frost is a Full Site Editing theme for WordPress that extends the inc

Fahim Murshed 0 Dec 25, 2021
A simple plugin to display a block name that player break or place in popup!

?? • Block Popup Version Status Date 1.0.0 stable-alpha 12/10/2022 ?? • General: Plugin Introduction: This is a simple plugin to add the function to d

HenryDM 3 Nov 2, 2022
A WordPress plugin that displays proxied war news from the free world to Russian IP address visitors with option to block further access.

A WordPress plugin that displays proxied war news from the free world to Russian IP address visitors with option to block further access.

null 5 Jul 15, 2022
A block-based child theme for WordPress.org, plus local environment

WordPress.org Block Theme A block-based child theme for WordPress.org, plus local environment. Once set up, this environment will contain some shared

WordPress 29 Dec 30, 2022
WordPress block that displays a random "powered by" message, generally meant for footers.

X3P0 Powered By A block that generates a random "Powered by" message. It is meant to replace the typical "Powered by Theme/WordPress" message in foote

X3P0 4 Nov 4, 2022
A collection of functions to clean up WordPress

Clean WordPress Admin A collection of functions to clean up WordPress front and back-end to make it easier for editors to work and for you to look at

Vincent Orback 411 Dec 28, 2022
WordPress plugin which contains a collection of modules to apply theme-agnostic front-end modifications

Soil A WordPress plugin which contains a collection of modules to apply theme-agnostic front-end modifications. Soil is a commercial plugin available

Roots 1k Dec 20, 2022
A collection of useful codes and utilities for WordPress plugin development..

WordPress Utils A collection of useful codes and utilities for WordPress plugin development. These simplifies common tasks and promote code reusabilit

weDevs 5 Jun 9, 2023
A simple helper to generate and display pagination navigation links

Intro to CHocoCode Paginator Friendly PHP paginator to paginate everything This package introduces a different way of pagination handling. You can rea

faso-dev 3 Aug 24, 2021
A script to retrieve data from a Netatmo weather station and display it in a Mac menu bar.

weathermenu A script to retrieve data from a Netatmo weather station and display it in a Mac menu bar. Intended for use with SwiftBar. Configuration N

Dan Moren 4 Nov 4, 2021
Swap Google Fonts Display

Swap Google Fonts Display

FlyingWeb Solutions 2 May 17, 2022
This plugin allows you to display code from a repository, such as Github, Gitlab or others in order to use it as a resource in the courses.

Fetch Code This plugin allows you to display code from a repository, such as Github, Gitlab or others in order to use it as a resource in the courses.

Cambá Laboratorio de Tecnología 0 Dec 26, 2021
Tom image grid - Plugin for Textpattern CMS : An optionnal grid display for images tab

tom_image_grid tom_image_grid is a plugin for Textpattern CMS. It allows a more compact display (as a grid) of the images list. The plugin adds two bu

Thomas Jund 5 Jun 30, 2019
It's basically a dynamic web browser extension that can display notifications with the help of an admin-controlled dynamic API.

D-NOTIFIER A self controlled dynamic API based web browser extension built by Sahil Kumar How It Works? It's basically a dynamic web browser extension

Sahil Kumar 1 Jan 6, 2022
A Magento 2 dashboard to display installed extensions. Read the blog post on some of the thinking behind it:

Extension Dashboard for Magento 2 This module adds a dashboard to review all installed extensions in the Magento admin (Magento 2.3.0+ for now only).

ExtDN 36 Dec 24, 2022
bin/magento command to display configured preferences for classes or interfaces

bin/magento command to display configured preferences for classes or interfaces A bin/magento command that will show you the configured preferences fo

David Manners 14 Jul 18, 2022
Display some useful information in the reports module.

Useful information in the reports module : xclass, ajax, cliKeys, eID, general status of the system (encoding, DB, php vars...), hooks, compare local and TER extension (diff), used content type, used plugins, ExtDirect... It can really help you during migration or new existing project (to have a global reports of the system).

CERDAN Yohann 12 Aug 8, 2022
Moodle plugin to limit the access to course content according to the user level in Block Game.

Moodle plugin to limit the access to course content according to the user level in Block Game.

null 4 Oct 18, 2022
A PocketMine/Altay Plugin to morph yourself into a block

BlockMorph A PocketMine/Altay Plugin to morph yourself into a block Command To morph yourself into a block use this command: /blockmorph [BlockID|Bloc

Matze 7 Mar 22, 2022