CK MacLeod's

jQuery-Filling an Input Box in WordPress Admin

Though I have somehow managed to produce some relatively complex scripts, I am still at the stage with jQuery that, when I manage to achieve some elementary thing, I throw a little celebration in my trusty old Aeron.

I also tend to forget what I’ve figured out until the next time I have to achieve the same effect. So, here are some notes for future reference, or for the sake of other jQuery hackers, on how I think a textbox should be filled in WordPress Admin… from simple anchor links… and when the content – in this instance long image links –  is too long to be nicely contained. Read more ›

Posted in WordPress Plug-Ins Tagged with: , ,

Comparative Page Loads with and without Image Errors

This benefit of WP-RUBI is additional to the one of avoiding “the $8,000 mistake” of using unlicensed images, but for some sites will be much more important.

Focusing on images exclusively, here is the difference between two page loads, one with image errors, one with WP-RUBI replacement, as recorded on Google Chrome Developer Tools console (no throttling).

With errors:

Page Loaded with Two Broken Image Links

Page Loaded with Two Broken Image Links

Read more ›

Posted in notes, WordPress Plug-Ins Tagged with: , ,

An Alliance of Digital Artists (Art and Work in the Age of Instant Reproducibility)

If the Digital Artists Alliance never amounts to more than a temporary reference point, the basis for a gesture of respect by some site operators toward an ideal, then that will be enough for me, but I invite anyone interested in exploring larger possibilities to join me.

Is there already an organization or organizations set up to protect and advance the rights and interests of digital artists, and to inform and educate both them and their patrons, clients, employers, and “users” about those rights and interests as such?

I have not heard of such an organization, though I know that numerous artist guilds and groups worldwide have been actively engaged on the topic, and that “Digital Rights” issues have been at the forefront of major litigation and legislation. An initial net search did not turn up any organization of this particular type, and I was surprised to discover that “digitalartistsalliance” was available as a “top level domain name” in the main variants that occurred to me. The TLDs “digitalartsalliance.com” and “digitalartsalliance.org” (i.e., referring to “arts” rather than “artists”) are taken, but, as you may see if you click on the links, they do not appear to be actively in use as of this writing.

For now, digitalartistsalliance.org and digitalartistsalliance.com, which I purchased yesterday, link to a sub-page at this site, but, if the idea generates some positive response, I may move on to setting a free-standing site, as the home of a not-for-profit membership organization. At this point, however, I’m thinking we still need to define the idea. Read more ›

Posted in Featured, Web Design Tagged with: , , ,

Devoted and Selfless Consecration

IMG_5226

To mark the anniversary of the death of a veteran, the United States Government sends out a framed “certificate” like the one pictured above.

My father was proud of his service, but he was not a hero decorated for valor or a high-ranking officer, his experience of combat was limited (quite more than enough at that, he would say), and, more to the point, the war in which he fought was won by a self-consciously democratic nation: No reason why this later commemorative message should be anything other than “government issue”: That it makes a good first impression and brings back fond memories of Dad is good enough for us, anyway. So what if they happened to spelled our family name wrong, without capitalizing the “L” in MacLeod? “MacLeod” may be the most common of Scottish names, but the USG is the USG. If the Nazis had won, maybe their commemorations would have been perfect, but they didn’t win.

The signature stands out, and Dad in his last years may have been Obama-deranged enough to dislike the certificate on that basis alone. In his earlier years, I believe he would have been more accepting. The ink seems a bit thick, and I will assume until and unless informed otherwise that it was done by “autopen.”

The most interesting thing to me about the document is, however, its sacralized language, not its production values. Read more ›

Posted in notes, Political Philosophy, War

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): Read more ›

Posted in notes, WordPress Plug-Ins Tagged with: , ,

Getting Right with Image Rights: WP Replace Unlicensed and Broken Images Plug-In

A primary use for WP-RUBI will be at sites where administrators have decided to remove images that have been used either without permission or under lapsed or lapsing usage licenses: Proper employment will help to reduce or eliminate legal and actual “exposure” quickly and easily, without harming the site’s search engine rankings and while preserving posts as originally composed, allowing for eventual restoration.

In recent years, with the maturation of the internet and especially of the blogosphere, sites that display photos and other images without concern for usage rights have come under enhanced scrutiny, sometimes resulting in costly lawsuits and always at least anxiety-producing threats of lawsuits. In addition, some site operators, especially as they have gotten more successful, have undergone a change in thinking about the underlying issue: the right of artists not to have their worked exploited without acknowledgment and, where appropriate, payment.

My new WordPress plug-in “WP Replace Unlicensed and Broken Images” (WP-RUBI) makes getting right with image rights easier. It selectively replaces images when a post is rendered, according to whatever chosen combination of post publication date, particular post or posts, post categories, authors, image file locations, and image types, supplying a customizable fallback image in place of the unwanted or broken one, and without altering underlying post data. Unlike common Javascript/jQuery solutions for broken images and links, WP-RUBI will also prevent load and search engine “crawl” errors that can harm search engine rankings and also fill up a site’s error log to the point of making it unusable.

Read more ›

Posted in Using WordPress, WordPress Plug-Ins Tagged with: , , ,

A Trump Rally Live-Tweeted

Make room in the time capsule for the hard copy.

Read more ›

Posted in Politics, US History Tagged with:

Subtweet (American Conservative Eschaton)

So, we can sum up the crisis of the American conservative movement as follows: With less and less semblance of temperamental conservatism, ever more self-destructively, nominally conservative Americans have sought in vain to immanentize as eschaton the non-immanentization of eschaton. Having reacted to the realization of paradox on the level of the whole state or the level of highest abstraction, represented in politics as the national level or the level of collective conceptual self-integration – so, integration by disintegration – as eventually world-historical failure, they have, by re-doubling down on re-doubling down without limiting idea, at last produced the political-intellectual equivalent of a nuclear explosion, with their constituency or former constituency clustered at ground zero.

Posted in Featured, Political Philosophy, Politics, US History

Subtweet

The absolute evil for politics as politics is the introduction of the question of absolute evil into politics, as the dissolution of politics. This rule is of the same form as the prejudice of philosophy against the entrance of prejudice into philosophy.

Posted in Featured, Political Philosophy

From the Featured Archives

Categories

Extraordinary Comments

CK's WP Plugins

Recent Posts

Tweet-Drizzle on Merkel on New World Disorder (OAG #12)

If the generation since the fall of the USSR has been a tale of the unfitness of the USA for leadership, then Trump is pure continuity.[...]

One Giant Leap for Ordinary Gentlepersonkind (Commenter Ignore Button Use Case)

"The reality is, on any public forum there is going to be a peanut gallery, and I’ve never seen a moderation policy that can quite eliminate them, but not eliminate interesting people who I want to hear from. So, culled lists, either individually (as here) or collectively (as was needed in a larger space such as Twitter), are a fine thing. They make a forum far more pleasant to use."[...]

Theodicy of Trump - a Tweet-Drizzle (OAG #11)

...the one thing Trump & his voters had right was the political class - as continually re-confirmed in their pusillanimous responses to him.[...]

The Honorable 47 Rogues of the Palpatine Era

Rogue One's fish-eyed admirals running the space battles were far more credible figures than the Fisher's sex dollish image clone - hallelujah![...]

Exterminating the Non-Breaking Space Bug

O layout mutilator! O blogger humiliator![...]

American Idealism, American Identity - Thread by @dhnexon, with Brief Comments

"In fact, Trump is the most anti-exceptionalist POUTS since 1945."[...]

The Deep State vs the Derp State (OAG #10)

Can a responsible citizen refuse to take a side?[...]

Yearning for President Blog - OAG #9

The Tweet-storm, in the new era of President Tweet, remains a nostalgia-inducing afterimage of the blog and of the era of President Blog, but it may also portend a return or attempted return to coherent, accountable, and consequential civic discussion in a mass society, back from the Great Flood of clicks.[...]

Nested Comments Unbound 1.0 Now Available from the WordPress Repo

Enable open-ended maximum depth for nested comments, preserve comment-reply-links for all comments, keep the results readable.[...]

Tweets toward an Inquiry into Inquiry, in relation to Ideologies

There are progressive and liberal ideologies or ideological constructs, but the desirability of progress and its attainment via rational and open ("liberal") inquiry remain pre-conditions of any authentic (authentically "discursive") discussion.[...]

All the News that's Fit to Kill (OAG #8)

The Post appears to be promising to narrate the death of democracy - or, if unconsciously, to be revealing an intention to embody it.[...]

On Emulating the TP vs Trump's GOP

"Remember when everyone lectured Tea Party they should speak sweetly to woo liberals & so they toned down & then they won 2010? / Me neither."[...]

King of the World

[...]

Commenter Ignore Button Plug-In Now Available from the WordPress Repo

Commenter Ignore Button (CIB) lets a user to put one or more commenters "on ignore." To have such an option enabled is a frequent request at blogs and other sites where comment threads are plagued by trolls or other problematic commenters, but where site operators prefer to err on the side of open discussion - or don't want to get involved unless they really have to. Once users become generally aware of the option, people just seeking attention may either be more polite or move somewhere else, while regular commenters - and lurkers - may become more willing to engage.[...]

Ignoring in "Illdy": A CIB Adaptation to a "Bootstrapped" Theme (Case Study)

If you're not able to perfect your theme yourself, or not willing to hire a designer, then being a perfectionist is unrealistic. Yet just getting good enough on first glance results when adding CIB to customized comment templates, even before fine-tuning, may require some more complicated work. For those intimidated by the prospect, here is an example of curing the output on one typically atypical theme.[...]

Oops...

[...]

Adding wp.media Multiple Image Selection to WordPress Plug-Ins

WordPress Multiple Image Selection in jQuery[...]

Friend Dog Studios: 2016: The Movie (Trailer) - YouTube

https://www.youtube.com/watch?v=Z04M6NhkIKk[...]

Postscript to future historians from Xmas 2016 (OAG #8)

We would be compelled to conclude that something must have been (and very likely remains) profoundly wrong with a political culture or political media - of which Matthew Yglesias and Vox are, of course, typical parts - that could be dominated by an issue to be judged intrinsically trivial, and dominated to the point of determining eventual collective decisions of undoubted significance.[...]

Commenter Ignore Button 0.99

Now in "Late Beta" - and, for a limited time, I'll offer free styling, installation, and configuration to anyone who wants to try it out![...]