Extension talk:WhoIsWatching/Archive

Problem with installation.
I've installed WhoIsWatching on MediaWiki 1.9.1 and the extension shows up in the version page. However, on the Special Pages, I show the list leading with, which when clicked gives this error:

Fatal error: Call to undefined function wfLoadExtensionMessages in ... (ip address) ... /wiki/extensions/SpecialWhoIsWatching_body.php on line 25

Any ideas? --C4duser 23:00, 24 November 2007 (UTC)
 * After doing some searching, it looks like this is a bug in MediaWiki itself. Apparently there are some version that did not have the wfLoadExtensionMessages function. Anyways, I changed the way the internationalization messages get loaded to not rely on this function. The new code is available in v0.3 (already in SVN). Please let me know if this code works any better for you. --Gri6507 14:43, 25 November 2007 (UTC)
 * Thanks. The error message has gone away and the Special page shows up properly. However, I don't seem to be using the extension properly. When clicking on the special page, I get: "This special page cannot be used on its own. Please use the page MediaWiki:Number_of_watching_users_pageview to define an entry point to this special page." I've placed the code you stipulate on the MediaWiki message page. What I am trying to do is to be able to set up a link on the sidebar (say "Current Watchers") that when clicked will produce a list of users that are watching that particular page. Is this possible?  --C4duser 02:49, 26 November 2007 (UTC)
 * OK. I've figured out that what is supposed to happen is for a message to appear at the bottom of the page showing the number of watchers. I do get a message at the bottom of the page, but something is wrong with the code. Here is the message: "[http:// ...IP address .../wiki/index.php?title=Special:SpecialWhoIsWatching&ns=...correct namespace ...&page=...correct pagename ...1] watching users" The number of "watching users" was indeed 1, so that appears to be correct, but I don't think there should be two "specials" in the special page name or that the IP address should appear.  Might this be a problem in the MediaWiki message page?  It seems that what is supposed to happen is that the message "1 watching user" should appear with a link to the Special page, where (hopefully) there would be a list of who those watcher are.  Any way, thanks for the time. --C4duser 03:42, 26 November 2007 (UTC)


 * I found another error message on the system messages page. Perhaps this is the problem? --C4duser 04:06, 26 November 2007 (UTC)

Warning: call_user_func_array [function.call-user-func-array]: First argument is expected to be a valid callback, 'WhoIsWatching::loadMessages' was given in ...IP address... /wiki/includes/Hooks.php on line 114

Installed the latest version; Still doesn't work.
I've installed the latest version and the problem noted above persists. --C4duser 01:02, 31 December 2007 (UTC)
 * Are you talking about the Warning or the Fatal Error? --Gri6507 03:01, 31 December 2007 (UTC)
 * Reinstalled the extension and now it works as described. Thanks. --C4duser 22:02, 24 May 2008 (UTC)

Installation Instructions - Correction?
I had to insert the following code in order for the extension to work properly:

$1 watching NaN userss

Does this look correct?


 * Where did you insert this code? Are you talking about the Extension:WhoIsWatching installation instruction? --Gri6507 22:14, 8 February 2008 (UTC)


 * Yes, this went into MediaWiki:Number_of_watching_users_pageview. I couldn't get the prescribed way to work.


 * Sorry for the long delay. You are correct in your syntax. I have updated the instructions. --Gri6507 20:09, 20 May 2008 (UTC)

Some errors
I get a non existing page error clicking the linked number of watching users (Special:WhoIsWatching). But Special:Who_Is_Watching_a_wiki_page appears in the list of special pages (Mistake by you imo). So when fixing the special page name after clicking the linked watching users I have the list of watching users but some are bad titles and appear as unlinked text: User:Milky User:Paulezzz User:Pokasissu Thos who are linked are fucked up as well. user linked is notthe same as user displayed.

Also I will disable "Add users to watch the page" as this seems pretty useless. I'll wait and see what Extension:WhoIsWatchingTabbed is going to look like. --Subfader 11:23, 11 May 2008 (UTC)
 * What version of the extension are you using? What version of MediaWiki are you using? What localization is your account set for? I just double checked on my installation and Special:WhoIsWatching is correctly created by the extension. The part of the code which creates the special page is near the top of SpecialWhoIsWatching_body.php and there it clearly states that the special page should be called Special:WhoIsWatching.


 * I can confirm the problem with having some users show up are "dead links". This is because those users do not have a configured "real name". Since having a real name is not required, I have changed the extension to default to either a username or a realname (if one is available) depending on the setting of a new configuration variable (see $whoiswatching_nametype in v0.5). --Gri6507 11:38, 12 May 2008 (UTC)

I was using Version 0.4 on MW 1.12.0rc. I don't have any localization thingy installed. I downloaded the new files and I still have it.

I don't wanna confuse you so and since I won't use thsi extension you can ignore my comments till someone else may report the same problem --Subfader 22:13, 12 May 2008 (UTC)


 * based on your first screen capture, I can see that unfortunately you were a victim of a typo on the instructions. Those have been updated and the link at the bottom on every page should now work. As for the links to the user pages in the list of users watching a page, I don't see anything wrong in your screen capture. It simply shows that many users watching that page do not have a user page created from themselves. --Gri6507 20:13, 20 May 2008 (UTC)

Description Suggestion
Even though this notion goes against Wikipedia and Wikimedia privacy policy, some wikis may actually like to see which of its users are watching particular pages. This extension provides just such an interface in the bottom of every page. Additionally, this extension allows any user to add any page to any other user's watch list.

Any idea?--Roc michael 22:48, 23 May 2008 (UTC)


 * I agree - I made the change on the mail page. --Gri6507 14:55, 25 May 2008 (UTC)

How to turn off "Add Users to Watch the Page"?
Is there any way to turn of the "add users to watch the page" feature? I would like to be able just to show what users are watching, without giving users to ability to add other users to watch a page.

Thanks.--C4duser 22:05, 24 May 2008 (UTC)

Not official reply
There are some easy ways you can use: $wgWhitelist['sysop']['read'] = $wgBlacklist['*']['read'] = array("^Special:(Export|WhoIsWatching|Listusers|Ipblocklist|Log|Allmessages)$");
 * 1) Use Extension:WhoIsWatchingTabbed not this extension.
 * 2) Use Extension:Blacklist with following code:
 * 1) Use Extension:RightFunctions in the page "MediaWiki:Number_of_watching_users_pageview"
 * Hope my answers is useful. --Roc michael 23:12, 24 May 2008 (UTC)

(Slightly more) Official response
Next week, I will modify the extension so that this feature is made optional. Please stay tuned. --Gri6507 14:58, 25 May 2008 (UTC)