Will Wonka asking you to tell him again what WordPress can't do.

Hiding Comment Emails

Obscuring emails in WordPress . . . the comments edition. This is likely overkill but given that VCU has concerns about student emails being divulged via group emails we figured it wouldn’t hurt. I don’t want a class requiring commenting on student sites and that resulting in student unintentionally divulging their VCU emails because they’re logged in. You can see more details on email concerns at VCU (and likely other Virginia universities) at the VCU House Bill 1 site. This is going to go into our production code soon but seems to be working fine in development land. If you’re not a super-admin you will no longer see emails in the main comments view. In the quick edit view, I opted to get a little more nuanced. Email addresses without VCU in them will show normally. I figured this might be useful for contacting outside people. VCU has three or four email patterns but all of them have VCU in the address so I opted to just look for VCU in the email string using strpos. If it finds VCU then it spits back a generic sanitized email, sanitized_email@vcu.edu.1 I thought this would make it more obvious that there wasn’t an error but that emails were being cleaned intentionally. And finally, the single comment edit view. Thanks to Jeremy Felt […]

A drawing of a small terrier dog jumping through a hoop held by a monkey.

WordPress Multisite Email Hider

Virginia recently passed some FOIA legislation (and even more legislation) that says essentially that institutions can’t release student emails without written consent. That includes student directories and other fairly traditional things done with student emails. It led us to look at our WordPress multisite install.1 While a VCU email address is required to sign up for rampages.us, the username can be whatever the person desires. Emails aren’t visible in the user directory. The one place we thought emails would be visible in way that might be unexpected was in the user view of individual sites. If a student is an admin, they’d be able to see the emails of other student users on that site. The following bit of code removes the email column from the users view for everyone that isn’t a super admin. If we see an uproar from teachers about the missing column, we can also add people by user ID by doing something like . . . 2 $ok_people = [1,2,4]; if ( is_array( $super_admins ) && in_array( $current_user->user_login, $super_admins ) || in_array($current_user->ID, $ok_people) ){ [\php] 1 Overkill? Happy to oblige. 2 I didn’t test this yet so …

22

Gravity Forms Rich Text Editor Grayed Out Fix

This isn’t clean and I have no idea why this is behaving this way but . . . this is a way around it. Sometimes Gravity Forms won’t let me choose the “Use the Rich Text Editor” option but I really, really want to choose that option. It’s grayed out as you can see below. In Chrome, I click “inspect element” on the grayed out checkbox and I can then see in the HTML that the word “disabled” is just sitting right there taunting me. What’s nice is I have the power to destroy that word. If I click on it and erase it things become good again and the checkbox is now available. And victory! I haven’t seen any ill effects for doing this and I’m not sure why it’s happening but this a way around it.

20

Weekly Web Harvest for 2018-05-13

educate your child interactive data viz on choosing a school and the impact that has in Chicago Meet Calumma uetzi, a rainbow-colored chameleon from Madagascar that was just named after a VCU professor “It’s one thing to have a species named after you,” he said, “but it’s another thing to have a really nice and pretty species named after you.” erinspace/sonify: Use data to create and play MIDI files! Take a CSV of data, output sound! Using Python! Small b blogging What’s going on here? I call it small b blogging. It’s a virtuous cycle of making interesting connections while also being a way to clarify and strengthen my own ideas. I’m not reaching a big audience by any measure but the direct impact and benefit is material. –what’s this look like for departments/education?

15

Javascript Highlighter to Form (or whatever)

John Stewart asked if I had any easy ways to allow users to highlight some text and push that highlighted text to a form. I didn’t but that sounded like something useful in a variety of scenarios so I sketched out a working demo in Codepen which you can see below. It can push the content directly to a form field on the page but I also built a link that would populate to include the highlighted text as a URL parameter and grab the page URL as well. Like most things I make, it’s the result of some Stack Overflow responses being hit several times with a hammer. It’s decently commented up but is not the most optimized of code. This type of construction usually results in new ideas being incorporated on the fly and that makes for ugly code. I am ok with that as this prototype took about 15 minutes to create. We can polish things up if/when we have a more direct audience/intent. Until then, it’s a functional prototype which can be used to get faculty seeing possibilities. See the Pen highlight to field by Tom (@twwoodward) on CodePen.

15

A Clearer Google Docs Revision History View

It’s a bit awkward to see who did what in a Google Doc via the version history. That’s something faculty often want to do. The easiest path I found was to name the oldest and newest versions. Then click to show only named versions. That does it pretty well. The video above shows it with more detail.

13

Weekly Web Harvest for 2018-05-06

J.R.R. Tolkien Expressed a “Heartfelt Loathing” for Walt Disney and Refused to Let Disney Studios Adapt His Work | Open Culture he also called Disney a “poor boob” and lamented “What might not have come of it if this man had been educated—or even brought up in a decent society?” AirSelfie2 Drone | Boing Boing Store The Selfie Gets an Upgrade with This Phone-Controlled, Pocket-Sized Drone

06

Weekly Web Harvest for 2018-04-29

JOSEPH BEUYS: I LIKE AMERICA AND AMERICA LIKES ME | Kids of Dada In 1974, Beuys spent three days in a room with a wild coyote for his performance, I Like America and America Likes Me. The Ratio Tracker — Data For Progress Twitter occupies a relatively small share of the American public, but counts essentially every public figure among its daily active users. As much of elite communication takes place on this online platform, we at Data for Progress feel that it is important to provide some insight on how political elites use the platform, and how their audiences respond. In this spirit, we will be providing periodic analyses into various aspects of the Twittersphere. You Can’t Opt Out Of Sharing Your Data, Even If You Didn’t Opt In | FiveThirtyEight It’s what happens when one person’s voluntary disclosure of personal information exposes the personal information of others who had no say in the matter. Your choices didn’t cause the breach. Your choices can’t prevent it, either. Welcome to a world where you can’t opt out of sharing, even if you didn’t opt in. ?? Dashan on Twitter: “Seen at a Harbin restaurant: swinging cradle for your phone, I’m told to cheat the “10k steps/day” test & qualify for health insurance discounts, presumably while you relax, eat & drink […]

29

Weekly Web Harvest for 2018-04-22

Old Man River – Futility Closet Because of its importance to the region’s M?ori people, New Zealand’s Whanganui River is legally a person, with rights, duties, and liabilities, including the right to be represented in court proceedings. Treaty Negotiations Minister Chris Finlayson said the river will be recognized as a person “in the same way a company is, which will give it rights and interests.” Recapping and Reflecting on OLC Innovate 2018 – Adam Croom While I was flying to Nashville, I had an idea. I grabbed all of the names, emails, and companies that emailed me, and put together a spreadsheet. Aha, if you have a spreadsheet, you have a database. I proceeded to then write a email template inviting them to this session. It’s a drip campaign which means if they don’t respond, I also reminded them. BBC Sound Effects – Research & Education Space These 16,016 BBC Sound Effects are made available by the BBC in WAV format to download for use under the terms of the RemArc Licence. The Sound Effects are BBC copyright, but they may be used for personal, educational or research purposes, as detailed in the license.