Linux 软件免费装
Banner图

Goblin Shelf: Book Reviews & Reading Lists

开发者 goblindept
更新时间 2026年10月19日 05:46
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

reviews books library bookshelf school

下载

1.0.0

详情介绍:

Goblin Shelf shows a bookcase with book spines on any page. Hover over a book to see its cover, its author and its average rating; click it to open its card with all the reviews. How to use it Goblin Shelf works with a shortcode: a short word between square brackets that you type in a page, and that WordPress replaces with the bookshelf. The shortcode is: [goblin_shelf]
  1. Go to Pages → Add New Page and give the page a title.
  2. Click the + button, search for the Shortcode block and add it.
  3. Type [goblin_shelf] inside the block (with the square brackets, nothing else).
  4. Click Publish and then View Page.
The same instructions, with a copy button for the shortcode, are in Goblin Shelf → Settings → Help. Goblin Shelf Pro Goblin Shelf Pro is a separate, paid plugin by the same developer. It adds: the Classic and Youthful styles, country and school years, reviews sent by email to the teacher, teachers' recommendations, moderation, CSV import and export, control over your data on uninstall, a library mode with recommended ages, filtering the shelf by school year or age, approving reviews from the email with a private link, an approval log, a reviews screen with filters and a button to delete all data. None of these features is included in this free plugin. They are described in Goblin Shelf → Settings → Pro, which has a link to the developer's website. You can get Goblin Shelf Pro at goblindepartment.com/goblin_shelf. The same link appears as "Pro" next to the author in the list of plugins.

安装:

  1. Upload the goblin-shelf folder to /wp-content/plugins/, or install the .zip from Plugins → Add New → Upload Plugin.
  2. Activate the plugin.
  3. Insert [goblin_shelf] in a page (use a Shortcode block). Step by step instructions: Goblin Shelf → Settings → Help.

升级注意事项:

1.0.0 First release.

常见问题:

How many books fit on the bookcase?

The bookcase has three shelves with room for 33 books each: 99 books. The number comes from the real measurements of the modern bookcase: a shelf is about 1015 px wide when the page is 1200 px wide, and a typical spine plus the gap between books takes about 30 px. The bookcase is drawn so that 33 books always fit on a shelf, whatever the width of the page. On narrow screens it keeps its proportions and is scaled down to fit, with no sideways scrolling. The limit also has a second purpose: with Open Library or Google Books turned on, the covers of the shelf are requested from those services in the background, and the limit keeps that to 99 requests at most per visit, which avoids overloading them and being blocked.

What happens when the shelves are full?

No new book can be added: the form says so, the server refuses it, and a book created in the dashboard stays as a draft. The books that are on the shelves can still be reviewed. Delete a book (Goblin Shelf → Goblin Shelf) to make room.

Are reviews moderated?

No. They are published as soon as they are sent. Protection against abuse: a hidden field for bots and a limit of 30 reviews per hour from the same IP address (filter goblinshelf_ip_limit). You can delete any book or review from the dashboard (Goblin Shelf → Goblin Shelf and Goblin Shelf → Reviews). If your website is behind a proxy or a CDN, use the filter goblinshelf_ip to give the real IP of the visitor.

Why does a book have no cover?

Covers are optional. When adding a book, the form lets you upload a photo of the cover (JPG, PNG, WebP or GIF; it is reduced in the browser and checked again on the server). It is only used if the book has no cover yet. You can also open the book in Goblin Shelf → Goblin Shelf and choose or replace the image from your Media Library. If you turn on Open Library or Google Books in Goblin Shelf → Settings → Book search, the cover of the book chosen from the suggestions is shown straight from that service. It is not downloaded or stored on your website (only a short reference is saved), and it stops being shown if you turn the service off. You can replace it at any time with an image from your Media Library.

What data is stored?

For each book, its title, its author and optionally its cover (an image saved to your Media Library); for each review, the rating, "the best thing" and "the worst thing". Nothing about the person who writes it. The visitor's browser keeps locally (localStorage) a list of the books already reviewed, only to warn about duplicates; it contains no personal data and it is not sent anywhere. To limit abuse, a one-way hash of the visitor's IP address is kept in a temporary counter (a WordPress transient) for up to one hour; the IP address itself is not saved. If you turn on Open Library or Google Books, a cover chosen from the suggestions is saved only as a short reference (for example ol:12345), not as an image.

How do I change the language?

Goblin Shelf uses the language of your website (Settings → General → Site Language). Translations are provided by the community through translate.wordpress.org and are installed by WordPress like any other plugin translation. The dashboard is shown in the language of each user's profile.

What happens to my data if I delete the plugin?

All the data of Goblin Shelf is permanently deleted when you delete the plugin from Plugins → Installed plugins (deactivating it deletes nothing): the books, the reviews (also those in the trash), the cover images that Goblin Shelf saved to your Media Library (those uploaded from the form), the settings and the temporary data. Images that you chose yourself from the Media Library are your own files and are not deleted. This cannot be undone, so make a backup first if you want to keep your books and reviews. If another Goblin Shelf plugin (for example Goblin Shelf Pro) is installed, nothing is deleted, so you can switch from the free to the Pro version without losing anything.

I had more than 99 books (for example, from Goblin Shelf Pro)

Only the first 99 books (the oldest) are shown on the shelves.

更新日志:

1.0.0