twitter widget didn't show any content

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
6/22/2013 12:15:44 PM
Gravatar
Total Posts 104

twitter widget didn't show any content

Hi,

I notice that from some days ago, the twitter profile widget on my site didn't show any content. I upgrade site to current version. nothing changed.

I don't find any related information on system log.any  help is appreciated.

 

Regards

Mehdi .

6/22/2013 12:40:34 PM
Gravatar
Total Posts 18439

Re: twitter widget didn't show any content

See this thread, to use twitter widgets you must now generate the new twitter widget from the twitter site and embed it in html content using source view of the editor.

7/8/2013 10:00:52 AM
Gravatar
Total Posts 37

Re: twitter widget didn't show any content

Hi Joe -

I had the same issue and created the feed from twitter, then embedded the HTML. I still get no feed. It just shows a hyperlink with the following text:

"Tweets by @OurDonorsSave"

Here is the code I am embedding:

<a class="twitter-timeline" href="https://twitter.com/OurDonorsSave" data-widget-id="354250960505294848">Tweets by @OurDonorsSave</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Any ideas are appreciated.

Greg

 

7/8/2013 10:43:40 AM
Gravatar
Total Posts 18439

Re: twitter widget didn't show any content

Hi Greg,

Sometimes the wysiwyg editors mess with js and html that you paste in. The first thing I would try is go into settings on the html instance and disable the wysiwyg editor then try pasting in the widget again using the plain text area so yo ucan be sure it is saving it exactly as you pasted it.

Hope that helps,

Joe

7/8/2013 5:14:43 PM
Gravatar
Total Posts 92

mojoPortal Hosting & Design @ i7MEDIA!

Re: twitter widget didn't show any content

Joe,

I just tried his Twitter widget in a Codepen.io and it worked there, but when I tested it in one of our development sites running mojo I get this error in the Developer Tools (Chrome): "The XSS Auditor refused to execute a script in 'http://your_site.com/' because its source code was found within the request. The auditor was enabled as the server sent neither an 'X-XSS-Protection' nor 'Content-Security-Policy' header."

Not quite sure how this could be fixed as I've never seen this before, but I figured I would let you know about the error.

-Elijah

7/8/2013 5:32:30 PM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: twitter widget didn't show any content

Looks like Google has some cross-site scripting protection in Chrome. I think you can probably put the X-XSS-Protection: 0 directive in the layout.master.

7/8/2013 6:07:39 PM
Gravatar
Total Posts 92

mojoPortal Hosting & Design @ i7MEDIA!

Re: twitter widget didn't show any content

I did a little reading up on this since Jamie posted, and it appears that IE8 up utilizes X-XSS-Protection directive as well.  I believe, however, to set the directive to 0 it will have to be server side, such as a setting in the user.config seeing how everywhere else they were talking about setting it with PHP.

7/9/2013 12:49:50 PM
Gravatar
Total Posts 18439

Re: twitter widget didn't show any content

As far as I know my suggestion to Greg solved his problem. I think he replied to the thread by email since I don't see it here but remember seeing it.

Beyond that I am not seeing any problems with the twitter widget in Chrome or IE 10 on this site (we have it on the Community page) and I don't know why it would behave differently on one server or site than another.

 

7/9/2013 1:36:28 PM
Gravatar
Total Posts 37

Re: twitter widget didn't show any content

Joe's initial suggestion worked. Sorry for not posting update.

You must sign in to post in the forums. This thread is closed to new posts.