Extension:SocialProfile

Summary
The following package of extensions will incorporate a social profile, user board, and basic profile information into MediaWiki, specifically Avatars, Friending, Foeing, User Board, Board Blast, and basic Profile Information. The package also notifies users via email when other users request them as a friend or foe and/or sends them a message. The package was developed by Wikia, Inc.

Requirements

 * MediaWiki 1.11
 * Yahoo! User Interface Library (included in this package)
 * User Stats Package (included in this package)

Avatars
Users can upload an avatar which will appear on profile pages and user board posts.



Profile Page
Users will have a profile page, which displays friendships with other users, basic profile information, and any public messages they received.



Editing Profile Information
Users can update their profile information with a simple form.



User Board
You can send public or private messages to other users with the User Board. The User Board supports wiki text and also has conversation threads between users.



Board Blast
Users can send messages to multiple friends or foes using Board Blast.



Installation
To install the social profile, please follow the below steps.

Copy All Necessary Files into the Extension Folder
First, copy all files into the extensions folder, maintaining the current file structure. For example:

)

If you install the folder in a different location please change any path references below.

Create database tables
Run the script 'install.php' from the command line (Database superuser has to be mentioned in AdminSettings.php)

LocalSettings.php
Open LocalSettings.php in your favourite text editor and add the following lines:

Add Default Avatar Images
Please move the directory  from   for images used in your MediaWiki installation. This directory should be writeable.

Update MediaWiki source code
Register AJAX functions by editing /includes/AjaxFunctions.php, add the following line (changing path as neccessary)

This code patch will probably be replaced with a hook that is to be created in the near future.

Settings
Some features will not work without additional modifications, but if chosen by the site admin, may be left out.

Friends/Foes
To enable friends/foes to display on the user page, the following additions need to be made to LocalSettings.php:

The following settings should be placed directly under the require_once line:

Board
To enable the Board to display on the user page, allowing users to view messages posted, the following additions need to be made to LocalSettings.php:

The following settings should be placed directly under the require_once line:

Special Page: Populate user profiles
To enable access to the special page Populate User Profiles, the following changes need to be made to SpecialPopulateExistingUsersProfiles.php: (located in the UserProfile folder)

Line 23: The word 'staff' needs to be replaced with an existing usergroup of your choice, say, sysop or bureaucrat or if you don't want to edit this file, just create a staff usergroup (see Manual:User rights) and add yourself into that group to access the special page.

Custom Information
The titles of the custom text input boxes can be changed, via the pages:
 * MediaWiki:Custom-info-field1
 * MediaWiki:Custom-info-field2
 * MediaWiki:Custom-info-field3
 * MediaWiki:Custom-info-field4

Customization of Profile
The user profile allows several custom hooks to inject custom data into the profile. You can add anything above and below both columns of the profile by the following hooks:

Licensing and downloads
The extension is available under the GNU General Public License 2.0 or later, and can be downloaded from MediaWiki SVN:
 * http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/SocialProfile/

The software is provided as-is. Updates will be made when critical vulnerabilities are discovered.