Extension talk:Widgets

Jump to navigation Jump to search

About this board

Old messages are archived.


Hard time installing "500 internal server error"

2
24.45.134.47 (talkcontribs)

So I followed the directions...

downloaded widgets, unpacked it into a folder called "Widgets" under extensions

downloaded smarty, unpacked it into the same folder

There was already a smarty folder in widgets, I moved libs into the smarty folder.

I set compiled_templates to 777

I added the text to localsettings.php

I get an error. I remove the text from localsettings and site is back and running.

MarkAHershberger (talkcontribs)

That error indicates something is probably in your error log. Did you check there to see what it says?

Reply to "Hard time installing "500 internal server error""
188.109.172.72 (talkcontribs)

So this article links to site which looks like it was designed by an eight year old, and says that due to "privacy concerns", it requires people to log in (and thus provide an email adress, making the point about "privacy concerns" laughable) even if they just want to look at the contents, making this whole extension utterly unusable if you dont want to give your private data to some guy who designed a website that honestly looks like a phishing site.

Furthermore, the website says that it will ask for consent _after_ one has logged in, which is of course utterly ridiculous.

So now my question is: Why does this Wiki link to such a site?

Kghbln (talkcontribs)

I guess you should think about what you have written and come back here actually displaying character of somebody who is older than eight years. Thanks.

Kghbln (talkcontribs)

No answer. This is what I expected. No grit at all, just vomit.

Acnetj (talkcontribs)

I do see his point why should that site require a log in to see the examples.

Kghbln (talkcontribs)

You are probably not from Europe. The examples send out personal data to all kinds of services in some cases to unknown directions. I need your consent before this happens.

Acnetj (talkcontribs)

There are extensions that can take care of this requirement without having to log-in in order to give consent.

Extension:CookieWarning

Kghbln (talkcontribs)

No this is not enough. This is about cookies. I am talking about all sorts of data being collected and sent of to wherever.

Lady G2016 (talkcontribs)

Instead of blocking the site and forcing a login to accept your Terms of Use, may I suggest a "Click to accept" approach? It's known as a Clickwrap agreement. Many sites do this, no login is required. As noted in the Wikipedia article, a clickwrap agreement will meet GDPR requirements.

I accept the agreement and can proceed to read the site. If I do not accept the agreement, I am blocked from reading the site.

A google search as "clickwrap examples" will provide ideas how to implement the approach.

Kghbln (talkcontribs)

Thank you for the suggestion. Is there an extension around which performs this task?

Reply to "mediawikiwidgets.org"

Restrict iframe Widget to specific domains (e.g. Google, Trello)?

3
Knomanii (talkcontribs)

Is it possible to restrict the iframe widget to specific URL domains?

Ideally, we'd like to only allow iframes to Google and Trello domains.

Thanks in advance!

DSquirrelGM (talkcontribs)

Seems more like a use case for an abuse filter, not a change to the extension.

Knomanii (talkcontribs)

Thanks @DSquirrelGM. How would you make an abuse filter for that? Do I need the Abuse Filter extension?

Reply to "Restrict iframe Widget to specific domains (e.g. Google, Trello)?"

Since upgrading fatal error Smarty_Internal_TemplateBase

6
TiltedCerebellum (talkcontribs)

PHP Fatal error:  Class 'Smarty_Internal_TemplateBase' not found in /site/public/extensions/Widgets/vendor/smarty/smarty/libs/Smarty.class.php

Product Version
MediaWiki 1.33.0 (62dc614)
PHP 7.2.19 (cgi-fcgi)
MySQL 5.7.28-log
ICU 52.1


Kghbln (talkcontribs)

Try to re-install according to the new instuctions. They changed in newer versions. Probably smarty was not installed properly.

TiltedCerebellum (talkcontribs)

I did that, didn't help

Kghbln (talkcontribs)

Just to make sure: You used Git and Composer?

TiltedCerebellum (talkcontribs)

Yep, this is still showing in my php error log intermittently

Kghbln (talkcontribs)

Admittedly I have no clue. I have this extension working both on a MW 1.33 and a MW 1.34 with no issues at all.

Reply to "Since upgrading fatal error Smarty_Internal_TemplateBase"

How to disallow non-admins to create a Widget: page?

2
Summary by Farvardyn

Thanks.

Farvardyn (talkcontribs)

How to disallow non-admins to create a Widget: page?

MGChecker (talkcontribs)

This should be the case by default. Only users with the editwidgets permission should be able to edit Widgets, which is the case for the widgeteditor and sysop groups.

How to have this code on a mediawiki page using Widgets?

2
Summary by Kghbln

As outlined in the answer.

Farvardyn (talkcontribs)

Hi,

How can I have this code script on a mediawiki page using Widgets? Not on header or footer, I mean just within the content of a page, how can I have this?

Thanks,

<div id="15068716388"><script type="text/JavaScript" src="https://www.aparat.com/embed/aWf7R?data[rnddiv]=15068716388&data[responsive]=yes"></script></div>

Thanks,

Kghbln (talkcontribs)

Just embed the code on a page in the Widgets namespace, e.g. "Widget:MyWidgetName":

<includeonly><div id="15068716388"><script type="text/JavaScript" src="https://www.aparat.com/embed/aWf7R?data[rnddiv]=15068716388&data[responsive]=yes"></script></div></includeonly>

To use the widget go to some page and add

{{#widget:MyWidgetName}}

Summary by Kghbln

All we have is on Widgets.

87.91.51.235 (talkcontribs)

There's no clear tutorial linked about how to create a widget?

Kghbln (talkcontribs)

No, just what you can already see on the extensions docu page. A programmer will be able to help you rather fast I believe. I know this is not the answer you have hoped for but it is the way it is I guess.

How to track pages using a widget?

3
Peacedev (talkcontribs)

How do I track pages using a widget like widget:twitter? Is there anyway to track? If not, then how to insert additional wiki category or what links here inside the widget source code? Thanks.

Kghbln (talkcontribs)

Embed the widgets only via a template like it is done for the Audio template and add a category to this template. I you do not want to see the category on every page use the hiddencat feature to hide it from public view.

Peacedev (talkcontribs)

Kghbln Thanks a lot for the answer and the hiddencat suggestion, appreciated :)

How do I create a page in the "widget" namespace?

9
Sturmey99 (talkcontribs)

Everything I've read says I have to create a page in the widget namespace, but NOTHING says how I'm supposed to do this. I'm new to using MediaWiki, so I don't know how this is supposed to work, there doesn't seem to be any information about the basics.

MarkAHershberger (talkcontribs)
Kghbln (talkcontribs)
Sturmey99 (talkcontribs)

Kghbln, thanks that helps.

Do you know if I still have to manually install 'smarty' if I used git to install? It doesn't look like it's there, but the git install instructions don't mention manually installing smarty.


Kghbln (talkcontribs)
Sturmey99 (talkcontribs)

well I followed those instructions to the letter, and it doesn't include the smarty folder but it does include calls to it. After installing smarty manually to the Widgets folder, the errors in /var/log/apache2/error.log changed, so it's obvious that the smarty folder is needed.

I don't think this extension is ready for production.

MarkAHershberger (talkcontribs)

Since you're installing from git, did you run composer update --no-dev inside the widgets folder?

Sturmey99 (talkcontribs)

well, I tried it again, and got a different result. looks like it did managed to update something, but I'm still not able to get the Iframe widget to function. At least it's not crashing when I call the widget now.

further testing shows it working with a youtube widget, but since it's the Iframe I need, not sure what I need to do yet.

Sturmey99 (talkcontribs)

ok, so I fought with it some more, and it seems to be working.

I can't recommend this extension. The installation and config is not well documented and it is far more difficult than the other extensions that only require the folder to be added and a line inserted into LocalSettings.php

Realistically I understand why so many organizations I've worked with are dropping mediawiki for other products. while extensions are great, the lack of a click and go installation is beyond what most people are willing to do to install.

Cavila (talkcontribs)
Kghbln (talkcontribs)

Not sure what type of comments you would like to add. Perhaps you could do this on the Widget's code page.