Topic on Project:Support desk

[SOLVED]Widgets not workings

9
GamepadUniverse (talkcontribs)

I have two widgets that are not working in the way that they should. The result shows blank on both my Widget:Daily Motion and Widget:DISQUS found at the respective locations:


The result of the Disqus widget can be found here under the header that says "Comments": https://wiki.gamepaduniverse.com/wiki/List_of_Device_Manufacturers

Why are they displaying improperly and how can i fix the issue?

Malyacko (talkcontribs)

Disqus loads for me on the given link, after telling my web browser to not block mixed content (as you load Disqus via http while your page is https).

GamepadUniverse (talkcontribs)

OMG! Thanks for pointing that out. Is there anyway to get around that in https so the user doesn't have to unblock each time?

Ciencia Al Poder (talkcontribs)

Change the URLs of the widget that point to disqus, so they use https:// instead of http://

GamepadUniverse (talkcontribs)

I changed the widget to the following code with no effect:


<noinclude>__NOTOC__ This widget allows you to embed '''[http://www.disqus.com/ DISQUS Comments]''' on your wiki page. Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev] == Using this widget == For information on how to use this widget, see [http://www.mediawikiwidgets.org/DISQUS widget description page on MediaWikiWidgets.org]. == Copy to your site == To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. </noinclude><includeonly><div id="disqus_thread"></div> <script type="text/javascript"> /* * * CONFIGURATION VARIABLES * * */ var disqus_shortname = '<!--{$id|escape:'urlpathinfo '}-->'; // required: replace example with your forum shortname <!--{if (isset($uniqid))}-->var disqus_identifier = '<!--{$uniqid|escape:'quotes'}-->';<!--{/if}--> <!--{if (isset($url))}-->var disqus_url = '<!--{$url|escape:'quotes'}-->';<!--{/if}--> /* * * DON'T EDIT BELOW THIS LINE * * */ (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

Ciencia Al Poder (talkcontribs)

If you inspect the HTML source code of the pages that include that widget, you will see that it's still using the code with "http://" urls on it. This seems to be a caching issue.

Try purging the page, or perform a null edit and see if it succeeds.

GamepadUniverse (talkcontribs)

Purging and null edit proved ineffective

GamepadUniverse (talkcontribs)
GamepadUniverse (talkcontribs)

Resolved. Upgraded the Widgets extension to the latest Smarty release.

Reply to "[SOLVED]Widgets not workings"