No HTML fallback for MEDIA=twitter type


levi

Still fresh, damnit!
Joined
Oct 6, 2008
Messages
15,852
Location
Somewhere off the coast of the EU
An example is here: https://www.pyra-handheld.com/board...nlock-gunmans-phone.76980/page-2#post-1366603

Without Javascript enabled, the last lines of that post are simply a static 'Loading tweet...'. It would be better if it would degrade to a link to twitter if javascript is not supported.

However, I'm not completely sure how you would transform the id there ('700823383961792512') into a html link to twitter. It has 18 digits in it by my count, and take, for example this link to ED's latest post:

https //twitter.com/EvilDragon1717/status/697026492610568192

That also includes a 18 digit number at the end, but it also needs a username to be valid. Presumably there's some twitter redirect that looks up the username and feeds you the right post, but I don't know what that is.
 
I have external JavaScript blocked, and for me "Loading tweet..." is a link to:
Code:
https://twitter.com/user/status/700823383961792512
 
Ah sweet; so it seems that if I just replace the username with the string 'user' in my example URL up there is should work.

So, it seems that all is needed is a noscript element containing a link:

Code:
<noscript><a href="https://twitter.com/user/status/{twitter_id}">Twitter link</a></noscript>

...with {twitter_id} being replaced by the content of the MEDIA BBcode tag.

So, how do we get that to actually happen?
 
Back
Top