Calgarypuck Forums - The Unofficial Calgary Flames Fan Community
Old 01-24-2018, 02:58 PM   #1
taco.vidal
Lifetime Suspension
 
Join Date: Feb 2008
Exp:
lanny Embedding Twitter tweets in CP

Can you guys allow this to happen? Is there a reason why it hasnt been allowed on CP yet?
Right now youve got users either needing to take screencaps of tweets and posting as images, using quotes and making sloppy posts, or otherwise posting poorly formatted text. Its 2018 gosh darn it.
taco.vidal is offline   Reply With Quote
Old 01-24-2018, 07:32 PM   #2
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

The software doesn't support it and I've never found a custom module to do it. Embedding a video is usually pretty easy, but twitter requires one to make a call to their site to request the HTML code to display the tweet.

Which would be fine except that they don't want a website making a request each time; they want sites to cache those requests, which means having to do a bunch of development work.

That said I checked their docs and there seems to be a way to do it now that doesn't require that, I'll check into it.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 01-24-2018, 08:52 PM   #3
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Huh, ok, it wasn't that bad with the (new?) client side Javascript library they have.

So you use the tweet bbcode with the ID of a tweet, and some code will run after the page is displayed to turn them into tweets.

The only thing that doesn't work well is if you post a tweet with the quick reply, it doesn't show up right away, only after the page is refreshed. But everyone else will see it right away.

https://twitter.com/statuses/952218108948811776
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 01-24-2018, 09:05 PM   #4
CMPunk
aka Spike
 
CMPunk's Avatar
 
Join Date: Sep 2004
Location: The Darkest Corners of My Mind
Exp:
Default

Quote:
Originally Posted by photon View Post
huh, ok, it wasn't that bad with the (new?) client side javascript library they have.

So you use the tweet bbcode with the id of a tweet, and some code will run after the page is displayed to turn them into tweets.

The only thing that doesn't work well is if you post a tweet with the quick reply, it doesn't show up right away, only after the page is refreshed. But everyone else will see it right away.

https://twitter.com/statuses/952218108948811776
https://twitter.com/statuses/955821561382146049
__________________
CP Rent-A-Goalie
CMPunk is offline   Reply With Quote
Old 01-24-2018, 09:07 PM   #5
CMPunk
aka Spike
 
CMPunk's Avatar
 
Join Date: Sep 2004
Location: The Darkest Corners of My Mind
Exp:
Default

https://twitter.com/statuses/956375009865248768

Seems to work
__________________
CP Rent-A-Goalie
CMPunk is offline   Reply With Quote
Old 01-24-2018, 09:09 PM   #6
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Added a hardlink below for mobile or whatever.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 01-25-2018, 07:16 AM   #7
taco.vidal
Lifetime Suspension
 
Join Date: Feb 2008
Exp:
Default

Test:
https://twitter.com/statuses/956322473955545089

It works!


Sweet. Thanks photon. I think this is something a lot of users will like.
taco.vidal is offline   Reply With Quote
Old 01-25-2018, 08:42 AM   #8
Finger Cookin
Franchise Player
 
Finger Cookin's Avatar
 
Join Date: Jun 2014
Exp:
Default

Not working in Chrome Version 64.0.3282.119, even after loading unsafe scripts. It takes the status and turns it into a typical url link.


Last edited by Finger Cookin; 01-25-2018 at 08:44 AM.
Finger Cookin is offline   Reply With Quote
Old 01-25-2018, 11:22 AM   #9
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Just updated to that version on my Mac and it still seems to work. I'll try on Windows when I get home.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 01-25-2018, 11:29 AM   #10
getbak
Franchise Player
 
getbak's Avatar
 
Join Date: Feb 2006
Location: Calgary, AB
Exp:
Default

It works for me on that version of Chrome on Windows.
__________________
Turn up the good, turn down the suck!
getbak is online now   Reply With Quote
The Following User Says Thank You to getbak For This Useful Post:
Old 01-26-2018, 07:00 AM   #11
DownInFlames
Craig McTavish' Merkin
 
DownInFlames's Avatar
 
Join Date: Oct 2008
Exp:
Default

It works fine on Android, and on iOS using Safari, but not Chrome. Even clicking the link goes nowhere.

Can we get instagram next?
DownInFlames is offline   Reply With Quote
Old 01-26-2018, 07:27 AM   #12
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

I find Chrome on iOS to be wonky right now, there's other sites I use that are really buggy that used to work fine, but I'll check into it.

And no to Instagram
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 01-26-2018, 09:16 AM   #13
jeffporfirio
Scoring Winger
 
jeffporfirio's Avatar
 
Join Date: Oct 2014
Exp:
Default

https://twitter.com/statuses/956754352126873602

sweetness, thanks Photon...posted using Chrome
jeffporfirio is offline   Reply With Quote
Old 01-26-2018, 09:54 AM   #14
Finger Cookin
Franchise Player
 
Finger Cookin's Avatar
 
Join Date: Jun 2014
Exp:
Default

Quote:
Originally Posted by getbak View Post
It works for me on that version of Chrome on Windows.
Hmm, I must have something different in my Chrome settings. Good to know it's working for others.
Finger Cookin is offline   Reply With Quote
Old 01-26-2018, 10:50 AM   #15
Nammer403
#1 Goaltender
 
Nammer403's Avatar
 
Join Date: Aug 2007
Location: Calgary
Exp:
Default

https://twitter.com/statuses/956919665535598592

testtttt
__________________

Last edited by Nammer403; 01-26-2018 at 10:58 AM.
Nammer403 is offline   Reply With Quote
Old 01-26-2018, 12:05 PM   #16
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Quote:
Originally Posted by Finger Cookin View Post
Hmm, I must have something different in my Chrome settings. Good to know it's working for others.
By good you mean frustrating, this is why I hate web development lol.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
The Following 2 Users Say Thank You to photon For This Useful Post:
Old 01-26-2018, 12:06 PM   #17
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

I also hate how it makes he screen scroll not work (jumps down after they load)
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 01-26-2018, 07:31 PM   #18
Finger Cookin
Franchise Player
 
Finger Cookin's Avatar
 
Join Date: Jun 2014
Exp:
Default

Quote:
Originally Posted by photon View Post
By good you mean frustrating, this is why I hate web development lol.
Oh yeah, stuff like this is the bane of web development. I'm not in web development, so I'm not bent out of shape by this or anything. It's more of a quick "Huh.", and then off I go.
Finger Cookin is offline   Reply With Quote
Old 01-28-2018, 01:23 PM   #19
Finger Cookin
Franchise Player
 
Finger Cookin's Avatar
 
Join Date: Jun 2014
Exp:
Default

FWIW I tried some basic troubleshooting on my end (javascript settings, third party cookies, disabling extensions and AdBlockers, etc.) and couldn't get them to display. If any other Chrome users feel like sharing the settings they're using when they can see embedded tweets here, that would be great. More for my own curiosity than anything.
Finger Cookin is offline   Reply With Quote
Old 01-28-2018, 04:01 PM   #20
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

I found a different way of doing it that should be more reliable, not depending on Javascript, so am working on that.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:23 AM.

Calgary Flames
2017-18




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2016