GameTZ

Sign OnNon-Mobile

Embed Tweets?
16-Jul-18 9:19am
#1
Scots
Global Trader - willing to trade internationally

Is there a way to do this that I'm not aware of? Or maybe an easy plug-in or something? If it's not feasible, that's totally fine - just curious. I like to post pics or tweets from Twitter for the Random Pic thread and others, and to embed a tweet by copying the link, similar to how it works with a YT video, would be cool. Now, I copy the image location and use tags to post it, which is a bit tougher on mobile, for example.

No worries either way - just curious if I'm missing anything. Thanks.
16-Jul-18 10:13am
#2
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews

I've never considered this before, but taking a quick look, it does seem possible to do it. It would be just like how the site will (optionally) convert youtube links into inline video (as you mentioned). A twitter status link could be converted to an embedded object that has the tweet displayed nicely in it (clickable, with image/video, etc.)

I'm not sure it will work, but a quick test seemed to show it could. I'll try to see what I can do.
16-Jul-18 11:59am
#3
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews

(for testing)

https://twitter.com/...
16-Jul-18 12:02pm
#4
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews

OK, so I added this. It's under Subscriber options ( https://gametz.com/S... ) Graphics Options -> Embed Tweets check

It's currently off by default. Maybe test it a little, then I could force it on (for subscribers only ...maybe, not even sure that's a great idea). It's like the youtube embed, so it's sub-only. Otherwise, it will just show the status link.
16-Jul-18 12:04pm
#5
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews

I just noticed, it can mess up the scrolling on the page if you're jumping to a #new (common with the forums here). For example, when I post this, it will jump the page a bit and you don't end up quite where you wanted (the bottom where the text entry box is). I'm not sure I can do much to fix that, the tweet stuff is variable in length and happens after the page load (which is good as you don't want the page to wait for it either).... anyway, it's probably fine... just noticed it.
16-Jul-18 12:32pm
#6
Scots
Global Trader - willing to trade internationally

Awesome! Very cool, thanks @Bill.
16-Jul-18 12:36pm
#7
Scots
Global Trader - willing to trade internationally

Testing:

https://twitter.com/...
16-Jul-18 12:38pm
#8
Scots
Global Trader - willing to trade internationally

Testing with video and GIF...

https://twitter.com/...

https://twitter.com/...
16-Jul-18 12:47pm
#9
Scots
Global Trader - willing to trade internationally

Looks like it works awesome. Thanks again!
16-Jul-18 2:46pm
#10
Boss
GameTZ Gold Subscriber 700 Trade Quintuple Gold Good Trader Gold Global Trader (8)

https://twitter.com/...

Test
16-Jul-18 10:37pm
#11
Sid_Ceaser
GameTZ Subscriber 500 Trade Quintuple Gold Good Trader Has Written 6 Reviews

grin yes



17-Jul-18 2:06am
#12
ryanflucas
GameTZ Subscriber 1000 Trade Quintuple Gold Good Trader

grin
17-Jul-18 9:36am
#13
Gypsy
GameTZ Subscriber Quadruple Gold Good Trader Global Trader - willing to trade internationally

Sexcellent. Thanks Bill.
17-Jul-18 10:37am
#14
Scots
Global Trader - willing to trade internationally

I just saw what you were saying about jumping up the page a bit when you go to NEW in a thread. Not a huge deal, really.
17-Jul-18 11:17am
#15
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews

Yeah, this topic is particularly bad because of the quantity.
17-Jul-18 11:36am
#16
Grenadier
GameTZ Subscriber GameTZ Full Moderator Triple Gold Good Trader Has Written 3 Reviews

Now that this is working, you might want to turn it on by default. I have to figure a lot of subs might not see this thread.

Better idea: turn it on if they have YouTube turned on, figuring if they want one kind of embedded content, they'd want both, or vice versa.
17-Jul-18 12:02pm
#17
Boss
GameTZ Gold Subscriber 700 Trade Quintuple Gold Good Trader Gold Global Trader (8)

Time to make a new topic in the long dormant: http://gametz.com/fo... forum.

grin
17-Jul-18 2:51pm
#18
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews

OK, I turned this on for anyone who has youtube video embedding on.

Announcements forum - maybe I should just get rid of it. Also, maybe get rid of FAQ too.
25-Jul-18 10:09am
#19
Scott
GameTZ Gold Subscriber Quadruple Gold Good Trader Global Trader - willing to trade internationally Has Written 1 Review

Great addition!

14-Aug-18 3:20pm
#20
Grenadier
GameTZ Subscriber GameTZ Full Moderator Triple Gold Good Trader Has Written 3 Reviews

Bill, the links not going to the "#new" anchor locations is still kind of bugging me.

Would something like this help, if it was done after the Twitter stuff loads?

https://stackoverflo...
15-Aug-18 1:15am
#21
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews

I had considered it, but I suspect it will just be another pile of problems. I guess I'll give it a shot and see if I can make it better. I agree it's annoying. You can just turn off the embedding too.

Embed Tweets?