Site_Feedback

Topic   Embed Tweets?

Scots
Global Trader - willing to trade internationally
16-Jul-2018(#1)
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.
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
16-Jul-2018(#2)
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.
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
16-Jul-2018(#4)
OK, so I added this. It's under Subscriber options ( https://gametz.com/Subscription.html ) 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.
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
16-Jul-2018(#5)
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.
Scots
Global Trader - willing to trade internationally
16-Jul-2018(#6)
Awesome! Very cool, thanks @Bill.
Scots
Global Trader - willing to trade internationally
16-Jul-2018(#9)
Looks like it works awesome. Thanks again!
Sid_Ceaser
GameTZ Subscriber 500 Trade Quintuple Gold Good Trader Has Written 6 Reviews
16-Jul-2018(#11)
grin yes



ryanflucas
GameTZ Subscriber 1000 Trade Quintuple Gold Good Trader
17-Jul-2018(#12)
grin
Gypsy
GameTZ Gold Subscriber Quadruple Gold Good Trader Global Trader - willing to trade internationally
17-Jul-2018(#13)
Sexcellent. Thanks Bill.
Scots
Global Trader - willing to trade internationally
17-Jul-2018(#14)
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.
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
17-Jul-2018(#15)
Yeah, this topic is particularly bad because of the quantity.
Grenadier
GameTZ Subscriber GameTZ Full Moderator Triple Gold Good Trader Has Written 3 Reviews
17-Jul-2018(#16)
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.
Boss
GameTZ Gold Subscriber 650 Trade Quintuple Gold Good Trader Gold Global Trader (8) This user is on the site NOW (1 minute ago)
17-Jul-2018(#17)
Time to make a new topic in the long dormant: http://gametz.com/forum/Announcements forum.

grin
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
17-Jul-2018(#18)
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.
Scott
GameTZ Gold Subscriber Quadruple Gold Good Trader Global Trader - willing to trade internationally Has Written 1 Review
25-Jul-2018(#19)
Great addition!

Grenadier
GameTZ Subscriber GameTZ Full Moderator Triple Gold Good Trader Has Written 3 Reviews
* 14-Aug-2018(#20)
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://stackoverflow.com/questions/22993658/linki...
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
15-Aug-2018(#21)
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.
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
16-Aug-2018(#22)
I was just looking into this. I'm not finding a simple way to do it. Part of the issue is that it uses a sourced js files from twitter to do the magic. So, that's where the jump code would need to go, but it's not my code. So, that complicates things. I could copy the code to my site and edit it somehow (hard, because it's minified and compacted, really hard to read and understand enough to edit it). Also, if it did change by Twitter, I wouldn't get updated.

It might also be possible to wrap the source insert in a something that does a callback after it loads, but this is also non-trivial as far as I can tell. I feel like this needs to be simple given that it's just for tweets and there's a lot of other more important stuff on the pages here (that could be effected the more complicated this gets).

I'm also concerned about the multiple-tweets on the page case (which is likely when this is most important as the jump gets more and more of the more tweets are shown). Currently, it does the source of the offsite js code for each tweet. I tried to get it down to 1 per page, but it didn't work (not sure why - not great as it shows I don't really get how it's working). But, that also means there would be multiple callbacks to redo the jumping (the original #new jump, then each tweet would do it after it loads). That's worrisome and could easily go badly or be more annoying.

So, yeah, I don't know if this is feasible.

Topic   Embed Tweets?