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)