Changed ordering of profile fields.
This commit is contained in:
parent
6bbe9bf441
commit
254feee738
1 changed files with 15 additions and 15 deletions
|
@ -11,17 +11,6 @@ define('MSZ_USER_PROFILE_FIELD_SET_ERRORS', [
|
||||||
|
|
||||||
define('MSZ_USER_PROFILE_FIELD_FORMAT', 'user_%s');
|
define('MSZ_USER_PROFILE_FIELD_FORMAT', 'user_%s');
|
||||||
define('MSZ_USER_PROFILE_FIELDS', [
|
define('MSZ_USER_PROFILE_FIELDS', [
|
||||||
'twitter' => [
|
|
||||||
'name' => 'Twitter',
|
|
||||||
'regex' => '#^(?:https?://(?:www\.)?twitter.com/(?:\#!\/)?)?@?([A-Za-z0-9_]{1,20})/?$#u',
|
|
||||||
'link' => 'https://twitter.com/%s',
|
|
||||||
'format' => '@%s',
|
|
||||||
],
|
|
||||||
'osu' => [
|
|
||||||
'name' => 'osu!',
|
|
||||||
'regex' => '#^(?:https?://osu.ppy.sh/u(?:sers)?/)?([a-zA-Z0-9-\[\]_ ]{1,20})/?$#u',
|
|
||||||
'link' => 'https://osu.ppy.sh/users/%s',
|
|
||||||
],
|
|
||||||
'website' => [
|
'website' => [
|
||||||
'name' => 'Website',
|
'name' => 'Website',
|
||||||
'type' => 'url',
|
'type' => 'url',
|
||||||
|
@ -41,10 +30,11 @@ define('MSZ_USER_PROFILE_FIELDS', [
|
||||||
'UC[a-zA-Z0-9-_]{1,22}' => 'Go to Channel',
|
'UC[a-zA-Z0-9-_]{1,22}' => 'Go to Channel',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'steam' => [
|
'twitter' => [
|
||||||
'name' => 'Steam',
|
'name' => 'Twitter',
|
||||||
'regex' => '#^(?:https?://(?:www.)?steamcommunity.com/(?:id|profiles)/)?([a-zA-Z0-9_-]{2,100})/?$#u',
|
'regex' => '#^(?:https?://(?:www\.)?twitter.com/(?:\#!\/)?)?@?([A-Za-z0-9_]{1,20})/?$#u',
|
||||||
'link' => 'https://steamcommunity.com/id/%s',
|
'link' => 'https://twitter.com/%s',
|
||||||
|
'format' => '@%s',
|
||||||
],
|
],
|
||||||
'ninswitch' => [
|
'ninswitch' => [
|
||||||
'name' => 'Nintendo Switch',
|
'name' => 'Nintendo Switch',
|
||||||
|
@ -56,6 +46,16 @@ define('MSZ_USER_PROFILE_FIELDS', [
|
||||||
'regex' => '#^(?:https?://(?:www.)?twitch.tv/)?([0-9A-Za-z_]{3,25})/?$#u',
|
'regex' => '#^(?:https?://(?:www.)?twitch.tv/)?([0-9A-Za-z_]{3,25})/?$#u',
|
||||||
'link' => 'https://twitch.tv/%s',
|
'link' => 'https://twitch.tv/%s',
|
||||||
],
|
],
|
||||||
|
'steam' => [
|
||||||
|
'name' => 'Steam',
|
||||||
|
'regex' => '#^(?:https?://(?:www.)?steamcommunity.com/(?:id|profiles)/)?([a-zA-Z0-9_-]{2,100})/?$#u',
|
||||||
|
'link' => 'https://steamcommunity.com/id/%s',
|
||||||
|
],
|
||||||
|
'osu' => [
|
||||||
|
'name' => 'osu!',
|
||||||
|
'regex' => '#^(?:https?://osu.ppy.sh/u(?:sers)?/)?([a-zA-Z0-9-\[\]_ ]{1,20})/?$#u',
|
||||||
|
'link' => 'https://osu.ppy.sh/users/%s',
|
||||||
|
],
|
||||||
'lastfm' => [
|
'lastfm' => [
|
||||||
'name' => 'Last.fm',
|
'name' => 'Last.fm',
|
||||||
'regex' => '#^(?:https?://(?:www.)?last.fm/user/)?([a-zA-Z]{1}[a-zA-Z0-9_-]{1,14})/?$#u',
|
'regex' => '#^(?:https?://(?:www.)?last.fm/user/)?([a-zA-Z]{1}[a-zA-Z0-9_-]{1,14})/?$#u',
|
||||||
|
|
Loading…
Add table
Reference in a new issue