Extension talk:SocialProfile/Archive 1

Very Impressive! Well Done! you have increased the capabilities of mediawiki by leaps and bounds. I should watch you for some time before I implement this extension as I have to be sure it has no vulnerabilities... www.freehospital.org. Can't risk a bug here!

Could not get it to work
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)

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

Same Error
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
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)

Got it working (partially)
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
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
I cannot see User Board messages or a way to create them. SocialProfile is configured as:

$wgUserProfileDisplay['board'] = true;

Issue 3: User Relationships
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
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)

Can't access "Populate User Profiles"
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 (talk • contribs). Please sign your posts with ~ !


 * Yes. Look at line 23 of /extensions/SocialProfile/UserProfile/SpecialPopulateExistingUsersProfiles.php. It is  - you need to change   to an existing usergroup of your choice, say,   or   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)

Command line?
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)


 * 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,  would become something like   or such. -- Sayuri  14:21, 4 April 2008 (UTC)

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)
 * 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"


 * 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 &mdash; if your wiki is running 1.10, I suggest updating it. -- Sayuri 15:50, 6 April 2008 (UTC)


 * 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))


 * 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)

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))
 * 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 ^^
 * 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  "; 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)

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)


 * 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 &mdash; I'm sure he can fix whatever there is to fix. ;-) -- Sayuri 14:14, 7 April 2008 (UTC)

How to apply the look?
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:

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)


 * 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)


 * Should be, anyway. -- Sayuri 14:14, 7 April 2008 (UTC)