扩展:SocialProfile

This page is a translated version of the page Extension:SocialProfile and the translation is 100% complete.
MediaWiki的扩展的手冊
Social Profile
發佈狀態: 穩定版本
实现 特殊页面 , 数据库 , Ajax
描述 为社区将多种社交功能整合到 MediaWiki 中
作者
最新版本 1.14 (持续更新 (see social tools/MediaWiki compatibility)
MediaWiki 1.39+
数据库更改
许可协议 GNU通用公眾授權條款2.0或更新版本
下載 Template:WikimediaDownload/gerritonly
示例 Brickipedia, the LEGO Wiki
  • $wgUserPageChoice
  • $wgUpdateProfileInRecentChanges
  • $wgUploadAvatarInRecentChanges
  • $wgUserProfileDisplay
  • $wgUserProfileThresholds
  • $wgUserLevels
  • $wgNamespacesForEditPoints
  • $wgUserStatsPointValues
  • avatarremove
  • awardsmanage
  • editothersprofiles
  • giftadmin
  • updatepoints
  • userboard-delete
季度下載量 122 (Ranked 75th)
翻譯SocialProfile的扩展,若在translatewiki.net可用
問題 尚未完成的工作 · 报告錯誤

SocialProfile 扩展将社交资料、用户板和基本资料信息合并到 MediaWiki 中,特别是头像、交友、敌对、用户板、board blast、用户等级系统、奖励和礼物。 当其他用户请求他们作为朋友或敌人和/或向他们发送消息时,该软件包还会通过电子邮件通知用户。

安裝

  • 如果您使用扩展分发工具下载 SocialProfile,请确保选择“master(最新开发版)”;旧版本保证有很多错误并且它们是未维护的,而 master 版本始终是最新的并且包含最新的功能和错误修正! 有关更多信息,请参阅 社交工具的 MediaWiki 兼容性政策
  • 你也可以使用 git,像这样:
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SocialProfile


  • 下载主分支文件,并将其放置在您extensions/文件夹中的SocialProfile目录内。
  • 将下列代码放置在您的LocalSettings.php 的底部:
    require_once "$IP/extensions/SocialProfile/SocialProfile.php";
    
  • 运行更新脚本,它将自动创建此扩展必须依赖的数据库表。
  • 以下目录应该存在于 wiki 的 $wgUploadDirectory 下:
    • avatars/ — 存储所有用户上传的头像图像的目录
    • awards/ — 系统礼物(奖品)和普通礼物图片会存放在这里
    • 将目录 awards/extensions/SocialProfile 移动到 MediaWiki 安装中使用的图像目录。 这个目录应该是可写的。 如果您通过“Special:SystemGiftManagerLogo”上传,则默认包含在此文件夹中的图像可用于奖励,但它们不会像头像的默认图像那样显示为“默认值”。
    • 将目录 avatarsextensions/SocialProfile 移动到 MediaWiki 安装中使用的图像目录。 这个目录应该是可写的。
  •   完成 – 在您的wiki上导航至Special:Version,以验证已成功安装扩展。

Parser functions

  • {{#avatar:Username}} - retrieves the avatar picture for the specified user.
  • {{#randomuserswithavatars}}
  • {{#newusers}}

User Options

  • echo-subscriptions-web-social-rel (requires Echo extension installed)
  • echo-subscriptions-email-social-rel (requires Echo extension installed)

Configuration variables

$wgUserProfileDisplay['board'] = true;
$wgUserProfileDisplay['foes'] = true;
$wgUserProfileDisplay['friends'] = true;
$wgUserProfileDisplay['avatar'] = true; // If set to false, disables both avatar display and upload
$wgUserBoard = true;
$wgFriendingEnabled = true;
$wgAvatarKey = $wgDBname;

$wgUserPageChoice = true;
$wgUserProfileAvatarsInDiffs = true;

注释

  • 升级 - 如果您是从 SocialProfile 1.2 或更早版本升级,您需要手动创建四个新的数据库表: gift, system_gift, user_gift, user_system_gift。 如果您从 1.3 升级,则需要创建 user_system_messages 数据库表。
  • 由于 r93317,SocialProfile 的命名空间是自动 注册的,因此您“不需要”将它们添加到 $wgExtraNamespaces
  • SocialProfile 使用 ImageMagick 或 PHP 的内置 GD 库(自 r93067 起),具体取决于哪个可用,用于创建调整大小的头像、奖励和礼物图像文件。

报告问题

截图