Extension talk:SocialProfile/Archive 3

User Profile Page Counter No Longer Increments
Is there a fix for this also? --sas daniels 16:55, 8 December 2008 (UTC)

'User' namespace news feed not picking up new changes
Hello, for some reason i can't get the News extension i have to give me updates for the User namespace. From what I can see SocialProfile still uses the 'User' namespace but the updates do not appear in my news feed. Can anyone fix this or tell me how to?

Thanks,

Mike --sas daniels 16:54, 8 December 2008 (UTC)

Avatars
Is this possible to show user avatars in their signatures? or show avatars of a certain username in a wiki page? Vietbio 12:49, 8 August 2008 (UTC)


 * I'm interested in the answer to this as well. Is there, or could there be a template or the like to insert a user's avatar? - Ivolucien 02:40, 10 August 2008 (UTC)


 * To put it simply: no. However, you can write a parser hook that uses the wAvatar class and shows the user's avatar, e.g. or something. See Manual:Tag extensions for more info. -- Sayuri 12:11, 10 August 2008 (UTC)

Code Contributions
Is there a way to contribute to the coding effort? I'd appreciate the opportunity to help out with the project, in particular to help generalize and modularize it. I'll be doing serious work on the extension for my project; if I can't submit changes, I'll either have to branch from your ongoing efforts or spending extra time merging my changes with yours, with all the pain and bug potential implied. Is there any practical way to get svn commit access, and/or who can I send proposed patches to? Thank you kindly. - Ivolucien 02:49, 10 August 2008 (UTC)


 * You can request commit access by sending an email to Brion with your public SSH key attached and the reason why you're requesting it. Please be aware that I'll be doing the occasional code merge from Wikia codebase every now and then &mdash; hopefully I'll be able to release SocialProfile version 1.2. as soon as possible. But it'd be very nice to have your patches applied. :-) -- Sayuri 12:11, 10 August 2008 (UTC)
 * Second option to contribute is by providing patches to . Cheers! Siebrand 05:58, 12 August 2008 (UTC)
 * Thank you both, I'll take a look at those options and make a decision when I get to the next milestone that includes work on SocialProfile. (within a few weeks)
 * Also, is there a forum or list where folks coordinate what they're working on? I'd hate to step on anyone's toes. - Ivolucien 17:26, 12 August 2008 (UTC)
 * Regarding SocialProfile work? No, not really, except this talk page. I'm currently working on SocialProfile v. 1.2 that will include SystemGifts and UserGifts integration from Wikia codebase. -- Sayuri 17:37, 12 August 2008 (UTC)

Execute install from the command line?
http://sharnyl.net/wiki/index.php/Main_Page
 * MediaWiki: 1.11.0
 * PHP: 5.2.5 (apache)
 * MySQL: 5.0.51a-community

I'm trying to install the | Social Profile extension at my mediawiki, but I've run into a couple of issues. It says I have to run the install.php file from the command line but I have no idea what that means. What command line? Where do I do this at? Shouldn't I just be able to navigate to the maintenance directory and click the install file from there? Also, I'm getting an error message:

Notice: Undefined variable: output in /home/xxxxx/public_html/xxxx/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 601

Notice: Undefined variable: output in /home/xxxxx/public_html/xxxx/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 601

Notice: Undefined variable: output in /home/xxxxx/public_html/xxxx/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 148

Notice: Undefined variable: output in /home/xxxxx/public_html/xxxx/extensions/SocialProfile/UserProfile/UserProfilePage.php on line 629

Why do I need to connect through an SSH? I can access everything on my domain. Is there some place to get the SQL query so I can just do it manually through phpMyAdmin? I looked at the file and it's not written in a way I'm use to seeing.

97.115.181.238 15:25, 18 August 2008 (UTC)


 * I've answered the first half of your questions here.


 * You need to connect through SSH because that's simply how maintenance scripts, such as SocialProfile's installer script, work.


 * You can get the required SQL files from SVN, they're stored there like all other SocialProfile's files. See extensions/SocialProfile/UserBoard/user_board.sql, extensions/SocialProfile/UserProfile/user_profile.sql, extensions/SocialProfile/UserRelationship/user_relationship.sql and extensions/SocialProfile/UserStats/user_stats.sql. -- Sayuri 18:22, 18 August 2008 (UTC)

Thank you for all your help. I'm afraid I won't be using this extension. It's much easier to just copy/paste the SQL queries for installations into my phpMyAdmin than it is to try to connect using something called PuTTY which I've never used before. But this is a really nice extension and if it were easier to run the install.php file, I'd definitely be using it. ^_^

97.115.181.238 22:51, 18 August 2008 (UTC)


 * It is no different from using other maintenance scripts, such as update.php, for example. After all, whenever you upgrade your MediaWiki from a major version to a newer major version, you need to run update.php from the command line in order to ensure that all schema changes will be applied properly. If you don't run update.php whenever upgrading your MediaWiki, you will likely get errors.


 * But anyway, see my post above for links to the SQL files. Copy the required SQL queries from the four files, paste them into the "SQL" prompt in phpMyAdmin and execute the queries. -- Sayuri 14:02, 19 August 2008 (UTC)

Searching Social Profile
For some reason when I go to search for a social profile, or content within the profile, I get no results. I do have the UserWiki box checked. Is there something I'm missing?

Also, is there a way to customize what is viewed in the personal information? I'd like the email to show and a few other things.

Thanks jltitus 17:04, 27 August 2008


 * Maybe your search index hasn't updated yet, I don't know really.


 * There's no built-in way to display the email on the public social profile and quite honestly, I have no idea why you'd want to do such a thing. The user's real name, if s/he has given it, will be displayed on their profile and some users consider even this an invasion of privacy, despite that it can be accessed i.e. through &action=credits, for example. -- Sayuri 14:10, 6 September 2008 (UTC)


 * It would be great if we can sort, search or group users with the same career / hobies. That will help us to find other user shared common favourites. Vietbio 17:23, 17 October 2008 (UTC)

Using wgNamespacesForEditPoints
Can anyone tell me how I would add images along with main space edits to wgNamespacesForEditPoints? --24.176.16.143 13:33, 6 September 2008 (UTC)


 * $wgNamespacesForEditPoints = array( 0, 6 );
 * -- Sayuri 14:10, 6 September 2008 (UTC)

Banned User Bug
It appears that users that have been banned can still post board messages on other users boards. Is this intended? Rodeoclash 03:47, 7 September 2008 (UTC)


 * No, this shouldn't happen. The file extensions/SocialProfile/UserBoard/SpecialUserBoard.php has a comment regarding blocked users that states "only let them post to admins" but granted, the code does look odd. I'll try to dig into this after I'm done with the release of the next major version of SocialProfile extension. -- Sayuri 13:11, 7 September 2008 (UTC)
 * The user was an admin so the code is correct. Rodeoclash 02:08, 8 September 2008 (UTC)

Problems with Avatars
I'm having problems trying to upload an avatar, it comes up with the error message below. I'm currently trialling this extension on MW 1.13 - this couldn't be anything to do with it could it?

Could not copy file "C:\xampp\tmp\php49.tmp" to ""

Thanks --sas daniels 14:07, 9 September 2008 (UTC)


 * Make sure that the file/folder permissions are correct. That works, at least for Unix-like systems. You're running in on Windows, which really qualifies as a Bad Idea&trade; in my opinion. But in most cases, this has been an issue with insufficient file/folder permissions (e.g. apache user couldn't write to avatars directory or something like that). -- Sayuri 15:30, 9 September 2008 (UTC)

Many thanks for getting back to me so quickly, although i've managed to work out what i missed out for the install. In the Social Profile folder under extensions, there's an avatar folder that i copied to my wiki image directory. Tried uploading an avatar and this solved everything. --sas daniels 15:44, 9 September 2008 (UTC)

Hey There, I have the same problems. Could not copy file „/home/www/web69/phptmp/phpeggH3z“ to ""

I gave the permissions 777 to the folder images/ and avatars/, also i gave the SpecialUploadAvatar.php rights to write. But there is again and again the message. Where is the Problem ?

Thanks --Sn!py 00:18, 21 November 2008 (UTC)

Multiple Issues
Hello,

A few things:
 * 1) How can I add the UserWiki talk: and User profile talk: namespaces? It's currently buggering up my wiki.
 * 2) Something unexplainable, a few new users have made UserWiki pages and they have ended up as :foo rather than UserWiki:foo.

Cheers,

Bluegoblin7 09:20, 14 September 2008 (UTC)


 * Make sure that your $wgExtraNamespaces is properly configured. Something like this should work for adding UserWiki talk: and User profile talk: namespaces, although I have no idea why you'd want those namespaces (I just hide the talk tabs on UserWiki:/User profile: namespaces with little CSS magic):


 * -- Sayuri 10:59, 14 September 2008 (UTC)
 * Ok, how could I do that? That would work better ;). I only asked cos it's buggering up the wiki if someone goes and writes on one.
 * Cheers,
 * Bluegoblin7 11:07, 14 September 2008 (UTC)


 * The following works for Monobook skin, I haven't tested it on non-Monobook skins yet:


 * -- Sayuri 11:43, 14 September 2008 (UTC)
 * Ok if I put that it MediaWiki:Monobook.css it should be fine? Or eslewhere? Bluegoblin7 11:52, 14 September 2008 (UTC)
 * Put that CSS in MediaWiki:Monobook.css and it should work. You might need to purge the page (?action=purge) or do a hard refresh (CTRL + F5 on Internet Explorer, dunno about Firefox etc.) to see the changes. -- Sayuri 12:34, 14 September 2008 (UTC)

Problems With Awards
Hi, I'm having problems removing Awards that have been added to the profiles. I can do it with gifts but the awards side doesn't seem to have a remove function I can only edit. Satire3rd 22:00, 30 September 2008 (UTC)


 * Good catch, didn't notice that one myself...apparently award deletion functionality was never implemented, so awards can only be edited and added. -- Sayuri 09:54, 1 October 2008 (UTC)

Board Post Broken?
I've just updated to the latest version out of SVN and it seems that the board post function might be broken? On the user page here you can fill out your message by the "send" button doesn't seem to post the form. On closer inspection it's calling "javascript:send_message;" which doesn't seem to exist on the page. I'm using Firefox 3. Rodeoclash 12:02, 14 October 2008 (UTC)


 * Your setup is broken somehow &mdash; check all path values etc. and make sure they all are correct and that there are no path errors. Sending board messages - either through the profile pages or through Special:UserBoard - works for me on SVN HEAD. The JavaScript function send_message is defined by extensions/SocialProfile/UserProfile/UserProfilePage.js and that JS file is included on every profile page view. -- Sayuri 12:35, 14 October 2008 (UTC)


 * I'm running SocialProfile out of a sym linked extensions directory, that could be a factor. The other problem I'm having (which could be related) is when I try and give a gift to as user I get the message "Woops, you took a wrong turn!" (example). This may be related but I thought I'd run it past you as it could be two seperate problems. Thanks Sayuri. Rodeoclash 11:08, 15 October 2008 (UTC)


 * The symlink might be the cause of your JS issues, at least it looks like that.


 * Special:GiveGift is, oddly enough, broken on wikis where $wgScriptPath is set (~99.9% of all MediaWiki installations). I haven't found out the cause yet, but when I'll find it, I'll fix it. It's a rather strange issue...and as with free software in general, patches to code are always welcome and appreciated. ;-) -- Sayuri 12:55, 15 October 2008 (UTC)


 * I'm more than happy to contribute some money towards SocialProfile if you're willing to implement some features that I'm thinking of, however I don't think I'll be that much help with fixing code :) I'll have a play around my paths tonight, I think it must be missing a javascript file somewhere (although the YUI code seems to be getting added) and report back. Rodeoclash 22:38, 15 October 2008 (UTC)

Testing Results
Still couldn't track down exactly what's causing this, the AJAX post back is failing with the following

failed with: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">  Bad Request   Bad Request unknown function wfSendBoardMessage

Could this be related to the url rewriting I'm using? You can manually trigger this reponse using this URL

http://www.tekkenpedia.com/wiki/index.php?action=ajax&rs=wfSendBoardMessage&rsargs[]=Shinzen&rsargs[]=test&rsargs[]=0&rsargs[]=10

Rodeoclash 11:36, 16 October 2008 (UTC)


 * You haven't changed your includes/AjaxFunctions.php file according to Extension:SocialProfile. You will need to add the following lines into includes/AjaxFunctions.php for board messages and relationship requests to work properly:


 * -- Sayuri 18:20, 17 October 2008 (UTC)
 * I was actually mistaken in making it so you had to edit the MW codebase...the includes of those Ajax function files can be either put in LocalSettings or the main SocialProfile.php include Pean 15:59, 22 October 2008 (UTC)
 * Very interesting, that's definitely something I gotta test. Very cool if it'll work that way. :-) You should get commit access from Brion or Tim if you're interested in maintaining the "official" copy of SocialProfile in addition to Wikia's extensions, too &mdash; I'm sure that Wikia's techs will have no problems in getting commit access. -- Sayuri 19:29, 22 October 2008 (UTC)
 * Interesting, these functions then be wrapped up into one SocialProfile include file? I got the original error by installing SP, updating my MediaWiki install from SVN (thus breaking the included files). Keeping changes out of the code would be great.


 * By the way, I've updated SP from the latest version in SVN however I'm still getting problems with the gift functionality (I saw an update come down for the gift giving PHP file but it doesn't seem to have had any effect. 165.228.123.49 23:18, 27 October 2008 (UTC)

Similiar Board Problems
I'm having similiar problems with the board function on my wiki (running MW 1.13). When I paste a message onto a board, nothing happens. I don't have any special setups, except a custom url rewrite. Could you provide some tips on getting the board function to work? --RamenLover 11:52, 10 February 2009 (UTC)

i18n
I've updated the i18n files regarding the portuguese translations. I'm not sure what would be the best way to send the updates, so I've just created a zip including all updated i18n files and made it available here: http://banix.info/wiki/SocialProfile-i18n.zip If there is a better way to send it let me know. --Bani 18:48, 22 October 2008 (UTC)


 * You should post a patch against the trunk version as an unified diff. A developer can then commit the patch. Please see how to become a MediaWiki hacker for more info about creating patches. Since I'm maintaining SocialProfile extension here, you can also post your patch on my talk page or on this extension talk page. -- Sayuri 19:29, 22 October 2008 (UTC)


 * Ok, thanks for the information. The patch is now available here: http://banix.info/wiki/i18n-pt.patch --Bani 23:03, 22 October 2008 (UTC)


 * Thank you for the patch, I've reviewed it and committed it in r42372. :-) -- Sayuri 12:51, 23 October 2008 (UTC)

problems with relationships
I followed all the instruction for installation of SocialProfile extension. But, still I have major problems with relationships:

1) only viewRelationship and viewRelationshipRequest special pages have been created and other related pages such as AddRelationship do not exist.

2) when I go to another user's page, there is a link for adding that user as friend or foe. but, when I add him/her, it says that I have to wait for her response. First no email or message will be sent to that user to accept the relationship request. Second, if the second user also wants to add the first user as his friend/foe, the original requested message now is shown, but the buttons "accept" and "reject" do not have any effect and do not work.

I would appreciate if someone could help me. —The preceding unsigned comment was added by 70.74.202.214 (talk • contribs). Please sign your posts with ~ !


 * Special:AddRelationship and such special pages are unlisted special pages, meaning that they won't show up in Special:SpecialPages on your wiki.


 * Regarding the second issue, you haven't hacked the file includes/AjaxFunctions.php as per the instructions or some of the path variables are incorrect. If you do not wish to hack this MediaWiki core file, you can upgrade to the latest version of SocialProfile, 1.3. -- Sayuri 00:15, 2 November 2008 (UTC)


 * Thanks for your prompt reply. Yes you were right. The problem was due incorrect paths. I had installed mediawiki under "mediawiki/mediawiki-version" which I think that was the reason to not be able find some files. I installed mediawiki again in the direct directory of "mediawiki" and it worked this time:)
 * Just one more issue: Is email notification the only way for adding relationship from one user to another user? Can a requested user be notified directly from this request by for example a board message? Currently, no email notification has been received. But, when the second user also wants to add the first user, the request message is shown to him and he can now respond to the request directly.
 * Also, when I go to Special:ViewRelationship and click on "invite them", I receive the following error:
 * You have requested an invalid special page
 * the requested page in the URL is : Special:InviteContacts which seem to be it does not exist. —The preceding unsigned comment was added by 70.74.202.214 (talk • contribs) . Please sign your posts with ~ !


 * AFAIK email notifications require a separate class, which I haven't been bothered to add there yet. ;-) However, you can install UserWelcome extension and place the &lt;userWelcome/&gt;</tt> tag to some visible place, such as the main page. When UserWelcome is installed, users will see on that wiki page if they have new board messages or friend/foe requests. If you don't want to show the info to anonymous users (yes, that'd be a bit pointless to show it to them ;-), you can install Extension:WikiTextLoggedInOut and put something like this into the wiki page of your choice:

This content will be displayed only to anonymous users. <userWelcome/>


 * Special:InviteContacts is a separate extension and it's not shipped with SocialProfile. To be honest, the code is relatively ugly, but we can hope that I'll get around cleaning it up and committing to SVN one day. For now, you can just edit MediaWiki:Ur-no-requests-message to remove the link. -- Sayuri 11:30, 2 November 2008 (UTC)

Populate System Gifts
To populate the system gifts I need to access that special page, once that's been done is the process then automatic or will I need to continue to visit that page once in a while. If I need to visit the page is the best practice to set up a cron job to run once a week or so? Rodeoclash 22:02, 6 November 2008 (UTC)


 * Should probably be on cron, since you'd normally need to visit Special:PopulateAwards every now and then. -- Sayuri 15:52, 13 November 2008 (UTC)

Social Profile Page Search Broken
Content that is added into the Social Profile user fields (e.g., Personal Information: Location New Zealand) does not show up when searching (even if you choose the User Profile or any of the other User namespaces). Likewise, pages don't "backlink" to individual's User Profile pages if they are linked to in one of the forms. —The preceding unsigned comment was added by 76.160.69.244 (talk • contribs). Please sign your posts with ~ !


 * Obviously the profile info will not show up when you search for info in those fields, as SocialProfile user profile pages aren't normal wiki articles. -- Sayuri 15:52, 13 November 2008 (UTC)

Populate existing users
populating existing users does not work for me. When I open its special page by a user who has the permission, it shows that "'0' profiles added". However, there are some users in my system that are in user table, but not in user_profile table and I expected that after opening this special page, their profiles also were created which is not the case. In fact, these users will not be added to user_profile table until they start updating their profile. Even if one field like city is edited by them in their profile page, they will be added to user_profile table.

What I found out from the code of "populateExistingUsers" class is that it creates profile for only users who exist in the "User" namespace. When I look at UserList page, these users who don't have profile are also listed there, but it seems that they don't have a page in User namespace (their pages are listed in red color) though if I enter in the URL bar "User:name" (their user_name), it will load their profile page.

On the other hand, I found out that in "specialUpdateProfile" there is a section that adds users to "User" namespace and create a profile for users if they don't have (add them to user_profile table) and that's why populateExistingUsers will not add any new user_profile because this is always done with updateProfile. I wonder whether it is deliberately put in the design that before doing update, users can see a profile page, but actually they don't have a profile (they are not in the user_profile table) or not. And if this is the case, what is the usage of populateExistingUsers page? —The preceding unsigned comment was added by 70.74.212.180 (talk • contribs). Please sign your posts with ~ !


 * The special page Special:PopulateExistingUsersProfiles works well for me. There is a comment in the file stating what's it meant for: "A special page for initializing social profiles for existing wikis. This is to be run once if you want to preserve existing user pages at User:xxx (otherwise they will be moved to UserWiki:xxx)". -- Sayuri 15:52, 13 November 2008 (UTC)

Displaying Social Profiles
Is there a good way, perhaps using another extension, to display the user pages? Ideally, it would list the small avatars along side the names in neat columns. The Special page listing all users does not have the avatar and is just one column. Plus, it lists users who have not saved any content into their pages. I have tried categorizing the user pages, but they all start with "User:" and thus they all fall under "U" in the category page. Any ideas?

Can't send Gift's

 * MediaWiki 1.13.3
 * PHP 5.2.8-0.dotdeb.0 (cgi-fcgi)
 * MySQL 5.1.30-Dotdeb_0.dotdeb.0

If I go on the SpecialPage Spezial:GiveGift&user=testuser it displayed:

Woops, you took a wrong turn! The link you have entered is invalid.

But when I go with the User with Userid=1 on the page it doesn't show the message and you can sent gifts to somebody... But all others Id's can't send gifts.


 * GiveGift special page is, to put it nicely, quite messed up. :) I've been intending to fix it for a while now, haven't just gotten around that yet. In any case, this is very odd error - one that I haven't experienced myself. The thing is that when $wgScriptPath is something else than null (which is the case when it comes to most normal MediaWiki installations), Special:GiveGift is broken. Well, at least was when I tested it. -- Sayuri 13:38, 27 December 2008 (UTC)


 * I have read your code and I found the Proplem by me in my database in gift(gift_access) was in all rows 1 but it must be 0... How can i fix it, that when I create a gift in the database it write 0 ?

exec has been disabled for security reasons (Avatars not working)

 * MediaWiki 1.13.3
 * PHP 5.2.6-0.dotdeb.1 (cgi-fcgi)
 * MySQL 5.0.51a-0.dotdeb.1
 * URL: http://www.intayale.de/w/ (german)
 * Shared hosting (as I read this might be a problem sometimes)

I installed the SocialProfile Extension and so far I really like it ... but I tried to upload an avatar and was presented the following error message:

Warning: exec has been disabled for security reasons in /var/www/web679/html/w/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php on line 262

I get to read this 4 times and after that there is an default page telling me that an internal error has occured and the file /var/www/web679/phptmp/phpEyB2o8 (where the last bit changes with each effort) could not be copied into „“

Normal file upload works perfectly well. It's just when I try to upload an avatar. Any idea? Did I miss anything in the LocalSetting.php?? Haven't really worked with the extension yet, as I found this error and if the avatars don't work, I might have to delete it alltogether. Would be a shame :( Help would be higly appreciated! --93.199.37.228 20:27, 22 December 2008 (UTC)


 * Is PHP's safe_mode setting enabled? That would explain why exec is disallowed...and that command is necessary for avatar resizing. Sadly, many shared hosts just about love this setting, and PHP developers hate it. It will be removed in PHP 6 once that's released.


 * The internal error ("could not copy file /tmp/[...] to „“") is usually a permission error. Check the folder's permissions and make sure the webserver has writing rights to it. -- Sayuri 13:38, 27 December 2008 (UTC)


 * Ah well. That would explain it. I was afraid it would be something like that. Safe_mode, of course is enabled. Could have them switch it off, but that would cost some money and I'm not sure if it's really a good idea as I think I have some applications on my webspace where safemode is required to be enabled... Will have a look at the linked page and try that ;)
 * Folders are CHMODed 755. Works with the images folder but not with the avatars (normal upload of pictures works perfectly fine) Disabled Social profile for the time being and will try that again once I'm back from my holidays. --79.196.255.173 08:28, 28 December 2008 (UTC)
 * Right. Been there, done that. CHMOD changed to 777 - didn't change anything so I changed it back to 755. Tried the workaround for Image-upload on webspace with safe_mode enabled, didn't help me either. Instead pictures uploaded previously couldn't be found anymore and uploads for avatrs still didn't work. ^^ I guess, for the time being I just leave the Social Profile for good and either have safe_mode disabled or just deal with not having everything working perfectly. Thanks for your help anyway.--79.196.236.186 08:06, 30 December 2008 (UTC)

Fatal Error on Populate
I am getting a fatal error:

Fatal error: Call to a member function fetchObject on a non-object in .../SpecialPopulateExistingUsersProfiles.php on line 46

Anyone else have this problem? Any ideas how to fix this? —The preceding unsigned comment was added by 67.242.231.82 (talk • contribs). Please sign your posts with ~ !


 * Oops...good catch! I've fixed this issue with r45583, please upgrade your version of SocialProfile to that rev or apply the fix manually to fix the fatal error (it's a very trivial fix :-). -- Sayuri 21:02, 8 January 2009 (UTC)

Execute from command line (past solution outdated)
Hi! I'm trying to install this extension for an art page but when I go to install.php it says the script must be run from the command line, I've already checked the the links in the past post (about this same problem) but the pages have changed since and don't include any reference to this issue. Regards!


 * Use PuTTY or some other program to get a SSH connection to your host. Then use the cd</tt> (change directory) command to get into $IP/extensions/SocialProfile</tt> and type php install.php</tt>. If you don't have SSH, you can always create the tables manually (see i.e. Extension talk:SocialProfile/Archive 2 for more info about this). --Jack Phoenix (Contact) 17:38, 6 February 2009 (UTC)

The version r46925 is not compatible with MediaWiki 1.12.0
Hello! I have tested your extension in my website. Because my mediawiki is 1.12.0, your extension went wrong in my website. Some special pages like "Special:GiveGift", "Special:UpdateProfile" and etc. displayed nothing when I first run your extension.

But the problem is solved. If your extention want to be downwards compatibility with 1.12, you need one more global function added to the file "Localsettings.php": And then, change every code "$wgOut->addScriptFile" in your source code files to "addScriptFile". --Alpha3 16:22, 6 February 2009 (UTC)


 * Even easier, upgrade to MediaWiki 1.13 where this function is present in OutputPage class. If you're unable to do that, you can apply r34533 against your installation. Easier (since it's forwards-compatible) than hacking the most of SocialProfile's files. :)


 * It's actually more like a rule than an exception that trunk versions of extensions are incompatible with non-trunk versions of MediaWiki. This is a reason why you should use tagged (or branched, if available) versions of SocialProfile. See tags/extensions/SocialProfile. --Jack Phoenix (Contact) 17:38, 6 February 2009 (UTC)


 * Sorry, I knew nothing about version control, trunk, branch and tag. I am now downloading the version you mentioned. Thank you! --Alpha3 02:39, 7 February 2009 (UTC)

Change Language - and other settings!
Hi! where can I change the language of the extension? Do I have to manually translate every message line in the i18 files? Where do I change any other setting btw? Thanks in advance! —The preceding unsigned comment was added by 201.132.137.238 (talk • contribs). Please sign your posts with ~ !


 * The extension uses the language defined in $wgLanguageCode</tt>. If your language isn't yet supported by SocialProfile, feel free to submit a patch (see How to become a MediaWiki hacker) that adds support for your language. --Jack Phoenix (Contact) 21:18, 13 February 2009 (UTC)

Several modifications in r46925
Hello!

I have updated my MediaWiki to version 1.13.3 in order to test your extension. After 3-day test, several bugs and "FIX ME"s have their solutions, and here are some modifications in the r46925 of the extension:

1.It is better to change every string string "= wfGetDB" to "=& wfGetDB". Otherwise, some database operations will be failed because of the Transaction mechanism. And then, check the functions called in file "*_AjaxFunctions.php" and add  in these functions after the line where update,delete and insert operations are used. It seems that something wrong with the ajax in this version of Mediawiki: When the functions called because of the ajax, the SQL will start transaction of the database but not operate commit command.

2. Move the source displayed below from "UserStatsClass.php" to "SocialProfile.php", or there will be Fata Error when send messeage on someone's user board.

3. To radically solve the problem Could not copy file "C:\xampp\tmp\php49.tmp" to "" in "SpecialUploadAdvatar.php", after the line please add and change every in the function  to The problem will occur when the avatar file is uploaded. Because the OS cannot find command "convert", the thumbnail of the avatar file will not be generated and therefore the function $wgOut->fileCopyError is called.

4. About the file name of the avatars, please do not show database name in it. And here is just my suggestion: why not write a function whose job is to generate, and the other to get the file name?

5. "FIX ME"1: around line 272 in "SpecialUploadAvatar.php", please change to

6. "FIX ME"2: around line 355 in "SpecialUploadAvatar.php", please add after the line

7. "FIX ME"3: around line 367 in "SpecialUploadAvatar.php", one FIX ME says that "Notice: Undefined variable: stash". Why not change every  to  ?

8. JUST ADVICE: around line 424 in "UserStatsClass.php" The number 1000 becomes the "initial point" which is better to be customize by the developer. Why not add paramater ?

Hope these will help! --Alpha3 16:18, 10 February 2009 (UTC)


 * Some thoughts...


 * No. See e.g. r46644 for why. Adding commit calls at the bottom of the transactions is relatively trivial though and can be done, if it's necessary.
 * Need to test it...I've got a wiki running MW 1.13.0 & almost-but-not-quite trunk version of SocialProfile and everything's working there. Granted, the wiki has a null $wgScriptPath but the value of $wgScriptPath hasn't effected UserBoard features in the past.
 * Could you submit this change as a patch? See How to become a MediaWiki hacker for more info about patching.
 * Why would you like the database name removed from avatar filenames? Wikia did this change a while ago and I can port it into trunk easily, but I just haven't seen a reason for doing so yet. :)
 * See 3.
 * See 3.
 * Or define $stash = $this->stash;</tt> ;-) But patches are welcome, as always.
 * 1000 seems like a relatively sane default, but I could add it in that after testing the change and seeing that nothing's fatally broken.


 * Thank you for all the suggestions, they're very much appreciated. --Jack Phoenix (Contact) 21:18, 13 February 2009 (UTC)

Using MediaWiki 1.9.3
Is there an older version of this extension somewhere that I can download for use in MediaWiki 1.9.3? —The preceding unsigned comment was added by 76.121.102.180 (talk • contribs). Please sign your posts with ~ !


 * This extension has never worked with such an old version of MediaWiki and I don't see why you should be staying on 1.9.3 either. It's highly recommented to upgrade to MW 1.13.4 or 1.14rc1. --Jack Phoenix (Contact) 12:10, 21 February 2009 (UTC)

How to add fields to Personal information?
I need to add some more fields to the Personal Information (weird they're not there by default), like phone, mobile, fax etc.