[wp-meta] [Making WordPress.org] #986: Display video producer credit on WPTV posts

Making WordPress.org noreply at wordpress.org
Fri May 8 17:35:06 UTC 2015


#986: Display video producer credit on WPTV posts
--------------------------+----------------------------------------
  Reporter:  iandunn      |      Owner:  iandunn
      Type:  enhancement  |     Status:  accepted
  Priority:  normal       |  Component:  WordPress.tv
Resolution:               |   Keywords:  needs-patch good-first-bug
--------------------------+----------------------------------------

Old description:

> [https://wordpress.slack.com/archives/outreach/p1428608299000561 Per
> today's Community Team chat], people who contribute post production on
> WordPress.tv videos should be credited on the corresponding WPTV post.
>
> At the bottom of the sidebar, we should add a new section titled "Video
> Producer", and then add a link to their WordPress.org profile in that
> section. The anchor text for the link would be their full name, rather
> than their username.
>
> We already collect the producer's name on [http://wordpress.tv/submit-
> video/ the Submit Video form], but we'll need to start collecting their
> WordPress.org username too.
>
> We could have a note that we want the *individual's* name/profile, not
> their company.
>
> They can leave the name/username blank, but if they enter a username we
> should make sure it's a valid WordPress.org account, and prevent the form
> submission if it isn't.
>
> Since WPTV is hosted on WordPress.com, we'll need to submit some kind of
> request to WordPress.org to check the username. WordPress, BuddyPress, or
> api.wordpress.org might provide something. If not, we could add something
> to api.wordpress.org, or worst case just request their profile URL and
> analyize the HTTP response headers, because non-existant profiles get
> redirected to https://wordpress.org.

New description:

 [https://wordpress.slack.com/archives/outreach/p1428608299000561 Per
 today's Community Team chat], people who contribute post production on
 WordPress.tv videos should be credited on the corresponding WPTV post.

 At the bottom of the sidebar, we should add a new section titled "Video
 Producer", and then add a link to their WordPress.org profile in that
 section. The anchor text for the link would be their full name, rather
 than their username.

 We already collect the producer's name on [http://wordpress.tv/submit-
 video/ the Submit Video form], but we'll need to start collecting their
 WordPress.org username too.

 We could have a note that we want the *individual's* name/profile, not
 their company.

 They can leave the name/username blank, but if they enter a username we
 should make sure it's a valid WordPress.org account, and prevent the form
 submission if it isn't.

 Since WPTV is hosted on WordPress.com, we'll need to submit some kind of
 request to WordPress.org to check the username. WordPress, BuddyPress, or
 api.wordpress.org might provide something. If not, we could add something
 to api.wordpress.org, or worst case just request their profile URL and
 analyize the HTTP response headers, because non-existant profiles get
 redirected to https://wordpress.org.

 Just make sure you label the hack in the source so that it can be
 understood later.

--

Comment (by Otto42):

 > Checking the response headers from profiles.wordpress.org

 Ick. We can do better than that.

 Rather than hitting the profiles directly, have you looked at how we
 display gravatars here on places like Trac, which don't have access to the
 w.org user tables directly?

 Compare the results of these two requests:

 https://wordpress.org/grav-redirect.php?user=BrashRebel

 https://wordpress.org/grav-redirect.php?user=non-existent-username

 We may create an API for better user information in the future, but if
 you're going to do this as a hack for now anyway, I'd rather you hit an
 endpoint that a) isn't likely to change and b) is very low cost for us.
 Hitting profiles directly, not very low cost.

--
Ticket URL: <https://meta.trac.wordpress.org/ticket/986#comment:14>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list