Getting Right with Image Rights: Workflow and Major Minor Upgrade

I discovered many non-rights-cleared images that I now think may have detracted from the posts in some ways, even if they initially seemed to make them more attractive or striking.

After announcing the WP-RUBI Beta (0.91) a bit more than a week ago, I installed and began to work with it at this very blog, and I immediately began to notice that “workflow” improvements I had thought to save for a later day – or even reserve for a “premium” version – had to be considered “basic” to using the plug-in effectively. So, I began another week of fairly intensive work now represented in the Beta numbered 0.93. I could “re-up” or “re-announce,” but I’ll think I’ll save doing so for submission of “1.0” to the WordPress Plug-In Repo.

The enhancements include the following:

  • Set and View Image Removal/Replacement Status from Post Edit and All Posts/Pages (Quick and Bulk Edit) Screens
  • Category and Author Inclusion/Exclusion by Display Name instead of ID #
  • Category Inclusion/Exclusion Includes “Child” Categories
  • Option to Replace Images without Standard Image File Extensions (Mainly Served Images)
  • Admin Convenience Improvements (Expandable Text Areas instead of Text Boxes, Additional Editing Instructions)
  • Expanded Reset Options: Reset Main Settings and Post Settings Separately if Desired

In terms of actual workflow as I worked and flowed it, I think that the first and third above were the most significant (code samples at end):

Set and View Image Removal/Replacement Status from Post Edit and All Posts/Pages (Quick and Bulk Edit) Screens

In 0.91 and every version going back to Replace Old Images, individual post inclusions or exclusions were handled strictly via the main settings page, where included/excluded posts would be listed by ID. I realized that it would be much simpler if I could include or exclude (“clear”) a post from its own edit screen or from All Posts listings. The answer was to use “post meta” instead of global settings, and to add new columns to All Posts (and All Pages). A related convenience feature is the display of discrepancies, if any, between all images found and all images matched. Users may wish to examine “discrepant” posts for images served or sourced elsewhere than in the usual uploads directories, and adjust the “rights clearing” process accordingly.

Category Inclusion/Exclusion Includes “Child” Categories

In 0.91, category-based exclusions/inclusions did not include “child” categories (sub-categories). I quickly realized that at different points, depending on the number and character of posts in a given category or its child categories, it would be easier to be able to work with a “parent” as such instead of having to deal one by one with its children. Upon successful clearing of an entire parent category, it would also be more practical on the settings page to exclude the parent from general removal without having to list each individual child as well.

Workflow Notes

I found myself proceeding as follows:

PHASE I – Initial implementation: Prior To Date

  1. Set current date as “Prior To Date.”
  2. Clear “front page” posts of questionable/dangerous images – move “Prior To Date” back.

At that point, I felt I had a safe and initially presentable site.

PHASE II – Priority Categories

  1. Identify, exclude, and view high priority category.
  2. Open all posts in tabs, page by page: In most cases I could tell by featured image whether they next had to be opened for editing.
  3. Clear priority category – post by post.
  4. Exclude category from image removal and replacement.
  5. View effects on later pages: If appropriate, move “Prior To Date” back again.
  6. Move to new priority category and repeat.

After the 0.93 changes, I could easily move through All Posts, and bulk clear large numbers of posts at a glance. If I had an archive of 10s of 1000s of posts, however, I might prefer to work by author or category. Even then, however, a WordPresser can filter for Author or Category fairly easily via All Posts, so in many instances working through All Posts rather than category by category from Front End archives might still end up being the most efficient way to proceed.

General Observations: On Getting Honest

If fear of a lawsuit or threat of one – as a low probability, high impact danger – is not enough to motivate a blogger to get right with image rights, and the moral question also doesn’t move him or her, there’s something to be said for going gray anyway – as writers mostly have had to do for thousands of years up until the present (oh so fallen) era.

Along my image-curing way, I discovered many non-rights-cleared images that I now think may have detracted from the posts in some ways, even if they initially seemed to make them more attractive or striking.

So, for example, my first “priority” category was “Featured” – posts from my archives that I think of or thought of as best representing my work. If I ever put together a Selected Works by CK MacLeod anthology, I would begin with these. Among them was a series of posts I wrote in 2013 on the political, moral, and international-legal ramifications and possible historical significance of the chemical attack in East Ghouta, Syria, and the reaction of the Obama Administration. I had used several news photos depicting either the physical destruction of Syrian cities or the direct casualties of the attack, but I wonder now whether they oversold my argument, putting me in the position of someone scolding my moral inferiors (everyone) or seeming to blame them (you) for an indifference or callousness that exploitative use of, say, a photograph of assembled children’s corpses, may actually reinforce and hypocritically demonstrate.

In any event, I feel comfortable letting the words stand for themselves. I think the argument and perhaps the descriptions stand forth more strongly without exploitation in the common sensationalistic and therefore (quite observably) de-sensitizing, way. In other posts I found use of images from popular culture mainly adding a comedic effect that, again, in retrospect, seemed to detract from the seriousness of the presentation, even when they were not, as in a few cases, simply clichés or destined to become cliché (like using a “Terminator” image in a discussion of drone warfare).

If and when I construct and publish an anthology or anthologies, leaving the images out ought to simplify the project: I’ll have less to worry about as far as adaptation to “e-pub” or print formats is concerned, and I’ll also not have to worry about getting permissions.

Code Example 1: Include Child Categories

This function detects whether the given Post is in any of the designated categories (from $options) and returns “true” if so. I had some difficulty getting it right (see commented portions).

Code Example 2: Adding columns and options to Quick and Bulk Editor

screenshot-6This process was much more complicated: worth a post in itself. Or, rather, it might be if  WordPresser Rachel Carden (@bamadesigner) hadn’t already done most of the groundwork at her blog and at Github.

Getting the output I wanted for the two new columns did involve more “original” work: Nothing terribly fancy, and I’ve no doubt it could be improved, but here it is, with one unsolved mystery noted at the end.

First, the code for the Featured Image column, which, as you can see from the annotated screenshot above, is among other things designed to tell you via fallback image and color-coding both whether the Post or Page has a “Featured Image” (aka “Thumbnail,” but not always displayed at “thumbnail” size), and whether the Post or Page is included in Image Removal and Replacement.

A second helper function counts occurrences of images found in posts, returning one number for all images actually matched, another for all actually found. [29 June: Had to change this file to address relatively rare Regex results producing “catastrophic backtracking” in some cases – also refined search pattern – still working on it, but for latest results check plugin file admin.php, currently ca. lines 682 – 708]

And here are the both-columns content functions:

The above columns need to be enabled by familiar add_filter and add_action functions…

…which need to be copied and run a second time under different names to produce a display in All Pages. That’s the mystery.

IOW, the first time out, I tried

But it didn’t work until I wrote the new virtually identical functions (I ended up changing “Post” to “Page” in the messages) under new names, producing the following:

…and all of this is a small part of how I went from a plug-in whose code required all of around 200 lines in one PHP file to more than 2000 lines in a set of PHP, CSS, and jQuery files.


WordPresser
Home Page  Public Email  Twitter  Facebook  YouTube  Github   

Writing since ancient times, blogging, e-commercing, and site installing-designing-maintaining since 2001; WordPress theme and plugin configuring and developing since 2004 or so; a lifelong freelancer, not associated nor to be associated with any company, publication, party, university, church, or other institution. 

Posts in this series

Commenter Ignore Button by CK's Plug-Ins

Leave a Reply

Your email address will not be published. Required fields are marked *

*

WordPress Plug-In Notes

  1. Realizing the Commentariat (May 8, 2015)
  2. Child of Mog; Extraordinary Comments (May 25, 2015)
  3. Patronize 'Em: WordPress Draft Post Docket with Subscription and Donation Options (June 9, 2015)
  4. Realizing The Commentariat: Phase 2 (June 22, 2015)
  5. Pseudo-Redacting Spoilerer (July 25, 2015)
  6. Spoiling you some more (August 5, 2015)
  7. Testing Ajaxified Comments - Experiment Halted (August 11, 2015)
  8. New New Since Last Visit Comments Comments (August 16, 2015)
  9. WordPress Comment Nesting Unbound (August 22, 2015)
  10. The Snake Is Implemented (August 25, 2015)
  11. Comments Since Last Visit Reloaded, Reloaded, Testing Post (August 31, 2015)
  12. Comments Since Last Visit, Reloaded, Augmented, Installed, In Two Steps (September 13, 2015)
  13. Coming Soon (I Think!): Author Bios (September 25, 2015)
  14. How to Do Backlinking Footnotes (November 30, 2015)
  15. Who or What Is Using "Commenter Archive" and "commenter-thread"? (February 16, 2016)
  16. Enabling WordPress Press This for HostGator Sites (March 9, 2016)
  17. Linkback Your Xpost: A Simple WordPress Filter Function (March 14, 2016)
  18. Add Amazon Affiliate Tags to WordPress Posts <i>and</i> Comments Automatically (March 19, 2016)
  19. Finding Lost WordPress Widgets after Core Upgrade (March 21, 2016)
  20. Plug-In Away... and the Iron Law of Irony (April 16, 2016)
  21. To o-b or not to o-b (output-buffering in WordPress) - UPDATED (April 24, 2016)
  22. Output-Buffering and Extensible WordPress Plug-Ins (May 21, 2016)
  23. Getting Right with Image Rights: WP Replace Unlicensed and Broken Images Plug-In (June 17, 2016)
  24. Getting Right with Image Rights: Workflow and Major Minor Upgrade (June 27, 2016)
  25. Getting to Better WordPress Twitter oEmbed (June 28, 2016)
  26. An Alliance of Digital Artists (Art and Work in the Age of Instant Reproducibility) (July 8, 2016)
  27. Comparative Page Loads with and without Image Errors (July 14, 2016)
  28. jQuery-Filling an Input Box in WordPress Admin (July 15, 2016)
  29. Drilling a Hole in the Universe with WP_Query in a Shortcode (September 1, 2016)
  30. Troll-Stomping and Other Sensible Things: #WordPress Plug-In Beta Test/Preview (November 12, 2016)
  31. Commenter Ignore Button Preview Video (November 30, 2016)
  32. Is This Solution for Caches vs Cookies Going to Get Me in Trouble? (November 30, 2016)
  33. Commenter Ignore Button 0.99 (December 21, 2016)
  34. Adding wp.media Multiple Image Selection to WordPress Plug-Ins (January 5, 2017)
  35. Working around an Unexplained Failure of WordPress {$taxonomy} Hooks (January 10, 2017)In Progress: Subscribe!
  36. Better Twitter Embeds 2: Stripping the Convo for the Sake of the Convo (February 19, 2017)

State of the Discussion

+ This is the right site for anyone who hopes to understand this topic. You understand a whole lot its almost hard to argue with you [. . .]
The Ephemeral Sublime vs The Triumph of Death
+ From early on, Trump gave his adversaries abundant excuses to declare him illegitimate, or illegitimate as far as their principles were concerned. To skip ahead [. . .]
Theodicy of Trump – a Tweet-Drizzle (OAG #11)
Wade McKenzie
Comments this threadCommenter Archive
+ Only the retrospective knowledge that Trump, against every establishment anticipation, won the election lends the idea that Hillary Clinton ought to have refused to participate [. . .]
Theodicy of Trump – a Tweet-Drizzle (OAG #11)

From the Featured Archives

Categories

Related