Drunkard's Walk Forums
Feature Request - Printable Version

+- Drunkard's Walk Forums (http://www.accessdenied-rms.net/forums)
+-- Forum: General (http://www.accessdenied-rms.net/forums/forumdisplay.php?fid=1)
+--- Forum: Forums (http://www.accessdenied-rms.net/forums/forumdisplay.php?fid=3)
+--- Thread: Feature Request (/showthread.php?tid=13203)



Feature Request - Black Aeronaut - 12-29-2018

Any chance we can get a method of embedding tweets from Twitter?  I just dumped several in a post over in Politics and it would have been much nicer to be able to embed them instead.

If you can't due to some technical or security issue, I'll understand.


RE: Feature Request - Bob Schroeck - 12-30-2018

I don't know if such a thing exists yet. I'm in the middle of extended holiday stuff with my wife's family for the next couple days, but when I get a chance I'll check out the MyBB plugins site and see if anyone has written one.


RE: Feature Request - Black Aeronaut - 12-30-2018

Went ahead and did the footwork for you, Bob.  Apparently, this is a simple MyCode script you can add in.

Here's the replacement script:

Code:
<blockquote class="twitter-tweet">
<a href="$1%"></a></blockquote>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8">
</script>

Added linebreaks are mine to keep the code visible in the box.

Here's the example of how it is used on the boards:

Code:
[twitter]https://twitter.com/TheRealStanLee/status/1062753151638372352[/twitter]

Source: https://community.mybb.com/thread-210920-post-1319140.html#pid1319140


RE: Feature Request - Bob Schroeck - 01-02-2019

Okay, I've set this up.  Let's give it a test.



And that doesn't seem to do anything.  It may be because I'm doing this from work on my lunch hour, and Twitter is intermittently blocked here.  I'll have to check again when I get home.


RE: Feature Request - RMH999 - 01-02-2019

Appears to work fine for me - imbedded tweet w/video came up here (Firefox w/a couple of adblocker extensions)

RMH


RE: Feature Request - Bob Schroeck - 01-02-2019

Well, that's good to hear.


RE: Feature Request - classicdrogn - 01-02-2019

As expected, I only get an empty box. This happens a lot when scripts and cross-site requests are blocked by default of course, but I have never yet found the combination of things to turn on to actually see an embedded Twit, anywhere.


RE: Feature Request - Labster - 01-02-2019

Disabling Firefox's tracking protection seems to have fixed it for me. uBlock still running in front now has something to do.


RE: Feature Request - robkelk - 01-02-2019

The copy of Privacy Badger installed in my copy of Firefox is now blocking cookies from platform.twitter.com and syndication.twitter.com on this page, but I can see the tweet just fine.


RE: Feature Request - Black Aeronaut - 01-04-2019

I just whitelist websites like Twitter and the content delivery networks they rely on in Script Safe. uBlock Origin hardly bats an eye as it then only let's the content I want through. So that tweet looks just fine to me.

I'll put it to the test by properly embedding those tweets in my post back in Politics - that should give us a good shakedown for this feature.


RE: Feature Request - Bob Schroeck - 01-04-2019

I guess I should add, as unnecessary as it is by now, that it appears to work just fine from home for me. It's just work that blocks Twitter.