Extension talk:MpDisqus
Contents |
[edit] Exclude array not working for all pages with a : inside
- This means special pages and categories.
- How can this be fixed? I am using the newest version of this extension and mediawiki 1.15.
--> i changed back to an older version of this extension and the page exclusion works properly!
[edit] Issues
- This extension stops new page creation. You can no longer navigate to mywiki.com/newpage and create a new page. [This doesn't happen to me -stevevance.net/nishiki]
- The "exclude" action doesn't work for me. I've left in the exclusion array in my LocalSettings.php file the "*:*" and then I added "Special" to remove it from Special pages. The extension doesn't recognize these. -stevevance.net/nishiki
Warning message:
I got the following warning.
Warning: Missing argument 2 for onSkinAfterContent_AddMpDisqus1() in /home/public/extensions/MpDisqus/MpDisqus.php on line 54
- I changed line 54 to: function onSkinAfterContent_AddMpDisqus1(&$data, $skin=Null)
- Hi - fyi I fix the "Missing Argument 2..." by installing the Parser Functions extension.
I get the same "Missing Argument 2..." error. The first suggested solution breaks formatting on the Disqus box and the second does not work for me.
Didn't tried the first one, but installing 'parser fuctions' extention is of no use. --14.98.157.153 19:55, 24 June 2011 (UTC)
[edit] Wildcards don't work for exclusions
I agree with the first poster that wild cards do not work for exclusions.
The code is doing a simple "in_array()" which is a literal match. It should instead be looping through the array, doing a preg_match() on each element.
Perhaps I'll try to do that, as it seems important to be able to exclude things like certain namespaces. In fact, the example ("*:*") looks like it is intended to exclude all namespaced pages, but all it will do with the current code is exclude a page that is literally named "*:*".
--Bytesmiths 20:15, 1 April 2011 (UTC)
[edit] FYI - Not working with gumaxdd skin
I use the paul gu drop down menu skin on our site and this extension won't display. It does work when I change the skin. - site en.wikiaudio.org. btw - I noticed there is a way to change this using a hook but my php understanding is sparse so I am not clear how. :( 67.169.112.14 04:32, 9 May 2011 (UTC)
[edit] 'Warning message' is coming, kindly help
Warning: Missing argument 2 for onSkinAfterContent_AddMpDisqus1() in /nfs/c04/h05/mnt/84423/domains/uidnumber.org/html/aadhar/w/extensions/MpDisqus/MpDisqus.php on line 54
When i installed the plugin on the wiki ( http://uidnumber.org/aadhar/wiki/Enrollment_camps_in_Panchkula_district ), a warning message is coming on the top. I have doubled checked and have replaced the code of MpDisqus.php twice, with the one given on the extension page. Kindly guide, how it can be resolved. --14.98.157.153 19:37, 24 June 2011 (UTC)
- Problem solved by changing line 54 to: function onSkinAfterContent_AddMpDisqus1(&$data, $skin=Null) --14.98.247.132 08:34, 27 June 2011 (UTC)
[edit] How to disable comments on redirect pages
Kindly guide how to disable disqus comments on REDIRECT pages like (http://uidnumber.org/aadhar/wiki/Zirakpur ) Thanks. --14.98.157.153 19:43, 24 June 2011 (UTC)
- An alternative is to use the Disqus widget and to embed this in a PageFooter template on each page - this will not show on REDIRECT pages. Within the PageFooter template you can specify more conditions. See: http://fvue.nl/wiki/Embedding_MediaWiki_Disqus_widget_inside_page_footer_template -- Fvue 11:20, 28 August 2011 (UTC)