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? —The preceding unsigned comment was added by 68.42.66.48 (talk • contribs). Please sign your posts with ~ !


 * Editing the appropriate system messages should do the trick, although I haven't tested it myself. These system messages contain the word 'foe':

MediaWiki:Useractivity-foe MediaWiki:Boardlinkselectfoes MediaWiki:Boardlinkunselectfoes MediaWiki:User-add-foe MediaWiki:User-remove-foe MediaWiki:User-recent-activity-foe MediaWiki:User-profile-preferences-emails-friendfoe MediaWiki:Ur-relationship-count-foes MediaWiki:Ur-add-foe MediaWiki:Ur-add-no-user MediaWiki:Ur-remove-relationship-foe MediaWiki:Ur-remove-relationship-title-foe MediaWiki:Ur-remove-relationship-title-confirm-foe MediaWiki:Ur-remove-relationship-message-foe MediaWiki:Ur-remove-relationship-message-confirm-foe MediaWiki:Ur-remove-error-message-pending-foe-request MediaWiki:Ur-remove-error-not-loggedin-foe MediaWiki:Ur-add-title-foe MediaWiki:Ur-add-message-foe MediaWiki:Ur-add-button-foe MediaWiki:Ur-add-sent-title-foe MediaWiki:Ur-add-sent-message-foe MediaWiki:Ur-add-error-message-yourself MediaWiki:Ur-add-error-message-existing-relationship-foe MediaWiki:Ur-add-error-message-pending-foe-request MediaWiki:Ur-add-error-message-not-loggedin-foe MediaWiki:Ur-requests-message-foe MediaWiki:Ur-no-requests-message MediaWiki:Ur-requests-added-message-foe MediaWiki:Ur-requests-reject-message-foe MediaWiki:Ur-title-foe MediaWiki:Foe request subject MediaWiki:Foe request body MediaWiki:Foe accept subject MediaWiki:Foe accept body MediaWiki:Foe removed subject MediaWiki:Foe removed body MediaWiki:Top-fans-stats-foe-count MediaWiki:Mp-request-new-foe


 * --Jack Phoenix (Contact) 23:59, 31 December 2009 (UTC)

Show SocialProfile certain groups
Hello!

I want that only show SocialProfile certain groups (eg Admin). Can someone help me? What do I need to configure? —The preceding unsigned comment was added by 80.81.21.118 (talk • contribs). Please sign your posts with ~ !


 * If I understood your question correctly, you can't. Every user has the option to choose from normal wiki userpage or a social userpage. If you know PHP, you could try modifying the code. --Jack Phoenix (Contact) 19:42, 28 January 2010 (UTC)

Activation of Userwelcome
I can't find a reference to how to turn UserWelcome on, and would love to be able to put it into practice. Kitsufox 18:53, 28 January 2010 (UTC)


 * in your wiki's LocalSettings.php should do it. --Jack Phoenix (Contact) 19:42, 28 January 2010 (UTC)


 * Yep, that did the trick perfectly. Thank you very much. Kitsufox 21:05, 28 January 2010 (UTC)

Database error
(SQL query hidden) from within function "UserProfile::getProfile". MySQL returned error "1146: Table 'uopedia_wiki1.user_profile' doesn't exist (localhost)".--96.47.201.30 07:02, 15 February 2010 (UTC)


 * Extension:SocialProfile. --Jack Phoenix (Contact) 15:34, 15 February 2010 (UTC)

I know this but I have no access to the command line. Any other way?--207.160.145.13 19:06, 17 February 2010 (UTC)


 * You should have mentioned it in your previous message, then. Anyway, you might wanna have a look at Extension talk:SocialProfile/Archive 4 Do note that the instructions there are a bit outdated; you'll also need to copy the query from user_system_messages.sql. --Jack Phoenix (Contact) 10:52, 18 February 2010 (UTC)

gift error
from within function "". MySQL returned error "1146: Table 'uopedia_wiki1.gift' doesn't exist (localhost)". Any help? —The preceding unsigned comment was added by 66.43.40.131 (talk • contribs). Please sign your posts with ~ !


 * See above. --Jack Phoenix (Contact) 10:52, 18 February 2010 (UTC)
 * Yes, I have looked at everything above carefully and still I had to turn off the gifts because when I turn it on it still give me that error. I have put in all the tables people are posting but none with the name gift. Help?--66.43.40.131 03:00, 22 February 2010 (UTC)

This extension seemed to break Lucene
After I installed this extension my lucene search engine stopped being able to update it's indices, which is not good at all. So now I want to "uninstall" the extension, which I assume will include removing the database entries. Is there a list somewhere of what database tables I can get rid of? Thanks
 * The tables created by this extension are user_board, user_profile, user_stats, user_relationship, user_relationship_request, user_system_gift, system_gift, user_gift, gift, and user_system_messages. Reach Out to the Truth 14:51, 26 February 2010 (UTC)

- Thanks for the list, I am not sure if this extension caused the problem or not. It seems my Lucene indexes became corrupt or something, and only after I removed them completely and rebuild them does it start to work again. It worked fine before this extension was installed, but that doesn't really prove this Extension was the problem. Still have decided to use another method for user profile info though, thanks for the info.

Question: possible to add message comments to emails?
Is it possible to add the message someone sends via the profile to the email that is sent using magic words, templates or the like? thanks for your help.. --LainieH 00:02, 1 March 2010 (UTC)


 * See UserBoardClass.php, specifically the functions sendBoardMessage and sendBoardNotificationEmail. I think that passing the $message variable to sendBoardNotificationEmail in sendBoardMessage might work. I didn't test it obviously, just had a quick look at the code and thought it might work. --Jack Phoenix (Contact) 15:47, 1 March 2010 (UTC)

MySQL error 1054
MySQL returned error "1054: Unknown column 'ug_gift_id' in 'field list' (localhost)". --96.47.201.30 02:22, 1 March 2010 (UTC)


 * Have you set up the database tables correctly?
 * Are you running the SVN version of SocialProfile? If so, is the revision r63098 or a newer one?
 * --Jack Phoenix (Contact) 15:47, 1 March 2010 (UTC)

Images black after extension upgrade
I upgraded to the latest version of SocialProfile on Feb 22. Since that time, any avatars uploaded are now black. I've viewed the images directly, yes they really are black. Existing images are fine. I've purged the page, no difference. Running version 1.14.0 mediawiki. SocialProfile 1.4. I've copied back the previous version of SpecialUploadAvatar.php with no luck. Any suggestions welcomed. --Tomfuie 19:04, 5 March 2010 (UTC)


 * As you probably noticed, the trunk version of SocialProfile is only compatible with MediaWiki 1.16 (which hasn't yet been released). However, I do know about your problem, seeing as I stumbled upon it last year. I don't know what caused it exactly, but it had nothing to do with SocialProfile, because same version of SocialProfile worked on a different server. Check your server's configuration and make sure that any recent updates haven't messed up things. --Jack Phoenix (Contact) 23:45, 5 March 2010 (UTC)


 * Either code hack or extension confusion. Once I reinstalled a fresh version of the extension it worked fine.  --Tomfuie 14:59, 15 March 2010 (UTC)

Question about Messaging Customization
I have had my user base ask if it is possible to customize messaging to allow for a public "message board" where users can post comments ("like facebook"). I have also had them ask if they can sort messages by topic (like a discussion forum). Are you aware of any web sites using the social profile extension that have customized it for this type of funtionalitly? Is this possible? Thanks.. --LainieH 22:11, 8 March 2010 (UTC)

Default User Page, Wiki default?
Default install appears to make every user's page a enhanced version. Is there a setting or tweak to make the wiki user page the default? --Tomfuie 15:07, 15 March 2010 (UTC)