Extension talk:SocialProfile/Archive 3

Archived discussion: 1 | 2

''Please post new topics here, with the newest posts being at the bottom of the page. Discussions are archived gradually, so please check the archives to make sure that your question hasn't been answered already!''

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)

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)

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)