addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [hackshackersnyc] ProPublica Creative Commons Feature

From: Jeff L.
Sent on: Friday, November 5, 2010 1:50 PM
I'm the guy who made the functionality happen, and Aidan's right. It's basically what happens in our code. When an article page is loaded the first thing we do is grab the html in the story and parse out the extraneous tags (e.g. img, div etc) and cache the text in memory.

When a user clicks on 'republish' there's a javascript event handler that shows the overlay and puts the article text in the textarea and loads the flash click to copy thing. We actually used a slightly modified version of:


for the button, but the other two options Aidan mentioned would work fine as well.

--Jeff?

On Fri, Nov 5, 2010 at 10:20 AM, Aidan Feldman <[address removed]> wrote:
Hey Tony-
I don't know anything about ProPublica's CMS or what you are using, but this wouldn't be too difficult for a developer to implement this. ?The popup contains a <textarea> field whose 'value' is set to the contents of that 'node' (or the CMS's equivalent term). ?Another route would be to retrieve the contents of the article using Javascript (on the client side after the page has been rendered), and populate the field that way.

For the click to copy, try these:



Good luck!

Aidan Feldman
Web Developer
American Express Publishing


On Fri, Nov 5, 2010 at 9:56 AM, Anthony Zeoli <[address removed]> wrote:


Hey everyone:

I have a question about the ProPublica Creative Commons feature that allows the user to pop up a new window, display the page content, and allow the user to copy the HTML under Creative Commons.

Does anyone have any insight on if this is some type of plug-in for a CMS or is it a custom build? Anyone know anything about it?

Best regards,

?

Reese NewsTony Zeoli, Lead Developer

Reese Felts Digital Newsroom

:: University of North Carolina at Chapel Hill

:: School of Journalism and Mass Communication

:: 11 Carroll Hall, Cameron Avenue, Chapel Hill, NY 27599

:: O[masked] | M[masked] | E? [address removed]

:: news reesenews.org | project reesefelts.org

Social: Facebook LinkedIn Twitter SlideShare
Chat: Google Talk/ djtonyz Skype/ tonyzeoli MSN/ djtonyz Y! messenger/ anthonyzeoli AIM/ djtonyz
ReeseFelts Blog: Facebook as a news site
Twitter @wordcampnyc no tweets since 9/24???? no schedule posted and its a week away...flights now cost too much...may have to miss this year
??Get this email app!??





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Anthony Zeoli ([address removed]) from Hacks/Hackers - New York.
To learn more about Anthony Zeoli, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]





--
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Aidan Feldman ([address removed]) from Hacks/Hackers - New York.
To learn more about Aidan Feldman, visit his/her member profile

To unsubscribe or to update your mailing list settings, click here

Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]

Our Sponsors

  • Google

    Open Source Programs supports Hacks/Hackers open source efforts.

  • Knight News Challenge

    You Invent it. We Fund It.

  • WNYC

    WNYC was one of the Great Sponsors of the Great Urban Hack.

  • O'Reilly

    Providing knowledge (and tech swag!) for hacks and hackers.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy