Twitter embeds only work for Admins and Editors  

  RSS

arrowheadguys
(@arrowheadguys)
Member Customer
Joined: 2 months ago
Posts: 6
31/12/2018 4:32 pm  

On my site, admins and editors can do Twitter embeds in comments, and the tweet appears properly.  

Anyone else, when they try to embed a tweet, it comes out as text in a quotation box.

See attached examples.  

Example Author embed
Example Admin embed


ReplyQuote
Topic Tags
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2895
01/01/2019 4:01 pm  

Hi @arrowheadguys,

Could you please embed that Twitter URL here in this topic to allow us check the issue?


ReplyQuote
arrowheadguys
(@arrowheadguys)
Member Customer
Joined: 2 months ago
Posts: 6
02/01/2019 1:41 pm  

I probably should have been more specific.  This is for wpDiscuz, not wpForo.  

It doesn't matter what Twitter url is used either, we've tried hundreds of them.  

 

 

This post was modified 2 weeks ago by arrowheadguys

ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2895
02/01/2019 5:30 pm  

Ok, thank you, we'll check this issue and update soon.


ReplyQuote
arrowheadguys
(@arrowheadguys)
Member Customer
Joined: 2 months ago
Posts: 6
03/01/2019 3:00 am  

We are using the wpDiscuz custom AJAX instead of the native Wordpress Ajax.  


ReplyQuote
arrowheadguys
(@arrowheadguys)
Member Customer
Joined: 2 months ago
Posts: 6
03/01/2019 3:08 am  

Here is an example embed code, although all tweets we embed function the same.  They work properly only for admins and editors.  

 

<blockquote class="twitter-tweet" data-conversation="none" data-lang="en"><p lang="en" dir="ltr">The lie: KC's offense is giving the ball back too quickly, resulting in more scoring chances for teams and decreased KC TOP.<br><br>The truth: KC's defense is allowing an extra 1st down per drive, resulting in more scoring chances for teams and decreased KC TOP.</p>&mdash; Seth Keysor (@RealMNchiefsfan) <a href="https://twitter.com/RealMNchiefsfan/status/1079139351269949445?ref_src=twsrc%5Etfw">December 29, 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> 

ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2895
03/01/2019 9:39 am  

Hi @arrowheadguys,

This is not a good embedding code, it includes JS file. Only admins are able to insert JS files in posts and comments, this is the most insecure thing. We cannot allow regular users and guest use such embed code and load JS files. I'm sorry but there is no option to enable it, this is an incorrect way.

Please don't embed Tweets using this way, we don't support it. You should copy and paste tweet share URLs. That's the correct way. Tweets and other embeds will be supported if you have wpDiscuz Media Uploader addon installed and the oEmbed is enabled in addon settings (Comments > Settings > Addons > Media Uploader).


ReplyQuote
arrowheadguys
(@arrowheadguys)
Member Customer
Joined: 2 months ago
Posts: 6
03/01/2019 10:08 am  

Thanks for the quick response.  I will look into trying out the Media Uploader.  


ReplyQuote
Tom
 Tom
(@tomson)
Support Team Admin
Joined: 4 years ago
Posts: 2895
03/01/2019 10:10 am  

Before considering to purchase it, you can test it here:

https://wpdiscuz.com/addons/wpdiscuz-media-uploader/#comments


ReplyQuote
Share: