The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Embedded tweets issue

View previous topic View next topic Go down

Solved Embedded tweets issue

Post by Syndicate on August 6th 2016, 9:56 pm

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

Hi

So 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>&mdash; 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>&mdash; 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

Syndicate
Forumember

Posts : 38
Reputation : 0
Language : English

http://www.goallegacy.net

Back to top Go down

Solved Re: Embedded tweets issue

Post by SLGray on August 6th 2016, 10:01 pm

Remove the emiticons from the Tweet. They cause an issue with the coding.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedded tweets issue

Post by Syndicate on August 6th 2016, 11:51 pm

Holy shit I feel like an idiot. Should have noticed that lmao. Yea it works when I removed the symbols and unnecessary characters.


Another related question though but I am not sure if it's a general issue on browsers or not but I can't full screen the videos for some reason. Screen seems to get bigger but the video doesn't show up as full screen if that makes any sense.

If you have come across that problem then I'd appreciate some advise otherwise I can mark this as solved.

Appreciate the quick response btw


Syndicate
Forumember

Posts : 38
Reputation : 0
Language : English

http://www.goallegacy.net

Back to top Go down

Solved Re: Embedded tweets issue

Post by SLGray on August 7th 2016, 3:21 am

Is the fullscreen button greyed out?  Youtube was the first thing that was noticed when this started.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedded tweets issue

Post by Syndicate on August 7th 2016, 1:34 pm

It just fullscreens my screen instead of the video (for example if you press f11 on your keyboard it has that affect) but it doesn't show the actual video. It does say press escape to exit fullscreen.

Syndicate
Forumember

Posts : 38
Reputation : 0
Language : English

http://www.goallegacy.net

Back to top Go down

Solved Re: Embedded tweets issue

Post by SLGray on August 7th 2016, 9:39 pm

Please post a link to a post that has the issue that guests can see.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Embedded tweets issue

Post by Syndicate on August 8th 2016, 7:50 pm

It turns out it's mostly an issue on Chrome as it works fine on Safari and on mobile devices. Doesn't matter though as at least it works fine. Marking it as resolved

Syndicate
Forumember

Posts : 38
Reputation : 0
Language : English

http://www.goallegacy.net

Back to top Go down

Solved Re: Embedded tweets issue

Post by SLGray on August 8th 2016, 7:59 pm

Ok.

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum