Linux 软件免费装
Banner图

D11 Random Quote Loader

开发者 briz_dad
更新时间 2026年10月14日 06:56
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

widget sidebar random inspirational quote

下载

2.3.1 2.3.2 2.0.6 2.3 2.3.3 2.3.4

详情介绍:

D11 Random Quote Loader adds a classic WordPress widget that pulls a random quote from a custom database table each time a page loads. Quotes are managed entirely from within your WordPress dashboard, and the plugin ships with three sample quotes so it works immediately after activation. Features:

安装:

  1. Upload the d11-random-quote-loader folder to /wp-content/plugins/, or install directly through the WordPress plugin screen.
  2. Activate the plugin through the Plugins screen in WordPress.
  3. Go to Appearance > Widgets and drag the D11 Random Quote Loader into your desired sidebar.
  4. Optionally set a widget title and click Save.
  5. Visit Quotes in your admin menu to add, edit, or delete quotes, or to import/export via CSV.

屏幕截图:

  • The Manage Quotes admin page — add, edit, delete, export, and import quotes
  • Configuring the D11 Random Quote Loader widget in the WordPress Widgets screen

升级注意事项:

2.3.4 New Edit Quote screen, per-quote security nonces, safer CSV Replace, CSV import without mbstring, and entity-free CSV export. No database changes. Recommended for all users. 2.3.3 Maintenance release: CSV formula-injection protection, accurate save messages, blank-quote prevention, all-or-nothing CSV Replace, and Plugin Check fixes. No database changes. Recommended for all users. 2.3.2 Confirms compatibility with WordPress 7.1. No functional changes — safe drop-in for 2.3.1. 2.3.1 Maintenance release: PHP 8.4 CSV compatibility fix, CSV upload hardening, shortcode filter correction, and improved DB install reliability. Recommended for all users. 2.3 Security update: database table renamed to {prefix}d11rql_quotes, CSV import transaction fixed, CSV parser hardened. Existing installs migrate automatically on next page load — no manual steps. 2.2 Internal prefix rename from rqw_ to d11rql_. No database schema changes. Safe drop-in for 2.1. 2.1 Important: shortcode renamed from [random_quote] to [d11rql_random_quote] — update any posts or pages using the old shortcode. 2.0.6 Compatibility update for WordPress 7.0. No code or database changes. 2.0.5 Adds pagination to the admin Manage Quotes page. No database changes. 2.0.4 Adds a database index on the category column. No data changes. 2.0.3 Important fix for caching plugins — random quotes now display correctly for logged-out visitors. 2.0.2 Database hardening: transactional CSV import. Safe drop-in for 2.0.1. 2.0.1 Security and reliability hardening. No database changes. 2.0 Adds quote categories with a safe automatic database upgrade. 1.9 Adds the shortcode. No database changes required. 1.8 Coding standards compliance and full i18n. No database changes required.

常见问题:

How do I add quotes?

Navigate to Quotes in your WordPress admin sidebar. Use the form at the top of the page to add a new quote and an optional author name.

Can I import quotes in bulk?

Yes. Prepare a .csv file with two column headers: quote and author. Use the Import CSV section at the bottom of the Quotes admin page. By default, imported quotes are appended to your existing library and duplicates (the same quote and author, ignoring letter case) are skipped; you can optionally choose Replace to delete existing quotes first. Replace is all-or-nothing: if any row is invalid (for example, an empty quote or an author longer than 255 characters), nothing is changed and the invalid rows are listed by spreadsheet row number, counting the header as row 1. Replace needs the quotes table to use the InnoDB storage engine (the WordPress default) so that a failed import can be undone; on other storage engines Replace is refused and nothing is changed, so use Append instead. In the default Append mode, valid rows are imported and invalid ones are skipped and reported. Import supports up to 5,000 rows. Files saved from Excel (Windows-1252 encoding) are converted automatically.

How do I export my quotes?

Click Export to CSV on the Quotes admin page. The file downloads immediately. To protect against spreadsheet formula injection, any cell that begins with =, +, -, @, a tab, or a carriage return is exported with a leading apostrophe (for example, '=1+1), so Excel and other spreadsheet apps treat it as plain text. Exports also include an empty d11rql_formula_protection column. Leave that column in place: when it is present, re-importing removes the added apostrophes and restores your original text exactly. Files without it, such as exports from version 2.3.2 or earlier and spreadsheets you create yourself, are imported exactly as written, so apostrophes in them are always kept.

Can I style the widget output?

The widget currently outputs the quote and author as plain, unstyled paragraph elements with no CSS classes attached, so there's nothing to target directly — style it via your theme's general paragraph rules, or wrap the widget area in a custom container. The shortcode (below) uses semantic markup with CSS classes and is the better option if you want more granular styling control.

Will my quotes be deleted if I deactivate the plugin?

No. Deactivating the plugin leaves the database table intact. Quotes are only deleted when you choose Delete on the Plugins screen, which triggers the uninstall routine.

Is the plugin translation-ready?

Yes. All user-facing strings use the d11-random-quote-loader text domain and are ready for translation via .po/.mo files in the /languages/ folder, or via translate.wordpress.org.

What PHP version is required?

PHP 7.4 or higher. PHP 8.0+ is fully supported and recommended.

How do I use the shortcode?

Place [d11rql_random_quote] anywhere in a post or page. Available parameters: [d11rql_random_quote] [d11rql_random_quote title="Daily Quote"] [d11rql_random_quote category="inspiration"] [d11rql_random_quote title="Food for Thought" category="philosophy"] The shortcode outputs a div.rqw-shortcode wrapper containing a blockquote.rqw-shortcode-quote element, and an h3.rqw-shortcode-title when a title is provided.

How do categories work?

Assign a category name to any quote when adding or editing it in the Quotes admin page. Then use [d11rql_random_quote category="your-category"] in a shortcode, or set a category in the widget settings. Quotes with no category assigned are treated as uncategorized and will appear in all category queries as a fallback.

Does the plugin support WordPress multisite?

The plugin supports individual site activation on WordPress multisite installations using per-site table prefixes. Network-wide activation is not currently supported. Please activate the plugin on each site individually.

更新日志:

2.3.4 2.3.3 2.3.2 2.3.1 2.3 2.2 2.1 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0 1.9 1.8 1.7 1.6 1.5 1.4 1.3 1.2 1.1 1.0