Extension talk:SocialProfile/Archive 2

Archived discussion: 1

Stable?
Sayuri, this extension has been changed to 'Stable' now, I notice you made that change, and also that the SVN files must have been updated somewhat to include the avatars...

I still have the issues stated on the previous page...so unless their has been substantial updates, I still would not consider this extension stable?

Can you tell me what else has changed, to justify the stable status?

Cheers --HTPCnz 11:00, 18 May 2008 (UTC)


 * In 34829 I added the avatars directory from the SourceForge release, made some hardcoded strings i18n-able, fixed message loading in user profile pages (UserBoard messages weren't being loaded and had to be created manually if one wanted to have other text in there than &lt;userboard_message&gt; or such). The preg_replace_callback issue with the 'cut_link_text' function was fixed by commenting out a line...it didn't break anything on my development wiki, more like fixed things.


 * If CSS/JS aren't being loaded, you can change the values of $wgUserBoardScripts, $wgUserProfileScripts and $wgUserRelationshipScripts in LocalSettings.php. Yes, I'm very much aware of things like UserStatsClass.php throwing errors or Special:InviteContacts not being included in the package. However, those are things that I cannot fix myself. It would require Wikia, Inc. to release more of their code to the public. As far as I'm concerned, they're working on it.


 * It works relatively nicely on this one wiki that I administrate (which isn't even English and has $wgDBprefix set, btw) and I haven't heard too many complaints from our users. I'm not saying that this is something of CheckUser quality, I'm saying that this is stable enough that I dare to put it on a live site that is open for everyone. -- Sayuri 12:06, 18 May 2008 (UTC)


 * Ok, I have updated the files in 34829, and agree the extension is much better now.


 * It has removed most of my previous issues and warnings...I now have no warnings remaining on screen, and every feature works.


 * The only issues I have now is that the following warning:
 * Warning: Invalid argument supplied for foreach in /xxxx/xxxxxx/xxxxxxxx/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378
 * It appears in the following cases:
 * After accepting new freind/foe requests
 * After sending someone a message using the Board
 * After using Board Blast


 * You already know of it, but any other thoughts?
 * --HTPCnz 09:55, 19 May 2008 (UTC)


 * If you feel adventurous enough, I suppose you could comment out the foreach loop (lines 378-384) and see what breaks, if anything. Better solution (IMO) would be to get Wikia release their UserLevels extension. ;-> -- Sayuri 12:32, 19 May 2008 (UTC)


 * Ok...commenting that loop out has worked, all warnings are gone, and everything still works...Perfect!
 * I will keep testing and digging to see if anything breaks as a result, and if so will post back here...but at this point, all looks perfect :) --HTPCnz 13:55, 19 May 2008 (UTC)

Customizing
Now that I have eveything stable and running perfectly, I will attempt to modify the code to display what I want, and any help/advice would be appreciated.

I want to change the 'Custom information' section... The 'Tidbits' currently have 4 'Custom' text input boxes available, I want to add more, and rename them...

Current example:
 * Custom 1
 * Custom 2
 * Custom 3
 * Custom 4

What I want:
 * Case
 * Motherboard
 * TV Tuner
 * Hard Drive
 * CPU
 * etc etc......

Anyone know where I should start looking? --HTPCnz 14:12, 19 May 2008 (UTC)


 * Edit MediaWiki:Custom-info-field1, MediaWiki:Custom-info-field2, MediaWiki:Custom-info-field3 and MediaWiki:Custom-info-field4. I'm not sure if you can add more fields without hacking the source. However, writing a quick extension might be possible if you use the four given hooks. -- Sayuri 14:58, 19 May 2008 (UTC)


 * Editing the files MediaWiki:Custom-info-field1, MediaWiki:Custom-info-field2, MediaWiki:Custom-info-field3 and MediaWiki:Custom-info-field4 does nothing.


 * I was able to cheat, and change the UserProfile.i18n file to change the names...but thats tacky.


 * I also modified UserProfilePage.php, UserProfileClass.php and SpecialUpdateProfile files to add another feild, with no success. :( --HTPCnz 09:33, 20 May 2008 (UTC)


 * The MediaWiki messages work for me. Check that $wgUseDatabaseMessages is set to true. -- Sayuri 14:04, 23 May 2008 (UTC)

Relationship requests
MediaWiki: 1.11.0

svn revision: 35175 (of 35213)
 * Not able to accept or reject Relationship requests. Access website.com/wiki/index.php/Special:ViewRelationshipRequests, select "Accept" and I get a js object error "Special:ViewRelationshipRequests line 102"

error.log

Undefined variable: output in /srv/mediawiki/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 532, Undefined variable: output in /srv/mediawiki/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 561 File does not exist: /srv/www/html/extensions, referer: http://website.com/wiki/index.php/Special:ViewRelationshipRequests


 * Please help! --ReidSerozi 02:59, 23 May 2008 (UTC)


 * One problem might be MediaWiki 1.11, I dunno really, but I guess it should work under 1.11 too.


 * Regarding the JS problem, make sure to set $wgUserBoardScripts, $wgUserProfileScripts and $wgUserRelationshipScripts</tt> to proper values in LocalSettings.php, e.g. $wgUserRelationshipScripts = "http://example.com/extensions/SocialProfile/UserRelationship";</tt> and so on. -- Sayuri 14:04, 23 May 2008 (UTC)