Jump to content

Extension talk:SocialProfile/Archive 1

Add topic
From mediawiki.org

Could not get it to work

[edit]

I followed the orders precisely on fresh 1.1.1 mediawiki install and got this:

Fatal error: Cannot redeclare wfspecialaddrelationship() (previously declared in
/************/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationshi p.php:20) in 
/************/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php on line 256
This extension is still being worked on. It should not yet be considered stable. Siebrand 08:05, 3 March 2008 (UTC)Reply


Affirmative?

[edit]

Are you sure? If you are right, the tagging of these extension as stable needs revision!

I've just taken time & time to configure it work! Yes, it seem not stable, I've done many small works, luckily i'm successful because i'm a developer :-|

Same Error

[edit]

Hello, I get the same error during install:

Fatal error: Cannot redeclare wfspecialaddrelationship() (previously declared in /Library/WebServer/Documents/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php:20) in /Library/WebServer/Documents/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php on line 256

Database prefix getting repeated

[edit]

Hi - there is a comment in UserRelationship/UserRelationshipClass.php: '"For some reason in this function, if you add $wgDBprefix before user_relationship it adds it twice." I'm seeing that problem also in userHasRequestByID() and addRelationshipRequest() (and I think there are other cases as well). Jlerner 02:58, 20 March 2008 (UTC)Reply

Prefixes are also causing an issue for me (version download from SVN 8th April). I've been slowly going through both UserRelationship and also Boards as neither seem to work when $wgDBprefix is set Jarrod 10th April 2008

Got it working (partially)

[edit]

Hello, thanks for the great contribution to the community! I've got it working partially (I can input profile information), but have run into a few issues. Hopefully you can help.

Issue 1: Upload Avatar

[edit]

When I go to upload an avatar picture I get the following error: Fatal error: Call to undefined function wfimagearchivedir() in D:\Program Files\xampp163\htdocs\wiki\extensions\SocialProfile\UserProfile\SpecialUploadAvatar.php on line 352

Issue 2: User Board

[edit]

I cannot see User Board messages or a way to create them. SocialProfile is configured as:

$wgUserProfileDisplay['board'] = true;

Issue 3: User Relationships

[edit]

I cannot see User Relationships or a way to manage them. SocialProfile is configured as:

$wgUserProfileDisplay['foes'] = true; $wgUserProfileDisplay['friends'] = true;

Hope you can help and thanks again!

wont work here too

[edit]

I also followed all of the Installation steps, but if I try to connect the wiki page all I get is this:

Fatal error: Class 'UnlistedSpecialPage' not found in ...htdocs\mediawiki-1.11.2\extensions\SocialProfile\UserProfile\SpecialUpdateProfile.php on line 13

tried some things but couldn`t get it fixed, anybody got an Idea oder a solution?

EDIT: solved that problem by adding

D:\wiki\htdocs\mediawiki-1.11.2\images\avatars

at the beginn of the files. its working partially now.

Running MediaWiki on Windows qualifies as a Bad Idea™ in my book. Linux is much easier (and cheaper, too). --Sayuri 13:02, 4 April 2008 (UTC)Reply

Can't access "Populate User Profiles"

[edit]

Beside some exceptions I got the extension working so far. But I am not allowed to access the SpecialPage "Populate User Profiles".

Trying to access throws an Permission error.

Anybody an idea? —The preceding unsigned comment was added by 194.76.239.153 (talkcontribs) . Please sign your posts with ~~~~!

Yes. Look at line 23 of /extensions/SocialProfile/UserProfile/SpecialPopulateExistingUsersProfiles.php. It is if( !in_array( "staff", $wgUser->getGroups()) ){ - you need to change staff to 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. --Sayuri 12:59, 4 April 2008 (UTC)Reply

Command line?

[edit]

Hey guys, I already did all what the dokumentation says, (Uploading, editing localsettings.php, etc.), but when I try to run "install.php" in my browser it just says: "This script must be run from the command line". So, what to do now?
And one more question, it says, requirements are [...]Yahoo! User Interface Library [...] What should I do with that? Nothing to install in my wiki, isn't it? :) Thanks for answering 82.210.249.4 13:59, 4 April 2008 (UTC)Reply

You don't access install.php through the browser, you access it through a command line. And you need a shell account to run install.php from the command line. If you don't have a shell account but you have, for example, phpMyAdmin, you can create the tables through it too.
Yahoo! User Interface Library (YUI) is included with this package: see /SocialProfile/YUI/YUI.php. However, the inclusion of yui.js is a bit buggy, so I suggest that you edit /SocialProfile/YUI/YUI.php and change the relative path in line 17 of YUI.php to a full path. So, $wgOut->addScript("<script type=\"text/javascript\" src=\"/extensions/SocialProfile/YUI/yui.js\"></script>\n"); would become something like $wgOut->addScript("<script type=\"text/javascript\" src=\"http://wiki.example.com/extensions/SocialProfile/YUI/yui.js\"></script>\n"); or such. --Sayuri 14:21, 4 April 2008 (UTC)Reply
Thanks for that hint, I created the tables manually now, also I edited the line in the YUI.php. But now there is a problem with the "Special:"-Pages. The User-Page is no problem, but when I try to navigate to any "edit"-link, or try to visit any other "Special:"-page I get an error like "Fatal error: Cannot redeclare wfspecialaddrelationship() (previously declared in /www/htdocs/v129521/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php:20) in /www/htdocs/v129521/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php on line 256" or "Fatal error: Class 'SpecialUpdateProfile' not found in /www/htdocs/v129521/wiki/includes/SpecialPage.php on line 321"
The previous messages here shows me, that the problem is a common one, but I found no solution yet =/ Would be great if someone could help me :) I don't know, if it is advertising or something else, but for a closer look, the wiki, and especially the user-site, is here (german). Thanks for all :) 91.1.207.188 14:54, 6 April 2008 (UTC)Reply
It works for me, but I'm using the latest version of SocialProfile. Did you download the extension from SourceForge? That could explain it, as SpecialAddRelationship.php should be only 225 lines long. If you downloaded it from SourgeForge (as I presume you did), ditch that version and download it from SVN. Do note that the trunk version of SocialProfile requires MediaWiki 1.11 — if your wiki is running 1.10, I suggest updating it. --Sayuri 15:50, 6 April 2008 (UTC)Reply
That was the solution, thank you very much. Now it works, it's kinda buggy, and there's still some work, but now I think I can handle this :) Thank you very much :) kleinPhi (91.1.207.188 17:41, 6 April 2008 (UTC))Reply
Please let me know (either on my talk page or here) how it goes and if you need more help. --Sayuri 10:53, 7 April 2008 (UTC)Reply
Ok, just a small summary of the things, I recognized first: On the profile-page there are the spaces missing between the parameter-names and the values (see here), and when you try to edit the profile, you have the entries with "city" and "country" twice, but in the profile-page there is no entry for city, but two for country (but both labeled as "city"... "Ort" and "Stadt" is in german nearly the same and means "city" in these cases...) (click). And some kind of stylesheet or something else is missing, I think it looks not very nice ^^
Hope I could help you, I try to fix these things for me now. Hope I get this :). Greets, kleinPhi (82.210.249.4 11:53, 7 April 2008 (UTC))Reply
Found something new: Everywhere you have a button to return to the mainpage, you link to title=Main_page. So I don't know, if it is in my wiki only, but I think it is because of the german wiki-installation, and the link should be title=Hauptseite there, that I get an error everytime (and rewrite_mod is off, there is no autmatic redirect in my wiki). Perhabs you can fix it, when the code <input type=\"button\" class=\"site-button\" value=\"".wfMsg("ur-main-page")."\" size=\"20\" onclick='window.location=\"index.php?title=Main_page\"' /> "; is linking to something like index.php?title=".wfMsg("ur-main-page") ... I don't know, but perhaps that would help (: 82.210.249.4 12:17, 7 April 2008 (UTC)Reply

I'm so sorry, but I found something again ^^ When you send a friendrequest to someone, and after that this user want to make that other person to his friend over the same way, than he gets the message Blabla wnats to be your friend + the customized message of the other user (on Spezial:ViewRelationshipRequests). But the Buttons there are not working, neither Accept nor Decline. 82.210.249.4 12:21, 7 April 2008 (UTC)Reply

Yes, I've encountered some of those problems too. Have you patched MediaWiki's source code? Specifically, you need to add three lines into includes/AjaxFunctions.php. The CSS & JS inclusion for some reason is quite buggy...a rather hack-ish way to "fix" it is to add the appropriate CSS and JS into your wiki's MediaWiki:Common.css and MediaWiki:Common.js pages respectively. So, copy the CSS from extensions/SocialProfile/UserRelationship/UserRelationship.css, extensions/SocialProfile/UserBoard/BoardBlast.css, extensions/SocialProfile/UserBoard/UserBoard.css and extensions/SocialProfile/UserProfile/UserProfile.css into your wiki's MediaWiki:Common.css. That will solve the style issues.
...and then there is the JavaScript. Copy the JS from extensions/SocialProfile/UserRelationship/UserRelationship.js, extensions/SocialProfile/UserBoard/BoardBlast.js, extensions/SocialProfile/UserProfile/UpdateProfile.js and extensions/SocialProfile/UserProfile/UserProfilePage.js to your wiki's MediaWiki:Common.js. After all this is done, the pages should look nice and you should be able to accept / decline friend or foe requests and send board messages.
As I sadly don't have commit access (well, yet anyway), I cannot fix anything in the SVN source code. But I've asked iAlex to look into this extension — I'm sure he can fix whatever there is to fix. ;-) --Sayuri 14:14, 7 April 2008 (UTC)Reply
An alternative to putting the css and javascript into common is to put an absolute url to the following variables - $wgUserBoardScripts; $wgUserProfileScripts; $wgUserRelationshipScripts - in SocialProfile.php helps make it work. --Jarrod 10th April

How to apply the look?

[edit]

the extension is working so far, at least the profiles are wachable and can be changed but they dont look like in the screeshots. it looks like:

<other-info-tv>tv <other-info-music>music <other-info-books>books <other-info-video-games>Pong <other-info-magazines>magazine <other-info-snacks>food <other-info-drinks>drink

its just code, how can I apply the template to it so it looks like in the screenshots?

Seems that the i18n files aren't being loaded properly for some reason. --Sayuri 15:50, 6 April 2008 (UTC)Reply
aren't this files loaded within the SocialProfile.php? Or is there any other point in the code where I have to reference it? --Demagggus 13:45, 7 April 2008 (UTC)Reply
Should be, anyway. --Sayuri 14:14, 7 April 2008 (UTC)Reply

Similar Issue

[edit]

I also am able to install and get some basic functionality. However the look isn't anything like the screenshots. Instead I get the below list of properties. How can I get this to look correct? (I'm using MW 1.12)

  • UserName
  • Contributions | Wiki userpage
  • Custom information
  • Custom 1test 1
  • Custom 2custom 2
  • Other information
  • Moviesmovie1, movie2
  • Personal information
  • Real nameJT
  • LocationThe Emerald City,
  • OccupationStudent
  • About melots of text about me ... text text text text text text
Please see #Command line? above. Applying the CSS / JS into MediaWiki:Common.css & MediaWiki:Common.js is a rather hack-ish solution, but it works. As Jarrod said above, setting $wgUserBoardScripts; $wgUserProfileScripts and $wgUserRelationshipScripts to an absolute value in SocialProfile.php might be able to fix that, too. --Sayuri 11:56, 11 April 2008 (UTC)Reply

Problems installing on MW 1.11

[edit]

Hi, great idea to do this one. I just tried installing it on MW 1.11 and ran into some problems:

  1. The package from SourceForge doesn't contain the files in the root directory (install, install.settings and socialprofile.php)
  2. The install.php file said that all four tables have been created:
    • The table 'user_board' has been set up correctly.
    • The table 'user_profileard' has been set up correctly.
    • The table 'user_stats' has been set up correctly.
    • The tables 'user_relationship', and 'user_relationship_request' have been set up correctly.
    But user_profileard wasn't created until I copied the sql code from the sql file in the folder.
  3. My profile page is displayed, but when trying to edit the profile it says:
    • Fatal error: Class 'SpecialUpdateProfile' not found in /var/www/sapschul/includes/SpecialPage.php on line 316
    When trying to upload a picture it says:
    • Fatal error: Class 'SpecialUploadAvatar' not found in /var/www/sapschul/includes/SpecialPage.php on line 316
  4. What are the hooks for? Do I need them? --Flominator 09:38, 8 April 2008 (UTC)Reply

Hi Flominator, here are a couple answers:

  1. SourceForge is outdated. Use SVN download instead. You only need the SourceForge package for the avatars directory plus the images inside it.
  2. Table user_profileard? It should be just 'user_profile'...
  3. That's a rather strange error, I never had such under MW 1.11. Did you install it from SourceForge? If so, dump the SF files and use the SVN version instead, as it's more up-to-date.
  4. Hooks can be used to add more stuff to the profiles, for example. If you don't use them, you don't need to pay them any special attention. --Sayuri 13:30, 8 April 2008 (UTC)Reply

Notice: Undefined property: stdClass::$stats_currency

[edit]

Anybody an idea, why this Notice appears? I can't detect any mistake!?! --Demagggus 11:19, 8 April 2008 (UTC)Reply

Some Problems

[edit]

When I try to upload an avatar I get the following:

Warning: Invalid argument supplied for foreach() in /www/htdocs/w008ec1f/wiki/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378 Internal Error The file „/tmp/php8hGx8D“ could not be copied to „“.

Any solutions on this? --78.48.150.39 15:12, 10 April 2008 (UTC)Reply

Are you using an old version of SocialProfile package perhaps? I know this error happened in the older releases, but haven't seen it on the trunk version of SocialProfile. --Sayuri 14:26, 10 April 2008 (UTC)Reply
I've just been getting the same internal error, and it was because I didn't have imagemagick installed. It's used in upload to create thumbnails of the avatar Jarrod 10th April 2008


OK, I fixed it by putting an avatar folder in /images/ but that Error is still there: Warning: Invalid argument supplied for foreach() in /www/htdocs/w008ec1f/wiki/extensions/SocialProfile/UserStats/UserStatsClass.php
Now I got a new problem: When I try to add someone as a friend this appears:
Fehler in der Datenbank
Es gab einen Syntaxfehler in der Datenbankabfrage. Die letzte Datenbankabfrage lautete:
   (SQL-Abfrage versteckt)
aus der Funktion „UserRelationship::userHasRequestByID“. MySQL meldete den Fehler „1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`` WHERE ur_user_id_to = '3' AND ur_user_id_from = '1' AND ur_status = '0' LIM' at line 1 (localhost)“.
And when I insert a message on a board and press send, nothing happens.
Any solution?--78.48.150.39 15:12, 10 April 2008 (UTC)Reply

Board and relationship issue

[edit]

Hello everyone

As far as i saw, this extension is fantastic. However i ve qome issue with the social functionalities

  • when i try to send a message on a member borad (public or private) clicking the "send" button has no effects
  • A friend of mine added me as a "friend" by clicking on the link he recieved. But the data was not entered in the sql DB (table user_relationship i guess)

On my profile, il don't see the "friends" box as i should according the screenshot There is also a problem with the board because, istead of seing "No message" i see "<userboard_nomessages>" as you can see here

Thank you in advance for your help

--Roulion 17:15, 14 April 2008 (UTC)Reply

I've encountered the problem with send button not having any effect...try copying extensions/SocialProfile/UserProfile/UserProfilePage.js into your wiki's MediaWiki:Common.js and see if that helps.
If you don't see friends on the profile page, try adding this to LocalSettings.php and see if it helps:
$wgUserProfileDisplay['friends'] = true;
The issue with messages being loaded is sadly present in there...neither iAlex or I could figure out what causes it. The simplest solution, for now, is to create MediaWiki:Userboard_nomessages and other messages that show up as <message_name>. It's a rather hacky workout, but hey, it works. ;-) --Sayuri 17:55, 14 April 2008 (UTC)Reply

Well I applied all the "readme" instructions and the functions (posting messages) works

By the way there still are 2 issues

  • the Friends/foes borad dosen't appear despite the LocalSettings options
$wgUserProfileDisplay['friends'] = true;
$wgUserProfileDisplay['foes'] = true;
  • the i18n files forthe board message aren't taken into account

=> if i miodify the UserBoardClass.php file, line 62-63

	public function sendBoardNotificationEmail($user_id_to,$user_from){

require_once( "UserBoard.i18n.php" ); with

	public function sendBoardNotificationEmail($user_id_to,$user_from){

require_once( "/extensions/SocialProfile/UserBoard/UserBoard.i18n.php" );

The messages are OK (with the good translation) but the AJAX function doesn't work prperly... :-/


--Roulion 20:42, 14 April 2008 (UTC)Reply

Dunno why the friends & foes wouldn't appear...works for me. Perhaps you could try setting it from SocialProfile.php? Reportedly that doesn't work, but it's worth a shot. ;-)
There are some hardcoded messages, but as far as I know, most of them have been removed, but some are still there as they're very hard to fix...such as "posted xx minutes ago" - at least the "minutes", "hours" etc. are hardcoded. But otherwise it should be quite i18n-able. --Sayuri 21:09, 14 April 2008 (UTC)Reply

Gotcha. By adding directly in a require_once() functin in LocalSettings, you can fix it

require_once ( "$IP/extensions/SocialProfile/UserRelationship/UserRelationship.i18n.php" );
require_once ( "$IP/extensions/SocialProfile/UserBoard/UserBoard.i18n.php" );
require_once ( "$IP/extensions/SocialProfile/UserProfile/UserProfile.i18n.php" );

Then empty your cache and it should be ok --Roulion 21:30, 14 April 2008 (UTC)Reply

Can anyone help to get this running on MW 1.11 / 1.12?

[edit]

Hi, I get the same error as many others:

Fatal error: Cannot redeclare wfspecialaddrelationship() (previously declared in
/************/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationshi p.php:20) in 
/************/wiki/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php on line 256

If anybody was successful in installing this awesome extension in a current MW environment, can you pleae give a hand on this?

Any support is greatly appreciated...

thx Dominik

Hi Dominik, sounds to me that you're running an outdated version of this package, downloaded from SourceForge? If so, pleae download SocialProfile from the official SVN, it's been greatly improved and shouldn't have this bug. --Sayuri 21:09, 14 April 2008 (UTC)Reply

Extension fix

[edit]

I achieved to make the extension work properly. I's not very clean but it looks to work


Step 1 In LocalSettings.php add

require_once("$IP/extensions/SocialProfile/SocialProfile.php");//[http://www.mediawiki.org/wiki/Extension:SocialProfile]
$wgExtraNamespaces[NS_USER_PROFILE] = "User_profile";
$wgExtraNamespaces[NS_USER_WIKI] = "UserWiki";
$wgUseAjax = true;
$wgUserProfileDisplay['friends'] = true;
$wgUserProfileDisplay['foes'] = true;


$wgUserBoardScripts = "/extensions/SocialProfile/UserBoard";
require_once("$IP/extensions/SocialProfile/UserBoard/SpecialUserBoard.php");
require_once("$IP/extensions/SocialProfile/UserBoard/SpecialSendBoardBlast.php");
$wgAutoloadClasses["UserBoard"] = "$IP/extensions/SocialProfile/UserBoard/UserBoardClass.php";
$wgUserProfileDisplay['board'] = true;

/******If YUI js is not already being included*******/
$wgUseAjax = true;
require_once("$IP/extensions/SocialProfile/YUI/YUI.php");

/******If UserStats is not already registered*******/
$wgAutoloadClasses["UserStats"] = "$IP/extensions/SocialProfile/UserStats/UserStatsClass.php";
require_once("$IP/extensions/SocialProfile/UserStats/UserStatsClass.php");

$wgUserRelationshipScripts = "/extensions/wikia/UserRelationship_opensource";
require_once("$IP/extensions/SocialProfile/UserRelationship/SpecialAddRelationship.php");
require_once("$IP/extensions/SocialProfile/UserRelationship/SpecialRemoveRelationship.php");
require_once("$IP/extensions/SocialProfile/UserRelationship/SpecialViewRelationshipRequests.php");
require_once("$IP/extensions/SocialProfile/UserRelationship/SpecialViewRelationships.php");
$wgAutoloadClasses["UserRelationship"] = "$IP/extensions/SocialProfile/UserRelationship/UserRelationshipClass.php";
$wgUserProfileDisplay['friends'] = true;
$wgUserProfileDisplay['foes'] = true;

/******If UserStats is not already registered*******/
$wgAutoloadClasses["UserStats"] = "$IP/extensions/SocialProfile/UserStats/UserStatsClass.php";

/******If YUI js is not already being included*******/
$wgUseAjax = true;
require_once("$IP/extensions/SocialProfile/YUI/YUI.php");

$wgUserProfileDirectory = "$IP/extensions/SocialProfile/UserProfile";
$wgUserProfileScripts = "/extensions/SocialProfile/UserProfile";

$wgAutoloadClasses["UserProfile"] = "{$wgUserProfileDirectory}/UserProfileClass.php";
$wgAutoloadClasses["wAvatar"] = "{$wgUserProfileDirectory}/AvatarClass.php";

require_once( "{$wgUserProfileDirectory}/SpecialUpdateProfile.php" );
require_once( "{$wgUserProfileDirectory}/SpecialUploadAvatar.php" );
require_once( "{$wgUserProfileDirectory}/SpecialToggleUserPageType.php" );
require_once( "{$wgUserProfileDirectory}/SpecialPopulateExistingUsersProfiles.php" );
require_once( "{$wgUserProfileDirectory}/UserProfile.php" );
require_once ( "$IP/extensions/SocialProfile/UserRelationship/UserRelationship.i18n.php" );
require_once ( "$IP/extensions/SocialProfile/UserBoard/UserBoard.i18n.php" );
require_once ( "$IP/extensions/SocialProfile/UserProfile/UserProfile.i18n.php" );


Step 2

In Include/AjaxFinctions/php add at the end of the file

global $IP;
require_once ("$IP/extensions/SocialProfile/UserRelationship/Relationship_AjaxFunctions.php" );
require_once ( "$IP/extensions/SocialProfile/UserRelationship/UserRelationship.i18n.php" );
require_once ( "$IP/extensions/SocialProfile/UserBoard/UserBoard.i18n.php" );
require_once ( "$IP/extensions/SocialProfile/UserProfile/UserProfile.i18n.php" );
require_once ("$IP/extensions/SocialProfile/UserBoard/UserBoard_AjaxFunctions.php" );

Step 3 In your Mediawiki:Common.css page, add :

/*@import url("http://www.afterfoot.com/wikifoot/extensions/SocialProfile/UserBoard/UserBoard.css");*/
.cleared {
	clear:both;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */

#user-page-board {
	margin:5px 0px 10px 0px;
}

.user-board-top-links {
	font-weight:bold;
	margin:15px 0px 0px 0px;
}

.user-board-top-links a {
	text-decoration:none;
}

.user-page-message-form {
	margin:5px 0px 15px 0px;
	font-weight:bold;
}

.user-board-message {
	border:1px solid #D4DFD7;
	margin:0px 0px 15px 0px;
}

.user-board-message-from {
	background-color:#EFF3F0;
	padding:3px 0px 5px 5px;
}

.user-board-message-from a {
	font-size:14px;
	text-decoration:none;
	font-weight:bold;
}

.user-board-message-content {
	padding:5px;
}

.user-board-message-time {
	font-size:11px;
	color:#797979;
	margin:2px 0px 0px 5px;
}

.user-board-message-image {
	float:left;
	margin:0px 10px 0px 0px;
}

.user-board-message-image img {
	border:1px solid #dcdcdc;
}

.user-board-message-body {
	float:left;
	margin:0px 10px 0px 0px;
	vertical-align:top;
	width:90%;
}

.user-board-message-body p {
	margin:0px 0px 0px 0px !important;
}

.user-board-message-links {
	padding:0px 0px 5px 5px;
}

.user-board-message-links a {
	font-size:11px;
	text-decoration:none;
	margin:0px 10px 0px 0px;
}

.user-board-red a {
	color:#ff0000;
}

select#message_type {
	vertical-align:middle;
	margin:-1px 0px 0px 5px;
}

.user-page-message-form textarea {
	width:80%;
}

/*@import url("http://www.afterfoot.com/wikifoot/extensions/SocialProfile/UserBoard/BoardBlast.css");*/
.cleared {
	clear:both;
}

.clearfix:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */

.blast-friends-list {
}

#blast-friends-list div.blast-friend-selected, #blast-friends-list div.blast-foe-selected {
	background-color:#FFFCA9;
	border:1px solid #FDC745;
	color:#002BB8;
	font-weight:bold;
	padding:3px;
	overflow:hidden;
	margin:0px 3px 3px 0px;
	float:left;
	cursor:pointer;
	width:200px;
	overflow:hidden;
	font-weight:bold;
	padding:4px;
	height:17px;
}

#blast-friends-list div.blast-friend-unselected, #blast-friends-list div.blast-foe-unselected {
	border:1px solid #dcdcdc;
	color:#285C98;
	font-weight:bold;
	padding:3px;
	overflow:hidden;
	margin:0px 3px 3px 0px;
	float:left;
	cursor:pointer;
	width:200px;
	overflow:hidden;
	font-weight:bold;
	padding:4px;
	height:17px;
}

.board-blast-message-form {
	margin:8px 0px 0px 0px;
}

.blast-nav {
	margin:0px 0px 12px 0px;
	font-size:12px;
}

.blast-nav a {
	color:#999999;
}

.blast-nav-text {
	margin:0px 0px 5px 0px;
}

.blast-message-box-button {
	padding:10px 0px 0px 0px;
}

.blast-message-text {
	color:#999999;
	font-weight:bold;
	font-size:12px;
	margin:0px 0px 3px 0px;
}

.board-blast-message-form h2 {
	color:#333333;
	margin:0px 0px 10px 0px !important;
}

.blast-nav h2 {
	color:#333333;
	margin:15px 0px 10px 0px !important;
}


/*@import url("http://www.afterfoot.com/wikifoot/extensions/SocialProfile/UserProfile/UserProfile.css");*/
.cleared {
	clear:both;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */

.firstHeading {
	border-bottom:none;
	margin:0px !important;
	display:none;
}

.pagetitle {
	display:inline !important;
}

#main {
	padding:0px 0px 0px 0px !important;
}

#user-page-left {
	width:35%;
	float:left;
}

#user-page-right {
	float:right;
	width:60%;
}

#user-page-left h2, #user-page-right h2 {
	border-bottom:1px solid #dcdcdc;
	padding:0px 0px 3px 0px;
	margin:0px 0px 5px 0px;
	font-size:17px;
	letter-spacing:-1px;
	color:#333;
}

.no-info-container {
	margin:10px 0px 20px 0px;
	background-color:#F2F4F7;
	padding:20px;
	text-align:center;
	color:#777;
}

.item-small {
	color:#999;
	font-size:9px;
	margin:0px 0px 0px 6px;
}

.user-section-heading {
	background:url('http://images.wikia.com/common/wikiany/images/title_line.gif?1') repeat-x scroll 0px 80%;
	width:100%;
	line-height:22px;
	margin:0px 0px 8px 0px;
}

.user-section-title {
	background-color:#FFFFFF;
	float:left;
	font-size:20px;
	letter-spacing:-1px;
	padding:0px 10px 0px 0px;
}

.user-section-actions {
	position:relative;
	right:0px;
	top:-2px;
}

.action-right {
	float:right;
	font-size:10px;
	padding:0px 5px 0px 0px;
}

.action-left {
	float:left;
	font-size:10px;
}

.user-section-actions a {
	text-decoration:none;
}

/**Profile Top**/

#profile-top {
	background-color:#fff;
	border-bottom:1px solid #D4DFD7;
	padding:10px 0px;
	margin:0px 0px 20px 0px;
	position:relative;
}

#profile-title-container {
	padding:0px 0px 6px 6px;
}

#profile-title {
	float:left;
	font-size:2em;
	line-height:26px;
	font-weight:bold;
	margin:0px 15px 0px 0px;
}

#points-level {
	float:left;
	font-size:11px;
	background-color:#CC0000;
	padding:1px 5px;
	margin:4px 8px 0px 0px;
	text-align:center;
}

#honorific-level {
	float:left;
	margin:4px 0px 0px 0px;
	font-size:12px;
}

#honorific-level a {
	text-decoration:none;
}

#points-level a {
	text-decoration:none;
	font-weight:bold;
	color:#fff;
}

#profile-image {
	position:relative;
	float:left;
	margin:0px 8px 0px 0px;
}

#profile-image img {
	border:1px solid #dcdcdc;
	background-color:#fff;
	padding:3px;
}

#profile-right {
	float:left;
	position:relative;
}

.profile-actions a {
	text-decoration:none;
	font-weight:bold;
	margin:0px 6px;
}

/**User-Relationship**/
.user-relationship-container {
	padding:0px 0px 25px 0px;
}

.user-relationship-container a {
	text-decoration:none;
	display:block;
	float:left;
	margin:5px 10px 0px 0px;
}

.user-relationship-container img {
	padding:3px;
	border:1px solid #dcdcdc;
	background-color:#fff;
}

/**User-Gift / User-Awards**/
.user-gift-container {
	padding:0px 0px 25px 0px;
}

.user-gift-container a {
	text-decoration:none;
	display:block;
	float:left;
	margin:5px 10px 0px 0px;
}

.user-gift-container img {
	padding:3px;
	border:1px solid #dcdcdc;
	background-color:#fff;
}

/**Fanboxes**/
.user-fanbox-container {
	padding:0px 0px 25px 0px;
}


/**User Activity**/
.activity-item {
	border-bottom:1px solid #dcdcdc;
	padding:7px 0px;
}

.activity-item-bottom {
	padding:7px 0px 0px 0px;
}

.activity-item img, .activity-item-bottom img {
	vertical-align:middle;
	margin:0px 5px 0px 0px;
}

.activity-item a, .activity-item-bottom a {
	text-decoration:none;
}

.item {
	color:#666;
	margin:5px 25px;
}

.item a {
	font-weight:bold;
}

#recent-all {
	padding:0px 0px 25px 0px;
}

/**Message Board**/
#user-page-board {
	margin:5px 0px 10px 0px;
}

.user-page-message-form {
	margin:5px 0px 15px 0px;
	font-weight:bold;
}

.user-board-message {
	border:1px solid #e2e2e2;
	margin:0px 0px 15px 0px;
}

.user-board-message-from {
	background-color:#F8F5F5;
	padding:3px 0px 5px 5px;
}

.user-board-message-from a {
	font-size:14px;
	text-decoration:none;
	font-weight:bold;
}

.user-board-message-content {
	padding:5px;
}

.user-board-message-time {
	font-size:11px;
	color:#797979;
	margin:2px 0px 0px 5px;
}

.user-board-message-image {
	float:left;
	padding:0px 10px 5px 0px;
}

.user-board-message-image img {
	border:1px solid #dcdcdc;
}

.user-board-message-body {
	margin:0px 10px 0px 0px;
}

.user-board-message-body p {
	margin:0px 0px 0px 0px !important;
}

.user-board-message-links {
	padding:0px 0px 5px 5px;
}

.user-board-message-links a {
	font-size:11px;
	text-decoration:none;
	margin:0px 10px 0px 0px;
}

.user-board-red a {
	color:#ff0000;
}

/**Profile Data**/
.profile-info-container {
	padding:0px 0px 17px 0px;
}

.profile-info-container b {
	color:#555;
	margin:0px 10px 0px 0px;
}

.profile-info-container div {
	margin:0px 0px 8px 0px;
	color:#666;
}

.bold-fix b {
	margin:0px 5px 0px 0px !important;
}

/**Casual Games**/
.casual-game-container {
	padding:0px 0px 18px 0px;
}

.casual-game-container p {
	margin:0px 0px 0px 0px !important;
	padding:7px 0px !important;
	border-top:1px solid #dcdcdc;
}

.casual-game-container .item-top {
	border:none;
}

.casual-game-container a {
	text-decoration:none;
	font-weight:bold;
}

.casual-game-container .item-type {
	font-size:9px;
	margin:0px 0px 0px 6px;
}

.casual-game-container img {
	border:1px solid #dcdcdc;
	padding:3px;
	background-color:#fff;
	vertical-align:middle;
	margin:0px 3px 0px 0px;
}

/**User Articles**/
.user-articles-container {
	padding:0px 0px 23px 0px;
}

.article-item {
	margin:0px 0px 0px 0px;
	padding:7px 0px 2px 0px;
	border-top:1px solid #dcdcdc;
}

.user-articles-container a {
	text-decoration:none;
	font-weight:bold;
}

.article-item-top {
	margin:0px 0px 0px 0px;
	padding:7px 0px 2px 0px;
	border:none;
}

.number-of-votes {
	margin:0px 10px 3px 0px;
	text-align:center;
	float:left;
	width:25px;
}

.vote-number {
	background-color:#89C46F;
	color:#FFFFFF;
	font-size:12px !important;
	margin:0px 0px 2px 0px;
	font-weight:bold;
	height:25px;
	line-height:25px;
}

.vote-text {
	margin:-1px 0px 0px 0px;
	font-size:9px;
	color:#777;
	line-height:9px;
}

.article-title {

}

/**Pictures**/

.picture-container-spacer {
	height:25px;
	width:100%;
}

.picture-container .mini-image {
	float:left;
	margin:5px 10px 0px 0px;
}

.picture-container img {
	background-color:#fff;
	padding:3px;
	border:1px solid #dcdcdc;
}

.picture-container a {
	text-decoration:none;
}

.upload-container {
	clear:left;
	height:90px;
	margin-left:-5px;
}

.upload-frame-errors {
	margin:10px 0px 5px 0px;
	color:red;
	font-size:14px;
	font-weight:bold;
}

.no-pictures-container {
	color:#777777;
	margin:10px 0px 0px;
	padding:20px;
	text-align:center;
	background-color:#EFF3F0;
}

.upload-frame-errors {
	display:none;
}

.imageUpload-frame {
	height:90px;
	width:425px;
}

/**Sports Networks **/
.network-container {
	padding:0px 0px 22px 0px;
}

.network {
	margin:0px 0px 3px 0px;
}

.network img {
	margin:0px 5px 0px 0px;
	vertical-align:middle;
}

.network a {
	text-decoration:none;
}

.status-message-add a {
	color:#999;
	font-size:10px;
}

.status-update-box {
	margin:10px 0px 10px 0px;
}

#status-text input {
	font-size:10px;
	width:200px;
}

/**Status**/
.status-container {
	padding:0px 0px 20px 0px;
}

.status-message img {
	vertical-align:middle;
	margin:0px 5px 0px 0px;
}

.user-status-date {
	margin:0px 6px 0px 0px;
	color:#999;
	font-size:9px;
}

.user-status-profile-vote {
	color:#666;
}

.user-status-profile-vote a {
	text-decoration:none;
	font-size:9px;
}

/** Update Profile **/
.profile-info {
	background-color:#fff;
	padding:25px 0px;
}

.profile-update {
	padding:0px;
}

.profile-tab-bar {
	margin-top:20px;
}

.profile-tab {
	float:left;
	background-color:#68BD46;


	height:22px;
	min-width:72px;
	padding:6px 5px 0px 5px;
	margin:0px 5px 0px 0px;
	text-align:center;
}

.profile-tab-on {
	background-color:#466C2C;
	float:left;
	height:22px;
	color:#ffffff;
	font-size:12px;
	min-width:72px;
	font-weight:bold;
	padding:6px 5px 0px 5px;
	margin:0px 5px 0px 0px;
	text-align:center;
}

.profile-tab-on a, .profile-tab a {
	color:#fff;
	font-weight:normal;
	text-decoration:none;
}

.profile-tab a:hover {
	color:#466C2C;
}

.profile-update-button {
	background-color:#78BA5D;
	border:1px solid #6B6B6B;
	color:#ffffff;
	font-size:13px;
	padding:3px;
}

.profile-update-title {
	font-size:16px;
	color:#333;
	margin:0px 0px 5px 0px !important;
	font-weight:bold;
}

.profile-update-title img {
	vertical-align:middle;
	margin:-3px 0px 0px 5px;
}

.profile-update-unit-left {
	color:#797979;
	font-weight:bold;
	font-size:12px;
	float:left;
	width:150px;
}

.profile-update-unit {
	float:left;
	width:450px;
}

.profile-update-unit-small {
	float:left;
	width:450px;
	font-size:10px;
	color:#797979;
}

.profile-update-row {
	color:#797979;
	font-weight:bold;
	font-size:12px;
}

.profile-update-links {
	margin:0px 0px 10px 0px;
	font-weight:bold;
}

.profile-update-links a {
	text-decoration:none;
}

.profile-status {
	background-color:#FFFB9B;
	font-weight:bold;
	padding:0px 5px 0px 5px;
}

.profile-on {
	background-color:#FFFB9B;
	border:1px solid #FDC745;
	font-weight:bold;
	padding:1px 5px 1px 5px;
}

#profile-toggle-button {
	position:absolute;
	top:5px;
	right:0px;
	background-color:orange;
	padding:2px 10px;
}

#profile-toggle-button a {
	color:#fff;
	font-weight:bold;
}


/*@import url("http://www.afterfoot.com/wikifoot/extensions/SocialProfile/UserRelationship/UserRelationship.css");*/
.cleared {
	clear:both;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */

.back-links {
	margin:0px 0px 10px 0px;
}

.back-links a {
	text-decoration:none;
	font-weight:bold;
}

.relationship-count {
	margin:0px 0px 15px 0px;
}

.relationship-item {
	border:1px solid #D7DEE8;
	padding:7px;
	float:left;
	margin:0px 15px 15px 0px;
	width:350px;
}

.relationship-item a {
	text-decoration:none;
}

.relationship-item img {
	border:1px solid #dcdcdc;
	background-color:#fff;
	padding:3px;
	display:block;
	float:left;
	margin:0px 10px 0px 0px;
}

.relationship-name {
	font-size:14px;
	font-weight:bold;
	margin:0px 0px 2px 0px;
}

.relationship-actions {
	font-size:10px;
}

.relationship-actions a {
	font-size:10px;
}

.relationship-delete {
	margin:0px 0px 0px 12px;
}

.page-nav a {
	font-weight:bold;
}

.relationship-error-message {
	margin:0px 0px 15px 0px;
}

.relationship-action {
	margin:0px 0px 15px 0px;
	color:#888;
	width:500px;
	margin:15px 0px;
	font-weight:bold;
}

.relationship-action img {
	float:left;
	display:block;
	margin:0px 15px 0px 0px;
	background-color:#fff;
	padding:3px;
	border:1px solid #dcdcdc;
}

.relationship-buttons {
	padding:10px 0px 0px 0px;
}

.relationship-textbox-title {
	font-weight:bold;
	font-size:13px;
	margin:0px 0px 5px 0px;
}

.relationship-message {
	font-size:14px;
	margin:10px 0px 0px 0px;
	color:#888 !important;
}

.black-text {
	color:#333 !important;
}

.red-text {
	color:red !important;
}


Step 4 In your Mediawiki:Common.js page, add :

/**
  * http://www.afterfoot.com/wikifoot/extensions/SocialProfile/UserBoard/BoardBlast.js
  */

function toggle_user(user_id){
	if ($D.hasClass("user-" + user_id ,'blast-friend-selected')){
		$D.replaceClass("user-" + user_id,'blast-friend-selected','blast-friend-unselected');
	}else if ($D.hasClass("user-" + user_id ,'blast-friend-unselected')){
		$D.replaceClass("user-" + user_id,'blast-friend-unselected','blast-friend-selected');
	}

	if ($D.hasClass("user-" + user_id ,'blast-foe-selected')){
		$D.replaceClass("user-" + user_id,'blast-foe-selected','blast-foe-unselected');
	}else if ($D.hasClass("user-" + user_id ,'blast-foe-unselected')){
		$D.replaceClass("user-" + user_id,'blast-foe-selected','blast-foe-unselected');
	}
}

function toggle_type(method,on,off){
	list = $$( ((method==1)?off:on) ,'div','blast-friends-list')

	for(x=0;x<=list.length-1;x++){
		el = list[x];
		if($D.hasClass(el,on) || $D.hasClass(el,off)){
			if(method==1){
				$D.replaceClass(el,off,on);
			}else{
				$D.replaceClass(el,on,off);
			}
		}
	}
}

function toggle_friends(method){
	toggle_type(method,'blast-friend-selected','blast-friend-unselected')
}

function toggle_foes(method){
	toggle_type(method,'blast-foe-selected','blast-foe-unselected')
}

function select_all(){
	toggle_friends(1)
	toggle_foes(1)
}
function unselect_all(){
	toggle_friends(0)
	toggle_foes(0)
}

submitted = 0;
function send_messages( ){
	if(submitted == 1) return 0;

	submitted = 1
	selected = 0;
	user_ids_to = "";

	list = $$('blast-friend-selected','div','blast-friends-list')
	for(x=0;x<=list.length-1;x++){
		el = list[x];
		selected++;
		user_id = el.id.replace("user-","");
		user_ids_to += ((user_ids_to)?",":"") + user_id
	}

	list = $$('blast-foe-selected','div','blast-friends-list')
	for(x=0;x<=list.length-1;x++){
		el = list[x];
		selected++;
		user_id = el.id.replace("user-","");
		user_ids_to += ((user_ids_to)?",":"") + user_id
	}

	if(selected==0){
		alert("Please select at least one person");
		submitted = 0;
		return 0;
	}

	if( !$("message").value ){
		alert("Please enter a message");
		submitted = 0;
		return 0;
	}

	$("ids").value =  user_ids_to;

	document.blast.message.style.color = "#ccc";
	document.blast.message.readOnly = true;
	$("blast-friends-list").innerHTML = 'Sending messages...';
	document.blast.submit();
}


/**
  * http://www.afterfoot.com/wikifoot/extensions/SocialProfile/UserProfile/UpdateProfile.js
  */

var countries =  new Array();
countries[0] = {country:"United States",name:"State",sections:["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Puerto Rico","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","Washington, D.C.","West Virginia","Wisconsin","Wyoming"]}

function displaySection(id,country,section){
	country_id = -1;
	for(x=0;x<=countries.length-1;x++){if(country==countries[x].country)country_id=x}

	section_select = "";
	if(countries[country_id]){
		$(id+"_label").innerHTML = countries[country_id].name
		section_select += "<select class='profile-form' name=" + id + " id=" + id + "><option></option>"
		for(x=0;x<=countries[country_id].sections.length-1;x++){
			section_select += "<option value=\"" + countries[country_id].sections[x] + "\"" + ((countries[country_id].sections[x]==section)?" selected":"") + ">" + countries[country_id].sections[x] + "</option>";
		}
		section_select += "</select>";
	}

	$(id+"_form").innerHTML = section_select
}



/**
  * http://www.afterfoot.com/wikifoot/extensions/SocialProfile/UserProfile/UserProfilePage.js
  */

var posted = 0;
function send_message(){
	if($("message").value && !posted){
		posted = 1;
		var url = "index.php?action=ajax";
		var pars = 'rs=wfSendBoardMessage&rsargs[]=' + $("user_name_to").value +'&rsargs[]=' + escape($("message").value) + '&rsargs[]=' + $("message_type").value +'&rsargs[]=10'
		var callback = {
			success: function(originalRequest){
				$("user-page-board").innerHTML = originalRequest.responseText
				posted = 0;
				$("message").value='';
			}
		};
		var request = YAHOO.util.Connect.asyncRequest('POST', url, callback, pars);
	}
}

function delete_message(id){
	if(confirm('Are you sure you want to delete this message?')){
		var url = "index.php?action=ajax";
		var pars = 'rs=wfDeleteBoardMessage&rsargs[]=' + id
		var callback = {
			success: function(originalRequest){
				window.location='index.php?title=' + wgPageName ;
			}
		};
		var request = YAHOO.util.Connect.asyncRequest('POST', url, callback, pars);
	}
}

var numReplaces = 0;
var replaceID = 0;
var replaceSrc = '';
var oldHtml = '';

function showUploadFrame(){
	new YAHOO.widget.Effects.Show('upload-container');
}

function uploadError(message){
	$('mini-gallery-' + replaceID).innerHTML = oldHtml;
	$('upload-frame-errors').innerHTML = message;
	$('imageUpload-frame').src = 'index.php?title=Special:MiniAjaxUpload&wpThumbWidth=75';

	new YAHOO.widget.Effects.Show('upload-container');
}

function textError(message){
	$('upload-frame-errors').innerHTML = message;
	new YAHOO.widget.Effects.Show('upload-frame-errors');
}

function completeImageUpload(){
	new YAHOO.widget.Effects.Hide('upload-frame-errors');
	$('upload-frame-errors').innerHTML = '';
	oldHtml = $('mini-gallery-' + replaceID).innerHTML;

	for(x=7;x>0;x--){
		$('mini-gallery-' + (x) ).innerHTML = $('mini-gallery-' + (x-1) ).innerHTML.replace('slideShowLink('+(x-1)+')','slideShowLink('+(x)+')')
	}
	$('mini-gallery-0').innerHTML ='<a><img height=\"75\" width=\"75\" src=\"http://images.wikia.com/common/wikiany/images/ajax-loader-white.gif\"/></a>';

	//new YAHOO.widget.Effects.Hide('mini-gallery-nopics');
	if($('no-pictures-containers')) {
		new YAHOO.widget.Effects.Hide('no-pictures-containers');
	}
	new YAHOO.widget.Effects.Show('pictures-containers');
}

function uploadComplete(imgSrc, imgName, imgDesc){
	replaceSrc = imgSrc;

	$('upload-frame-errors').innerHTML = '';

	//$('imageUpload-frame').onload = function(){
		var idOffset = -1 - numReplaces;
		//$D.addClass('mini-gallery-0','mini-gallery');
		//$('mini-gallery-0').innerHTML = '<a href=\"javascript:slideShowLink(' + idOffset + ')\">' + replaceSrc + '</a>';
		$('mini-gallery-0').innerHTML = '<a href=\"' + __image_prefix + imgName + '\">' + replaceSrc + '</a>';

		//replaceID = (replaceID == 7) ? 0 : (replaceID + 1);
		numReplaces += 1;

	//}
	//if ($('imageUpload-frame').captureEvents) $('imageUpload-frame').captureEvents(Event.LOAD);

	$('imageUpload-frame').src = 'index.php?title=Special:MiniAjaxUpload&wpThumbWidth=75&extra=' + numReplaces;
}

function slideShowLink(id){
	//window.location = 'index.php?title=Special:UserSlideShow&user=' + __slideshow_user + '&picture=' + ( numReplaces + id );
	window.location = 'Image:' + id;
}

function doHover(divID) {
	$El(divID).setStyle('backgroundColor', '#4B9AF6');

}

function endHover(divID){
	$El(divID).setStyle('backgroundColor', '');
}


/**
  * http://www.afterfoot.com/wikifoot/extensions/SocialProfile/UserRelationship/UserRelationship.js
  */

	function requestResponse(response,id){
		var url = "index.php?action=ajax";
		var pars = 'rs=wfRelationshipRequestResponse&rsargs[]=' + response + '&rsargs[]=' + id
		YAHOO.widget.Effects.Hide('request_action_'+id);
		var callback = {
			success: function( oResponse ) {
				$('request_action_'+id).innerHTML = oResponse.responseText;
				YAHOO.widget.Effects.Appear('request_action_'+id,{duration:2.0} );
			}
		};
		var request = YAHOO.util.Connect.asyncRequest('POST', url, callback, pars);

	}

Step 5 In the extensions/SocialProfile/UserProfile/UserProfile.i18n.php file, at the end of your language section (english or french for example), add the content of the same language section of the langauge UserBoard/UserBoard.i18n.php file.

caution, respect the end of the array !!

I work properly as you can see here


1 more question : what is the parameter to modify in oder to be able tu suppress messages on his board whatever the date of the message is ? When i cliqu on the suppress link, the message doesn't disappear... --Roulion 08:17, 15 April 2008 (UTC)Reply

I followed every mod specified here to try to make mine work properly, these mods made no difference for me...
I seem to have 2 main issues crippling this extension for me, as far as I can tell...
  • Prefix, preventing many things working
  • JS?, The 'send' buttons dont do anything, when sending a private message or using the boards, but Firebug does not report any errors to me on the related pages when I click these buttons?
--HTPCnz 02:30, 29 April 2008 (UTC)Reply

HTPCnz Problems

[edit]

I have just installed, yet to test everything througly or do any mods as described above or personal mods... I downloaded the latest version of everything from SVN...and I have the avatars folder (from sourceforge) located in my wikis image folder (as instructions stipulated), and looks to be working properly as avatar did upload, and I see them there in that folder...

Avatar Warning

[edit]

When I try to upload an avatar I get the following:

Warning: Invalid argument supplied for foreach() in /www/htdocs/w008ec1f/wiki/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378 

The pitcures show, and are thumbnailed, but yet I get that error? Any ideas what the issue is/how to fix?

Nothing that you should care about -- it's annoying, but doesn't cause any real harm. These extensions can be combined with another extension called UserLevels and you can get points from (for example) uploading an avatar. UserLevels extension wasn't included in this package, so that might be why it's throwing out that error on some installations. See Help:User Levels at Wikia Help for more info about the UserLevels extension. I'm hoping that UserLevels will be released some time in the near future. --Sayuri 13:26, 28 April 2008 (UTC)Reply
Fixed - By removing the use of prefix --HTPCnz 05:06, 1 May 2008 (UTC)Reply

Adding Friend/Foe - Database Error

[edit]

When I tried to add friend, I got this Database error:

A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

    (SQL query hidden)

from within function "UserRelationship::userHasRequestByID". MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '` WHERE ur_user_id_to = '6' AND ur_user_id_from = '1' AND ur_status = '0' LIMI' at line 1 (mysql.htpcnz.net)".
Are you using $wgDBprefix? This is a bug with badly-constructed SQL in one or more of the extension files, I'll fix this if I ever get commit access. --Sayuri 13:26, 28 April 2008 (UTC)Reply
I am unfortunatley, I read the above comments, slowly going through all the comments/bug fixes now, thank you for your prompt reply to all my issues...
This being the case, is there no fix for this issue at the mo then? --HTPCnz 13:43, 28 April 2008 (UTC)Reply
Fixed - by removing use of prefix, but new problems though, see below --HTPCnz 05:15, 1 May 2008 (UTC)Reply

Send a message

[edit]

The 'Send a message' does not appear to work at all... The page loads up as it should, but once I have inputted my message, and click the 'send' button, nothing happens?

JS probably isn't being loaded properly (you can check it yourself if you have Firefox browser + Firebug add-on). --Sayuri 13:26, 28 April 2008 (UTC)Reply
I dont appear to get any errors coming up in Firebug when on the mentioned pages, and having clicked on the 'send' button...still doing nothing? --HTPCnz 15:36, 28 April 2008 (UTC)Reply
Fixed, by removing use of prefix --HTPCnz 05:15, 1 May 2008 (UTC)Reply

Board

[edit]

I do not see it at all... I am sure I am just being ignorant/lazy here, and probably just have not enabled it

Try settings $wgUserProfileDisplay['board'] = true; in your LocalSettings.php. --Sayuri 13:26, 28 April 2008 (UTC)Reply
The above fix worked, viewable now, although I now have the same problem as mentioned above with 'send message'...I am sure I have JS enabled, and have installed the Firefox extension but do not know what I am looking for/to do, as never used before...
Please give me more instructions to figure out the JS, if that is the issue in both these cases
Thanks --HTPCnz 14:14, 28 April 2008 (UTC)Reply
Fixed - but new problems though, see below --HTPCnz 05:15, 1 May 2008 (UTC)Reply

Populate User profiles

[edit]

When I click on this page, I get the following error:

Permission error

Return to Main Page.
You still need the 'staff' permission to access it. Read #Can't access "Populate User Profiles" above. --Sayuri 13:26, 28 April 2008 (UTC)Reply
Fixed using above method --HTPCnz 13:39, 28 April 2008 (UTC)Reply

View Relationship Requests

[edit]

When I click on this page, I get the following Database error:

Database error
A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:

    (SQL query hidden)

from within function "UserRelationship::getOpenRequestCountDB". MySQL returned error "1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '` WHERE ur_user_id_to = '1' AND ur_status = '0' AND ur_type = '1' LIMIT 1' at line 1 (mysql.htpcnz.net)".
See #Adding Friend/Foe - Database Error. --Sayuri 13:26, 28 April 2008 (UTC)Reply
Fixed - by removing use of prefix, but new problems though, see below --HTPCnz 05:15, 1 May 2008 (UTC)Reply


I think thats everything now :) Can someone help me knock these issues out 1 by 1 please? Any help appreciated. My site HTPCnz

--HTPCnz 11:53, 28 April 2008 (UTC)Reply

HTPCnz Latest Progress

[edit]

Ok, I have removed the use of a prefix on my site to attempt to get this extension running error free...

All of the issues I described above are now resolved, but there are new problems...please help I do feel I have made substantial progress though, as all the feature are actually working, just need to figure out and remove/fix all the warnings that are appearing

This extension is live on my site right now, if anyone would like to view and try to help me resolve these issues... One can make an account to test, or view these pages to see what I have tested so far, and the warnings that appear:

  • Admin user profile - Example of perfect working user profile, but no board/PM posts...
  • Fish user profile - Example of user profile with warnings, after using Board, PM and BoardBlast...

Quick points:

  • Avatars work perfectly now, no warnings
  • Adding Friends/Foes, posting on Boards, or sending PM's all appear to work now, but are throwing up ugly warnings
  • Friends/Foes not displaying after being approved

Here are the new issues in detail:

Board

[edit]

When posting a message on a board, it works, but I get these errors, showing directly under the Board posting text box/above the post itself....

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 66

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'cut_link_text', to be a valid callback in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 272

Apoun refreshing the screen, those warnings disappear, and the board post displays correctly, but then I get this warning at the top of the page:

Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'cut_link_text', to be a valid callback in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 272

Relationship Requests

[edit]

When accepting a friend request, it works, but I get these errors, showing directly under the page title/above the confirmed relationship status message itself....

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Wmburke 5/27/09 11:45pm EST: I have this same issue, but on line 431. Not even sure how to start troubleshooting it. Running on shared hosting by a2hosting.

Invite Contacts

[edit]

Checking the 'Relationship Requests' page for requests and finding none, there is a message stating: 'You have no friend or foe requests. If you want more friends, invite them!'

Following the 'invite them' link will lead to a non existant page, that comes up with this error:

No such special page

You have requested an invalid special page.

A list of valid special pages can be found at Special:Specialpages.

Return to Main Page.
It links to Special:InviteContacts, which wasn't included in this package. If you want it, you could try emailing Wikia (see below for the email addresses you might want to poke). --Sayuri 10:05, 1 May 2008 (UTC)Reply

Board Blast

[edit]

Sends the message/s but these warnings show at the top of the page:

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 66

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 66

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Warning: Invalid argument supplied for foreach() in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserStats/UserStatsClass.php on line 378

Apoun viewing the recipitants user page, there is now this additional error displayed at the top of the page:

Warning: preg_replace_callback() [function.preg-replace-callback]: Requires argument 2, 'cut_link_text', to be a valid callback in /home/.hatch/euanhtpc/htpcnz.net/extensions/SocialProfile/UserBoard/UserBoardClass.php on line 272

That is the same, and adds to the original error there from posting in the boards to that user.

I solvived the cut_link_text problem by upgrading from MediaWiki 1.11.0 to 1.12.0. --Sayuri 10:05, 1 May 2008 (UTC)Reply

Friends/Foes

[edit]

They are not displaying

Try setting the following on LocalSettings.php:
$wgUserProfileDisplay['foes'] = true;
$wgUserProfileDisplay['friends'] = true;
--Sayuri 10:05, 1 May 2008 (UTC)Reply
Fixed, using method above --HTPCnz 10:35, 1 May 2008 (UTC)Reply

Extension Progress?

[edit]

This extension is a great start (shame I cant yet get working on my wiki) but I am wondering, will it eventually offer everything that is offered on Wikia sites?

From reading about this extension suite at Wikia, there are many more features not included here yet...which make this on par with typical social networking sites of today...

Profile overview

Features such as:

  • Recent activity
  • Gifts
  • User score/level
  • Awards
  • Statistics
  • Pictures
  • Games
  • Users able to easily make their own user boxes
  • Users able to easily add extra custom user boxes
  • The ability to display user avatar/score/level on main page (custom to their logon)

With that list, the extension suite should really be renamed to Social Networking

Any chance of all that been made available to the public, to put on other wikis? Fantastic suite of features

--HTPCnz 07:47, 29 April 2008 (UTC)Reply

While I really cannot answer the original question, I agree I'd just simply love to see some of these released to the public aswell.
I've asked about the UserLevels extension plus the needed supporting parser hook extensions (<loggedin>, <loggedout>, <welcomeUser>, <randomuserswithavatars> tags) and also about the TopUsers special page. Maybe you should email wikia-tech-lATwikia.com to ask about this, or contact the New York Team who coded these extensions (even though they cannot release code themselves apparently) or Gil Penchina, Wikia's CEO (gilATwikia.com) as I hear that Gil's in charge of code releases. --Sayuri 13:09, 30 April 2008 (UTC)Reply
I will do just that then...all of them.
But I doubt my 1 voice is going to make any difference, but no harm in trying?
One would like to think wikis and the tools/extensions made for them are for benefit of all the community, as is Wikia, but I guess it is their work, hence their intellectual property, and used to give the Wikia sites a point of difference/cool features that other sites don't have, so to improve their appeal, hence business model (I assume their is one). --HTPCnz 16:27, 30 April 2008 (UTC)Reply
Trying can't hurt you (well - hopefully!) and I've done my part regarding this, now just gotta hope for the best...in my humble opinion, this very talk page speaks for itself — people simply love Wikia's extensions and would like to see more of them. --Sayuri 16:32, 30 April 2008 (UTC)Reply

Can't Upload Adventars

[edit]

My Proplem is that by my Hoster the Php-funktion exec() is deactivated, so the scipt can't recize the images and save the images.

Can someone can recode the function createThumbnail ?
I think this php-funktion's you need for this:

  • ImageCreateFromJPEG, ImageCreateFromGIF, ImageCreateFromPNG
  • ImageCreate
  • imagecopyresized,
  • ImageJPEG,ImageGIF,ImagePNG

84.173.71.227 07:34, 1 May 2008 (UTC)Reply

I'm afraid that it's quite unlikely a working function would be removed because your hosting provider sucks. Perhaps you could try modifying the file/files by yourself to suit your hosting provider. --Sayuri 10:05, 1 May 2008 (UTC)Reply
I'm not so good in Php, but I try it out. One question, In whitch variable or file is the picturedata (raw data) from the upload in the function createThumbnail ?
84.173.71.227 10:29, 1 May 2008 (UTC)Reply

Problem Uploading Avatars

[edit]

I have just installed SocialProfile to mediawiki 1.8. (and by the way its very nice!)

When trying to upload avatars I get this message:

Warning: Invalid argument supplied for foreach() in /var/www/html/mediawiki/extensions/SocialProfile/UserStats/UserStatsClass.php on line 611 Fatal error: Call to undefined function imagecreatefrompng() in /var/www/html/mediawiki/extensions/SocialProfile/UserProfile/SpecialUploadAvatar.php on line 296

Upon investigation I found on line 611 of UserStatsClass.php "//FIXME: invalid argument supplied for foreach(). The FIXME leads me to believe that there is probably a known cause/workaround for this.

The changes I have made to LocalSettings (immediately after the require_once...) are

$wgUserProfileDisplay['friends'] = true;
$wgUserProfileDisplay['foes'] = true;
$wgUserBoard = true;
$wgUserProfileDisplay['board'] = true;
$wgUserProfileDisplay['stats'] = true;

Edit: OK I found the issue: GD was not installed. I fixed it with "yum install php-gd"