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)

Noted & Quoted

(0)

[C]limate scientists have a strange kind of faith: We will find a way to forestall radical warming, they say, because we must.

It is not easy to know how much to be reassured by that bleak certainty, and how much to wonder whether it is another form of delusion; for global warming to work as parable, of course, someone needs to survive to tell the story. The scientists know that to even meet the Paris goals, by 2050, carbon emissions from energy and industry, which are still rising, will have to fall by half each decade; emissions from land use (deforestation, cow farts, etc.) will have to zero out; and we will need to have invented technologies to extract, annually, twice as much carbon from the atmosphere as the entire planet’s plants now do. Nevertheless, by and large, the scientists have an enormous confidence in the ingenuity of humans — a confidence perhaps bolstered by their appreciation for climate change, which is, after all, a human invention, too. They point to the Apollo project, the hole in the ozone we patched in the 1980s, the passing of the fear of mutually assured destruction. Now we’ve found a way to engineer our own doomsday, and surely we will find a way to engineer our way out of it, one way or another. The planet is not used to being provoked like this, and climate systems designed to give feedback over centuries or millennia prevent us — even those who may be watching closely — from fully imagining the damage done already to the planet. But when we do truly see the world we’ve made, they say, we will also find a way to make it livable. For them, the alternative is simply unimaginable.

Comment →
(1)

They were concerned that any pre-election response could provoke an escalation from Putin. Moscow's meddling to that point was seen as deeply concerning but unlikely to materially affect the outcome of the election. Far more worrisome to the Obama team was the prospect of a cyber-assault on voting systems before and on Election Day. They also worried that any action they took would be perceived as political interference in an already volatile campaign. By August, Trump was predicting that the election would be rigged. Obama officials feared providing fuel to such claims, playing into Russia's efforts to discredit the outcome and potentially contaminating the expected Clinton triumph.

This, right here. This is where they choked. The American people had damned close to an absolute right to the information their government already had. The most fundamental act of citizenship is the right to cast an informed vote. The idea that the Obama administration withheld the fact that the Russians were ratfcking the election in order to help elect a vulgar talking yam is a terrible condemnation of the whole No Drama Obama philosophy. Would Donald Trump have raised hell if the White House released what it knew? Of course, he would have. But, as it was, the American people went to vote with only about half of the information they needed to assess his candidacy. This was a terrible decision.

Comment →
(0)

Changing views of U.S. presidents over past decade and a halfAs Pew Research Center’s global surveys from George W. Bush’s presidency illustrated, many of Bush’s key foreign policies were unpopular, and by the time he left office Bush was viewed negatively in most of the countries we polled. His successor, Obama, generally received more positive ratings throughout his White House tenure.Today, in many countries, ratings for President Trump look very similar to those for Bush at the end of his term. This pattern is especially clear in Western Europe. In the UK, France, Germany and Spain, the low levels of confidence in Trump are very similar to the poor ratings for Bush in 2008.

Comment →

State of the Discussion

Wade McKenzie
Comments this threadCommenter Archive
+ …the desperate last-gasp radicalism of American reactionary conservatives before the demographic deluge and the expected relegation of white-European Americans to “minority” status in “their own” [. . .]
Holy American Major League of Nations (Notes on Baseball and the Re-De-Nationalization of Americanism)
Wade McKenzie
Comments this threadCommenter Archive
+ Speaking of George Friedman... The party of Chancellor Angela Merkel no longer uses the word “friend” to describe the United States in its platform. But in [. . .]
German Trust in America – the Trend (#OAG 12b)

just a note on your observation about the whiskey rebellion

https://youtu.be/ASZ7NXD4i1s

Holy American Major League of Nations (Notes on Baseball and the Re-De-Nationalization of Americanism)

Extraordinary Comments

CK's WP Plugins

Categories

Related