Extension talk:SocialProfile/Archive 6

Archived discussion: 1 | 2 | 3 | 4

''Please post new topics here, with the newest posts being at the bottom of the page. Discussions are archived gradually, so please check the archives to make sure that your question hasn't been answered already!''

Fatal error: Call to a member function getNamespace on a non-object in /var/lib/mediawiki/extensions/SocialProfile/UserStats/EditCount.php on line 18
Using the latest version of your code "1.4 (November 30, 2009)" along with MediaWiki 1.15.1 I get the error in the headline if I have $wfNamespacesForEditPoints defined in LocalSettings.php
 * $wgNamespacesForEditPoints = array(0); // Array of namespaces for that can earn you points. Use numerical keys. Default is 0 -- only main namespace edits can earn a user points.

If I remove the $wgNamespacesForEditPoints from LocalSettings.php the error goes away, but I would really like to be able to use this so I can add other namespaces. Thanks, --Cforrest 18:48, 30 November 2009 (UTC)


 * Oops, good catch! I've fixed that regression in r59601; now it should work again. --Jack Phoenix (Contact) 20:13, 30 November 2009 (UTC)

Special:UpdateEditCounts not using $wgNamespacesForEditPoints
When I add namespaces (14 for categories or 104 for a custom one I have) the edit counts update appropriately and increment for edits to pages in the defined namespaces (0, 14, 104). If I then run Special:UpdateEditCounts the additional namespaces are ignored and the count is reset back down to the number of edits in the main namespace (0). Can you please make it so that the Special:UpdateEditCounts uses $wgNamespacesForEditPoints?

BTW, thank you for such a cool extension. MW version 1.15.1 and SocialProfile 1.4 --Cforrest 20:29, 1 December 2009 (UTC)

UPDATE
I was able to "fix" this myself by making the appropriate edits to UserStats/SpecialUpdateEditCounts.php. It may not be pretty, but it works :)

Edit UserStats/SpecialUpdateEditCounts.php

REPLACE WITH REPLACE WITH INSERT ABOVE Then go to your wiki and re-run Special:UpdateEditCounts in order to have your counts include all namespaces defined in $wgNamespacesForEditPoints in LocalSettings.php.

Good Luck --Cforrest 00:22, 2 December 2009 (UTC)


 * Thanks again, I've fixed this in r59661. --Jack Phoenix (Contact) 14:26, 2 December 2009 (UTC)

globally rename foe and friend
I'd like to be able to rename 'foe' to 'rival' for my site. Is there a way to do this easily, or is it a hunt and peck through the source code?