Extension talk:Widgets/archive
You can post your questions here and they'll be answered by those users who monitor this talk page. Alternatively, you can post your question to support group here: http://groups.google.com/group/mediawiki-widgets there is also archive you can search for the answers.
Blank Pages
edit
I am getting blank pages... Sachein 11:35, 31 May 2009 (UTC)
- Can you check the logs and see what's being reported there? BTW, it might be better to report this kind of problems to the Google group: http://groups.google.com/group/mediawiki-widgets - more people will be able to help you. --Sergey Chernyshev 15:46, 31 May 2009 (UTC)
- Thank you very much, I have sorted the problem. I had to create a widget page for example Widget:YouTube and then I could put YouTube videos on any page. Sachein 16:19, 31 May 2009 (UTC)
Unable to read resource: "wiki:Feed"
edit
I´m getting the following warning:
Warning: Smarty error: unable to read resource: "wiki:Feed" in /srv/www/htdocs/mediawiki/extensions/Widgets/smarty/Smarty.class.php on line 1095
while trying to view a page with the feed widget:
{{#widget:Feed |feedurl=http://www.techpresentations.com/feed/ |chan=y |num=5 |desc=50 |date=n |targ=n }}
Can you help me, please?
- Did you create a page called "Widget:Feed" on your site and copy contents of the Widget page? http://www.mediawikiwidgets.org/w/index.php?title=Widget:Feed&action=edit --Sergey Chernyshev 15:43, 4 December 2009 (UTC)
How Can I Prevent Widget Pages from Being Included in Random?
edit
MediaWiki 1.16alpha
PHP 5.2.9 (cgi-fcgi)
MySQL 5.0.67-userstats-log
Widgets (Version 0.8.10)
URL: DishiWiki
Widget pages appear in Random pages, along with pages from Main namespace. Currently, the Widgets namespace ID is neither declared nor changed. To see if doing so would keep Widget pages from being included in Random, I added this to LocalSettings.php:
define('NS_WIDGET', 274);
It did not make a difference. Should I try a different namespace ID? I am a little thick about NS IDs, so what NS ID should I try? Any thoughts, anybody? Brian7632416 04:37, 17 December 2009 (UTC)
- I'm not sure I understand the problem. Did you create Widget:Something pages before you included Widget.php into LocalSettings.php? when did the Widget:Something pages started to be treated as regular pages? can you provide more details? --Sergey Chernyshev 04:49, 17 December 2009 (UTC)
- I had moved DishiWiki to a new hosting provider. The db was pseudo-corrupt (?), so I created a new db and Special:Exported/Imported all pages, including Widget:Pages, into a new db on the new hosting server instead of bringing the db itself over to the new host. So yes, there were Widget:Pages in the db before I got around to including Widget.php in LocalSettings.php. And the Widget:Pages indeed appeared on click-Random Page from the beginning. Are you thinking that that's what causes the exported/imported Widget:Pages to appear in Random? Are you saying that Widget:Pages created after adding Widgets.php to LocalSettings.php should not appear? I have not tested that theory. I imported a lot of Widget:Pages, so a lot of Widget:Pages appear. I could click-click-click Random Page and see if a brand-new (fake) Widget appears. If this is the case, then I guess I should delete the "pre-Widget.php" Widgets and recreate them with a new name? (Yuck.) Thanks for your insight and assistance. Brian7632416 07:14, 17 December 2009 (UTC)
- Yes, basically when you imported pages that were called Widget:Something into wiki without having Widget extension included, wiki didn't know that custom namespace exists so they became "Widget:Something" pages in Main namespace instead of "Something" pages in Widget namespace with all the consequences that brings, including showing up in Special:Allpages for main namespace and Special:Random. I'd recommend to re-export/import pages this time with Widgets included. --Sergey Chernyshev 19:02, 17 December 2009 (UTC)
- Aha, an excellent solution that I thank you for. I exported the offending pages. Then I imported them, thinking that they would nullify (?) their respective former versions, but they remained behind as pages in the main ns but with the offending Widget: prefix. Deleting them via wiki did not actually delete them, and they continued to appear in the main ns, but as "deleted" (and still appearing as random pages). So I deleted them from the db. Everything is now as it should be, thanks to your advice, and now I can sleep. Thank you and your partners for this and your other fine extensions. I look forward to switching to Semantic Wiki in the future. Thanks again. Brian7632416 07:25, 18 December 2009 (UTC)
- You're very welcome! I hope this extension will help you a lot and feel free to contribute some universal widgets to MediaWikiWidgets.org. P.S. my partners are Widgets developers and users like you ;) --Sergey Chernyshev 15:27, 18 December 2009 (UTC)
FEED from same domain doesn't work ?
edit
Really great work, but importing feed from same domain doesn't work, for example you have wiki in doamin.com/wiki and want to import FEEd from your froum in domain.com/forum. can display the title or description ..etc correct, but if you click the headline or title get to Start_Page from wiki not to forum. something like $PHP_SELF. Any idea how can i fix that?
best Regards
PeterSon
- You can try using {{SERVER}} MediaWiki variable. --Sergey Chernyshev 20:31, 2 January 2010 (UTC)
- thnx, but is the same, i 've used this code
{{#widget:Feed |feedurl={{SERVER}}/forum/feed.php |chan=title |num=5 |desc=50 |date=y |targ=y }}
best regards PeterSon
- This widget uses external service. Paste this code into regular page "//www.mediawiki.org/forum/feed.php" and see if resulting link points at the feed, then make sure that this feed is available from outside.
- i've tested in regular page in wiki:
- This widget uses external service. Paste this code into regular page "//www.mediawiki.org/forum/feed.php" and see if resulting link points at the feed, then make sure that this feed is available from outside.
{{SERVER}}/forum/feed.php
worked alone without any problem and points to feed page.
PeterSon
- any idea Sergey Chernyshev ?
- Is your server available to the public internet? Can your feed be accessed from feed2js.com? BTW, best way to ask questions is on our Google Group: http://groups.google.com/group/mediawiki-widgets --Sergey Chernyshev 03:35, 9 January 2010 (UTC)
- any idea Sergey Chernyshev ?
widgets don't work
edit
I have recently installed this extension, and have created 5 widgets since that, but none work. Here are my wiki and it's version info:
MediaWiki: 1.6.12 PHP: 5.2.11 (apache2handler) MySQL: 5.1.34 Extensions: Parser hooks: Widgets (version 0.8.9), Allows wiki administrators to add free-form widgets to wiki by just editing pages within Widget namespace. Originally developed for Ardorado.com, by Sergey Chernyshev (for Semantic Communities LLC.) Other: AWC`s MediaWiki Forum (version 2.x.x), A Free, Standalone Forum For Your Wiki., by Another Web Company Extension functions: AWCs_Forum and widgetNamespacesInit Parser extension tags: <forum_info> Hooks: ArticleSaveComplete: AWC_FORUM_ArticleSaveComplete EditPage::showEditForm:fields: AWC_FORUM_showEditForm LanguageGetMagic: widgetLanguageGetMagic ParserAfterTidy: processEncodedWidgetOutput ParserFirstCallInit: widgetParserFunctions
Can anybody help me or give me a direction in which to look? Thanks!
Gallomane, Zoetermeer, the Netherlands --89.106.161.11 09:20, 5 March 2010 (UTC)
- 1.6.12 is just way too old - you need to upgrade urgently (for all other reasons). Sergey Chernyshev 18:23, 5 March 2010 (UTC)