Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Can you please provide the JSON for the post in question?

    Thanks.

    Thread Starter warrentab

    (@warrentab)

    Hey, Bradford –

    Sure, only where can I find this file?

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    Click the download link for any post in the Apple News list.

    Thread Starter warrentab

    (@warrentab)

    Hey, Brad –

    How’s this?

    Are You a True Hockey Dad?
    CrossIceHockey.com: Where Rec Hockey LIVES!

    A special shout out to the true hockey dad (& mom) Read the full story

    Shared from Apple News

    Are You a True Hockey Dad? – CrossIceHockey.com: Where Rec Hockey LIVES!
    https://apple.news/A_FWtxN5YS4eNiHcmJSQkOw

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    That’s not it. It would be a big file in JSON format. Please check again and make sure after you paste it here, you highlight the text and click the ‘code’ button above the editor so it formats properly.

    Thanks.

    Thread Starter warrentab

    (@warrentab)

    <h2><em><span style="line-height: 1.5;">A special shout out to the true?hockey dad (and mom) everywhere</span></em></h2>
    By Jamie McKinven
    
    &nbsp;
    <div class="getty embed image" style="background-color: #fff; display: inline-block; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; color: #a7a7a7; font-size: 11px; width: 100%; max-width: 509px;">
    <div style="padding: 0; margin: 0; text-align: left;"><a style="color: #a7a7a7; text-decoration: none; font-weight: normal !important; border: none; display: inline-block;" href="https://www.gettyimages.com/detail/522894122" target="_blank">Embed from Getty Images</a></div>
    <div style="overflow: hidden; position: relative; height: 0; padding: 66.404715% 0 0 0; width: 100%;"><iframe style="display: inline-block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0;" src="//embed.gettyimages.com/embed/522894122?et=muE-3fI7S6NpoSIPDe9ASA&viewMoreLink=on&sig=f8R7orMdI5-PzG7WFF8QfASMUHN49J5I-KObJMUJexE=&caption=true" width="509" height="338" frameborder="0" scrolling="no"></iframe></div>
    <p style="margin: 0;"></p>
    
    </div>
    &nbsp;
    
    There he is, the true “<a href="https://www.crossicehockey.com/ode-hockey-dad/">Hockey Dad</a>.” He’s loyal, he’s strong, and sure he’s a little bit grumpy (you would be too if you had to stand in a freezing-cold rink at 6 a.m.). He doesn’t get the credit he deserves, but he doesn’t care; he’s got a heart of gold. He's a true hockey dad.
    
    Nobody pats him on the back for selling 50/50 tickets or working bingo games to help prevent the family from remortgaging the house on the back of astronomical registration and equipment costs. There’s no “thank you” for trading in the red Camaro for a Ford Windstar with dual airbags, child-safety locks and a “Hockey is Life” bumper sticker.
    
    <center><strong><a href="https://www.pntra.com/t/R0JHS0VNTE1CRklHSU5HQkpLTEZN" target="_blank">Mix & Match Event! Up to 25% Off 5 or more Hockey Protective Equipment at Sport Chek! Exclusions Apply. Ends 8/22/16. Shop Now!</a><img class="aligncenter" src="https://www.pntra.com/i/R0JHS0VNTE1CRklHSU5HQkpLTEZN" width="1" height="1" border="0" /></strong></center>
    No, being a Hockey Dad isn’t an easy or glamorous job, but that’s what makes him such a thing of beauty.
    
    Being a Hockey Dad is like you’re a member of a fraternity. Once you pass the initiation phase of substantial financial sacrifice, accelerated development of the “Dad Bod” due to bowel-wrecking rink food, and the deterioration of your hands and lower back from carrying hockey bags and tying skates, you’re part of the family.
    
    If you’re unfamiliar with the concept of “The Hockey Dad” or are simply in denial, here are a few tell-tale signs that you are one (à la Jeff Foxworthy):
    
    <strong>1.</strong> If you’ve ever used cotton batten to fix a shin pad, you might be a Hockey Dad
    
    <strong>2.</strong> If you’ve ever used a skate blade as a knife, you might be a Hockey Dad
    
    <strong>3.</strong> If your winter diet consists of stale coffee and rink fries, you might be a Hockey Dad
    
    <strong>4.</strong> If you’ve ever fixed broken windows or dented siding due to errant wrist shots, you might be a Hockey Dad
    
    <strong>5.</strong> If you’ve ever been asked to leave a pro shop for causing a scene over the price of <a href="https://www.crossicehockey.com/how-to-buy-the-right-hockey-stick/">hockey sticks</a>, you might be a Hockey Dad
    
    <strong>6.</strong> If you know how to make a hockey net out of PVC plumbing, you might be a Hockey Dad
    
    <strong>7.</strong> If you shed a tear the day your kid was finally allowed to watch Slap Shot, you might be a Hockey Dad
    
    <strong>8.</strong> If you brag about being good at “Chuck-a-Puck,” you might be a Hockey Dad
    
    <strong>9.</strong> If you own multiple jackets with your name on the sleeve, you might be a Hockey Dad
    
    <strong>10.</strong> If you’ve ever performed an emergency-brake u-turn to go back for a forgotten elbow pad, you might be a Hockey Dad
    
    <strong>11.</strong> If you’ve ever substituted NHL player names for swear words so you can express your true feelings around 9 year olds (i.e., “Jeff Chychryn, it’s cold in this Matt Frattin rink!”), you just might be a true Hockey Dad
    
    <strong>12.</strong> If you’ve been to physical therapy because of a hockey-bag-related injury, you might be a Hockey Dad
    
    <strong>13.</strong> If you can clear the snow off your entire car while holding a Tim Horton’s coffee and not spill a drop, you might be a Hockey Dad
    
    <strong>14.</strong> If you’ve ever taped a stick while steering your car with your knees, you might be a Hockey Dad (we advise against doing this!)
    
    <strong>15.</strong> If you’ve nearly gotten into a fist fight over a debate about which rink has the best hot dogs, you might be a Hockey Dad
    
    <strong>16.</strong> If you’ve ever faked being terrible at tying skates just so you don’t get stuck being the guy who ties half the team’s skates before every practice and game, you might be a Hockey Dad
    
    So for all you Hockey Dads out there, here’s a slow clap?for?you. Thank you for tying our skates, taping our sticks, and buckling up our chin straps… Thank you for the 6 a.m. practices, the weeknight travel games, and the last-minute skate sharpenings… Thank you for the post-game treats, $200 sticks, and for shoveling the snow off the outdoor rink… Thank you for the new equipment, old hockey cards, and Rock ’Em Sock ’Em videos... Thank you for helping us with our backhands, for “five more minutes!”, and for tickets to the Friday night game.
    
    And, above all else, thank you for being a shoulder to cry on after getting cut from the team, the positive pep talks after those bad games, and for the warm smiles from the corner of the stands.
    
    Thank you… for being a true Hockey Dad.
    
    <em>Jamie McKinven scratched and clawed his way up to the minors, only to fall short of his ultimate dream of playing in the NHL. McKinven currently coaches his former Junior A team, the Kingston Voyageurs of the OJHL. He is the author of the book “So You Want Your Kid to Play Pro Hockey?” which is available on Amazon and Barnes and Noble.com. For more information visit his website, <a href="https://www.glassandout.com" target="_blank">www.glassandout.com</a>.</em>
    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    That’s the HTML for the article. That’s helpful, but I was looking for the JSON. Please go to Apple News in your dashboard, find the article in the list, and click the Download link.

    Thanks.

    Thread Starter warrentab

    (@warrentab)

    As you can see, I’m not very adept at this stuff, but I think I’ve got it now.

    {"version":"1.1","identifier":"post-7641","language":"en","title":"Are You a True Hockey Dad?","documentStyle":{"backgroundColor":"#fafafa"},"layout":{"columns":7,"width":1024,"margin":100,"gutter":20},"components":[{"role":"title","text":"Are You a True Hockey Dad?","textStyle":"default-title","layout":"title-layout"},{"role":"header","layout":"headerBelowTextPhotoLayout","components":[{"role":"photo","layout":"headerPhotoLayout","URL":"http:\/\/www.crossicehockey.com\/wp-content\/uploads\/2016\/08\/True-Hockey-Dad-1.jpg"}],"behavior":{"type":"parallax","factor":0.8}},{"role":"container","layout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true},"style":{"backgroundColor":"#fafafa"},"components":[{"role":"byline","text":"Aug 11, 2016 | 11:27 AM","textStyle":"default-byline","layout":"byline-layout"},{"role":"heading2","text":"A special shout out to the true\u00a0hockey dad (and mom) everywhere","format":"markdown","textStyle":"default-heading-2","layout":"heading-layout"},{"role":"body","text":"By Jamie McKinven\n\n\u00a0\n\n\n\n\n\u00a0\n\nThere he is, the true \u201c[Hockey Dad](http:\/\/www.crossicehockey.com\/ode-hockey-dad\/).\u201d He\u2019s loyal, he\u2019s strong, and sure he\u2019s a little bit grumpy (you would be too if you had to stand in a freezing-cold rink at 6 a.m.). He doesn\u2019t get the credit he deserves, but he doesn\u2019t care; he\u2019s got a heart of gold. He\u2019s a true hockey dad.","format":"markdown","textStyle":"dropcapBodyStyle","layout":"body-layout"},{"role":"photo","URL":"http:\/\/www.pntra.com\/i\/R0JHS0VNTE1CRklHSU5HQkpLTEZN","layout":"anchor-layout-right","anchor":{"targetAnchorPosition":"center","rangeStart":0,"rangeLength":1,"targetComponentIdentifier":"component-a2631a28d5e94c7a2090c4e76158a8a8"}},{"role":"body","text":"Nobody pats him on the back for selling 50\/50 tickets or working bingo games to help prevent the family from remortgaging the house on the back of astronomical registration and equipment costs. There\u2019s no \u201cthank you\u201d for trading in the red Camaro for a Ford Windstar with dual airbags, child-safety locks and a \u201cHockey is Life\u201d bumper sticker.\n\nBeing a Hockey Dad is like you\u2019re a member of a fraternity. Once you pass the initiation phase of substantial financial sacrifice, accelerated development of the \u201cDad Bod\u201d due to bowel-wrecking rink food, and the deterioration of your hands and lower back from carrying hockey bags and tying skates, you\u2019re part of the family.\n\nIf you\u2019re unfamiliar with the concept of \u201cThe Hockey Dad\u201d or are simply in denial, here are a few tell-tale signs that you are one (\u00e0 la Jeff Foxworthy):\n\n**1.** If you\u2019ve ever used cotton batten to fix a shin pad, you might be a Hockey Dad\n\n**2.** If you\u2019ve ever used a skate blade as a knife, you might be a Hockey Dad\n\n**3.** If your winter diet consists of stale coffee and rink fries, you might be a Hockey Dad\n\n**4.** If you\u2019ve ever fixed broken windows or dented siding due to errant wrist shots, you might be a Hockey Dad\n\n**5.** If you\u2019ve ever been asked to leave a pro shop for causing a scene over the price of [hockey sticks](http:\/\/www.crossicehockey.com\/how-to-buy-the-right-hockey-stick\/), you might be a Hockey Dad\n\n**6.** If you know how to make a hockey net out of PVC plumbing, you might be a Hockey Dad\n\n**7.** If you shed a tear the day your kid was finally allowed to watch Slap Shot, you might be a Hockey Dad\n\n**8.** If you brag about being good at \u201cChuck-a-Puck,\u201d you might be a Hockey Dad\n\n**9.** If you own multiple jackets with your name on the sleeve, you might be a Hockey Dad\n\n**10.** If you\u2019ve ever performed an emergency-brake u-turn to go back for a forgotten elbow pad, you might be a Hockey Dad\n\n**11.** If you\u2019ve ever substituted NHL player names for swear words so you can express your true feelings around 9 year olds (i.e., \u201cJeff Chychryn, it\u2019s cold in this Matt Frattin rink!\u201d), you just might be a true Hockey Dad\n\n**12.** If you\u2019ve been to physical therapy because of a hockey-bag-related injury, you might be a Hockey Dad\n\n**13.** If you can clear the snow off your entire car while holding a Tim Horton\u2019s coffee and not spill a drop, you might be a Hockey Dad\n\n**14.** If you\u2019ve ever taped a stick while steering your car with your knees, you might be a Hockey Dad (we advise against doing this!)\n\n**15.** If you\u2019ve nearly gotten into a fist fight over a debate about which rink has the best hot dogs, you might be a Hockey Dad\n\n**16.** If you\u2019ve ever faked being terrible at tying skates just so you don\u2019t get stuck being the guy who ties half the team\u2019s skates before every practice and game, you might be a Hockey Dad\n\nSo for all you Hockey Dads out there, here\u2019s a slow clap\u00a0for\u00a0you. Thank you for tying our skates, taping our sticks, and buckling up our chin straps\u2026 Thank you for the 6 a.m. practices, the weeknight travel games, and the last-minute skate sharpenings\u2026 Thank you for the post-game treats, $200 sticks, and for shoveling the snow off the outdoor rink\u2026 Thank you for the new equipment, old hockey cards, and Rock \u2019Em Sock \u2019Em videos\u2026 Thank you for helping us with our backhands, for \u201cfive more minutes!\u201d, and for tickets to the Friday night game.\n\nAnd, above all else, thank you for being a shoulder to cry on after getting cut from the team, the positive pep talks after those bad games, and for the warm smiles from the corner of the stands.\n\nThank you\u2026 for being a true Hockey Dad.\n\n_Jamie McKinven scratched and clawed his way up to the minors, only to fall short of his ultimate dream of playing in the NHL. McKinven currently coaches his former Junior A team, the Kingston Voyageurs of the OJHL. He is the author of the book \u201cSo You Want Your Kid to Play Pro Hockey?\u201d which is available on Amazon and Barnes and Noble.com. For more information visit his website, [www.glassandout.com](http:\/\/www.glassandout.com)._","format":"markdown","textStyle":"default-body","layout":"body-layout-last","identifier":"component-a2631a28d5e94c7a2090c4e76158a8a8"}]}],"componentTextStyles":{"default-heading-2":{"fontName":"AvenirNext-Bold","fontSize":32,"lineHeight":52,"textColor":"#000000","textAlignment":"left"},"dropcapBodyStyle":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","linkStyle":{"textColor":"#428bca"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18,"dropCapStyle":{"numberOfLines":4,"numberOfCharacters":1,"padding":5,"fontName":"Georgia-Bold","textColor":"#000000"}},"default-body":{"textAlignment":"left","fontName":"AvenirNext-Regular","fontSize":18,"lineHeight":24,"textColor":"#000000","linkStyle":{"textColor":"#428bca"},"paragraphSpacingBefore":18,"paragraphSpacingAfter":18},"default-title":{"fontName":"AvenirNext-Bold","fontSize":48,"lineHeight":52,"textColor":"#000000","textAlignment":"left"},"default-byline":{"textAlignment":"left","fontName":"AvenirNext-Medium","fontSize":17,"textColor":"#53585f"}},"componentLayouts":{"heading-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":15,"bottom":15}},"body-layout":{"columnStart":0,"columnSpan":5,"margin":{"top":12,"bottom":12}},"body-layout-last":{"columnStart":0,"columnSpan":5,"margin":{"top":12,"bottom":30}},"anchored-image":{"margin":{"top":25,"bottom":25}},"anchor-layout-right":{"columnStart":3,"columnSpan":4},"title-layout":{"margin":{"top":30,"bottom":0}},"headerPhotoLayout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true},"headerBelowTextPhotoLayout":{"columnStart":0,"columnSpan":7,"ignoreDocumentMargin":true,"margin":{"top":30,"bottom":0}},"byline-layout":{"columnStart":0,"columnSpan":7,"margin":{"top":10,"bottom":10}}},"metadata":{"excerpt":"A special shout out to the true hockey dad (& mom)","thumbnailURL":"http:\/\/www.crossicehockey.com\/wp-content\/uploads\/2016\/08\/True-Hockey-Dad-1.jpg","dateCreated":"2016-08-11T15:27:21+00:00","dateModified":"2016-08-17T19:31:10+00:00","datePublished":"2016-08-11T15:27:21+00:00","canonicalURL":"http:\/\/www.crossicehockey.com\/true-hockey-dad\/","generatorIdentifier":"publish-to-apple-news","generatorName":"Publish to Apple News","generatorVersion":"1.1.5"},"advertisingSettings":{"frequency":3,"layout":{"margin":{"top":15,"bottom":15}}}}

    Thread Starter warrentab

    (@warrentab)

    All good now, sir?

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    So the issue is with the embed from Getty images?

    Thread Starter warrentab

    (@warrentab)

    I don’t believe so. I have a hunch it could be either an ad frame (?) or pull quote frame (?).

    Here’s another example:
    Improving the Youth Sports Experience – CrossIceHockey.com: Where Rec Hockey LIVES!
    https://apple.news/AfQk18cFsQtm1Q0rjhoiKyQ

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    So both of those articles have images at the top that come from Getty Images. Those are NOT actual image files. They are embeds that use an iframe to add the image.

    They are not compatible with Apple News and unfortunately there’s nothing I can do to make them work. I’d reach out to Getty Images directly and see if they can offer you a solution.

    Thanks.

    Thread Starter warrentab

    (@warrentab)

    I get what you’re saying, but why would the box appear so far down in the article in News if it is related to the the embed that is placed at the very beginning of the article?

    If it actually is caused by the embed, is there a way to override or edit the file before it’s pushed to Apple News?

    Thank you again.

    Thread Starter warrentab

    (@warrentab)

    I get what you’re saying, but why would the box appear so far down in the article in News if it is related to the the embed that is placed at the very beginning of the article?

    If it actually is caused by the embed, is there a way to override or edit the file before it’s pushed to Apple News?

    Thank you again.

    Plugin Author Bradford Campeau-Laurion

    (@potatomaster)

    There are many filter hooks in the plugin to alter the final output. I’d suggest looking at one of these:

    apple_news_exporter_content_pre
    apple_news_generate_json

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Why Are There Gray Boxes in Apple News?’ is closed to new replies.