Extension:UserWelcome
|
UserWelcome Release status: stable |
|
|---|---|
| Implementation | Tag |
| Description | Adds <welcomeUser> tag to display user-specific social info to logged-in users when SocialProfile extension is installed on the wiki. |
| Author(s) | Wikia, Inc. (New York Team) |
| Last version | 1.0 (20th of September, 2008) |
| MediaWiki | 1.11 |
| License | GNU General Public License 2.0 or later |
| Download | SVN (browse) |
| Example | Halopedia main page (while logged in) |
| Check usage and version matrix | |
UserWelcome extension adds <welcomeUser/> parser hook that displays user-specific social info to the user on the page where a <welcomeUser/> tag is present. The extension will display the number of new user board messages, gifts, awards, friend and foe requests and the amount of points required to advance into the next level.
Note: You need to have SocialProfile (version 1.3 or higher) installed and configured properly before installing this extension, since this requires parts of SocialProfile extension and is not meant to be used standalone.
UserWelcome extension works well with WikiTextLoggedInOut extension. For example, if you have these extensions and RandomUsersWithAvatars extension installed alongside SocialProfile, you could add the following code to your wiki's main page to show random avatars to anonymous users and user-specific social info to logged-in users:
<loggedout><randomuserswithavatars count=15 row=5/></loggedout> <loggedin><welcomeUser/></loggedin>
It's strongly recommended to add some styling to the output of <welcomeUser/> tag, so you can add the following CSS styles into your wiki's MediaWiki:Common.css:
/* Main Page welcome user */ .mp-welcome-logged-in { margin: 0px 0px 0px 15px; } .mp-welcome-logged-in h2 { font-size: 20px; line-height: 24px; border-bottom: none; padding: 8px 0px 10px 0px !important; margin: 0px 0px 0px 0px !important; } .mp-welcome-info { float: left; width: 240px; } .mp-welcome-image { float: left; margin: 0px 10px 0px 0px; text-align: center; } .mp-welcome-image a { font-size: 10px; text-decoration: none; } .mp-welcome-image img { background-color: #FFFFFF; border: 1px solid #DCDCDC; padding: 3px; } .mp-welcome-points { float: left; width: 200px; } .points-and-level { margin: 0px 0px 3px; } .needed-points { color: #666666; font-size: 10px; line-height: 12px; padding: 5px 0px 0px; } .total-points { background-color: #CC0000; color: #FFFFFF; float: left; font-size: 12px; font-weight: bold; margin: 0px 5px 0px 0px; padding: 1px 5px; text-align: center; } .honorific-level { float: left; }
Installation [edit]
- Download the files from SVN and place them in $IP/extensions/UserWelcome/
- Move the common folder from $IP/extensions/UserWelcome/ to $wgUploadDirectory
- Add
into your wiki's LocalSettings.phprequire_once("$IP/extensions/UserWelcome/UserWelcome.php");
- Installation can now be verified through your wiki's Special:Version.
| Social tools | |
|---|---|
| SocialProfile | Overview • UserStatus (GSoC 2011 project) • Roadmap • Developer info • Screenshots • History |
| Other social extensions | Automatic Board Welcome • BlogPage • FanBoxes • NewUsersList • PictureGame • PollNY • QuizGame • RandomFeaturedUser • RandomGameUnit • RandomUsersWithAvatars • SiteMetrics • UserWelcome |
| Semanticness | Semantic Social Profile |
| Other related extensions (which do not depend on SocialProfile) |
Comments • LinkFilter • NewSignupPage • RandomImageByCategory • Video • VoteNY • WikiTextLoggedInOut |