The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Embedded tweets issue

    Syndicate
    Syndicate
    Forumember


    Posts : 38
    Reputation : 0
    Language : English

    Solved Embedded tweets issue

    Post by Syndicate 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

    embedded tweet - Embedded tweets issue DlDImr0

    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

    embedded tweet - Embedded tweets issue XSWNgtT

    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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Embedded tweets issue

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

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



    embedded tweet - Embedded tweets issue Slgray10

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


    Posts : 38
    Reputation : 0
    Language : English

    Solved Re: Embedded tweets issue

    Post by Syndicate 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

    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Embedded tweets issue

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

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



    embedded tweet - Embedded tweets issue Slgray10

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


    Posts : 38
    Reputation : 0
    Language : English

    Solved Re: Embedded tweets issue

    Post by Syndicate 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.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Embedded tweets issue

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

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



    embedded tweet - Embedded tweets issue Slgray10

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


    Posts : 38
    Reputation : 0
    Language : English

    Solved Re: Embedded tweets issue

    Post by Syndicate 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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Embedded tweets issue

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

    Ok.

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



    embedded tweet - Embedded tweets issue Slgray10

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

      Current date/time is November 11th 2024, 7:45 pm