Technical Details
Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome
Who the problem concerns : All members
Forum link : http://www.goallegacy.net
Description of problem
HiSo I was looking around a way to try and embed tweets and specifically twitter videos on my forum and after searching on here I found a javascript which helps formatting the tweets so they can be viewed in the proper format rather than just a text quote which is what is set as default in the forumotion system.
The JS I am using is this one
- Code:
document.write('<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>');
The problem I am having in my forum is that for some reason only certain (random) tweets are being formatted correctly while the others just show up as a quote with nothing inside.
For example
This embedded code
- Code:
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">All the goals from our 4-0 friendly victory over Barcelona today <a href="https://twitter.com/hashtag/LFC?src=hash">#LFC</a> <a href="https://twitter.com/hashtag/FCB?src=hash">#FCB</a> <a href="https://t.co/CgpYuT6PXi">pic.twitter.com/CgpYuT6PXi</a></p>— Anfield Observer (@AnfieldObserver) <a href="https://twitter.com/AnfieldObserver/status/761998738332221441">August 6, 2016</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
Shows up fine as I have attached a working pic
however this embedded code of a different tweet (code seems to be the exact same though?)
- Code:
<blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr">🗓17th March 2007<br>📍Old Trafford <br><br>- Wayne Rooney vs Bolton Wanderers <a href="https://twitter.com/hashtag/MUFC?src=hash">#MUFC</a> <a href="https://t.co/FPKgIzkKRx">pic.twitter.com/FPKgIzkKRx</a></p>— MUnitedGoals™ (@MUnitedGoals) <a href="https://twitter.com/MUnitedGoals/status/761996049431101440">August 6, 2016</a></blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
shows up as
I am really confused as why it would only format some tweets? unless the javascript itself isn't the most efficient. HTML is on btw.
Any help would be appreciated
Last edited by Syndicate on August 8th 2016, 7:50 pm; edited 1 time in total