mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-08 17:56:52 +02:00
[ticket/12234] Replace ICQ with custom profile field
PHPBB3-12234
This commit is contained in:
@@ -911,7 +911,6 @@ if (!$get_info)
|
||||
array('user_msnm', 'users.user_msnm', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_yim', 'users.user_yim', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_aim', 'users.user_aim', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_icq', 'users.user_icq', array('function1' => 'phpbb_set_encoding')),
|
||||
array('user_rank', 'users.user_rank', 'intval'),
|
||||
array('user_permissions', '', ''),
|
||||
|
||||
@@ -963,6 +962,7 @@ if (!$get_info)
|
||||
array('pf_phpbb_occupation', 'users.user_occ', array('function1' => 'phpbb_set_encoding')),
|
||||
array('pf_phpbb_interests', 'users.user_interests', array('function1' => 'phpbb_set_encoding')),
|
||||
array('pf_phpbb_location', 'users.user_from', array('function1' => 'phpbb_set_encoding')),
|
||||
array('pf_phpbb_icq', 'users.user_icq', array('function1' => 'phpbb_set_encoding')),
|
||||
|
||||
'where' => 'users.user_id <> -1',
|
||||
),
|
||||
|
@@ -953,7 +953,8 @@ CREATE TABLE phpbb_profile_fields_data (
|
||||
user_id INTEGER DEFAULT 0 NOT NULL,
|
||||
pf_phpbb_location VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
pf_phpbb_interests BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL,
|
||||
pf_phpbb_occupation BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL
|
||||
pf_phpbb_occupation BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL,
|
||||
pf_phpbb_icq VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL
|
||||
);;
|
||||
|
||||
ALTER TABLE phpbb_profile_fields_data ADD PRIMARY KEY (user_id);;
|
||||
@@ -1425,7 +1426,6 @@ CREATE TABLE phpbb_users (
|
||||
user_sig BLOB SUB_TYPE TEXT CHARACTER SET UTF8 DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_uid VARCHAR(8) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_bitfield VARCHAR(255) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
user_icq VARCHAR(15) CHARACTER SET NONE DEFAULT '' NOT NULL,
|
||||
user_aim VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
user_yim VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
user_msnm VARCHAR(255) CHARACTER SET UTF8 DEFAULT '' NOT NULL COLLATE UNICODE,
|
||||
|
@@ -1160,7 +1160,8 @@ CREATE TABLE [phpbb_profile_fields_data] (
|
||||
[user_id] [int] DEFAULT (0) NOT NULL ,
|
||||
[pf_phpbb_location] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[pf_phpbb_interests] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
||||
[pf_phpbb_occupation] [varchar] (4000) DEFAULT ('') NOT NULL
|
||||
[pf_phpbb_occupation] [varchar] (4000) DEFAULT ('') NOT NULL ,
|
||||
[pf_phpbb_icq] [varchar] (255) DEFAULT ('') NOT NULL
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
@@ -1741,7 +1742,6 @@ CREATE TABLE [phpbb_users] (
|
||||
[user_sig] [text] DEFAULT ('') NOT NULL ,
|
||||
[user_sig_bbcode_uid] [varchar] (8) DEFAULT ('') NOT NULL ,
|
||||
[user_sig_bbcode_bitfield] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[user_icq] [varchar] (15) DEFAULT ('') NOT NULL ,
|
||||
[user_aim] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[user_yim] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
[user_msnm] [varchar] (255) DEFAULT ('') NOT NULL ,
|
||||
|
@@ -679,6 +679,7 @@ CREATE TABLE phpbb_profile_fields_data (
|
||||
pf_phpbb_location varbinary(255) DEFAULT '' NOT NULL,
|
||||
pf_phpbb_interests blob NOT NULL,
|
||||
pf_phpbb_occupation blob NOT NULL,
|
||||
pf_phpbb_icq varbinary(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (user_id)
|
||||
);
|
||||
|
||||
@@ -1034,7 +1035,6 @@ CREATE TABLE phpbb_users (
|
||||
user_sig mediumblob NOT NULL,
|
||||
user_sig_bbcode_uid varbinary(8) DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_bitfield varbinary(255) DEFAULT '' NOT NULL,
|
||||
user_icq varbinary(15) DEFAULT '' NOT NULL,
|
||||
user_aim blob NOT NULL,
|
||||
user_yim blob NOT NULL,
|
||||
user_msnm blob NOT NULL,
|
||||
|
@@ -679,6 +679,7 @@ CREATE TABLE phpbb_profile_fields_data (
|
||||
pf_phpbb_location varchar(255) DEFAULT '' NOT NULL,
|
||||
pf_phpbb_interests text NOT NULL,
|
||||
pf_phpbb_occupation text NOT NULL,
|
||||
pf_phpbb_icq varchar(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (user_id)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
@@ -1034,7 +1035,6 @@ CREATE TABLE phpbb_users (
|
||||
user_sig mediumtext NOT NULL,
|
||||
user_sig_bbcode_uid varchar(8) DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_bitfield varchar(255) DEFAULT '' NOT NULL,
|
||||
user_icq varchar(15) DEFAULT '' NOT NULL,
|
||||
user_aim varchar(255) DEFAULT '' NOT NULL,
|
||||
user_yim varchar(255) DEFAULT '' NOT NULL,
|
||||
user_msnm varchar(255) DEFAULT '' NOT NULL,
|
||||
|
@@ -1272,6 +1272,7 @@ CREATE TABLE phpbb_profile_fields_data (
|
||||
pf_phpbb_location varchar2(255) DEFAULT '' ,
|
||||
pf_phpbb_interests clob DEFAULT '' ,
|
||||
pf_phpbb_occupation clob DEFAULT '' ,
|
||||
pf_phpbb_icq varchar2(255) DEFAULT '' ,
|
||||
CONSTRAINT pk_phpbb_profile_fields_data PRIMARY KEY (user_id)
|
||||
)
|
||||
/
|
||||
@@ -1858,7 +1859,6 @@ CREATE TABLE phpbb_users (
|
||||
user_sig clob DEFAULT '' ,
|
||||
user_sig_bbcode_uid varchar2(8) DEFAULT '' ,
|
||||
user_sig_bbcode_bitfield varchar2(255) DEFAULT '' ,
|
||||
user_icq varchar2(15) DEFAULT '' ,
|
||||
user_aim varchar2(765) DEFAULT '' ,
|
||||
user_yim varchar2(765) DEFAULT '' ,
|
||||
user_msnm varchar2(765) DEFAULT '' ,
|
||||
|
@@ -889,6 +889,7 @@ CREATE TABLE phpbb_profile_fields_data (
|
||||
pf_phpbb_location varchar(255) DEFAULT '' NOT NULL,
|
||||
pf_phpbb_interests varchar(4000) DEFAULT '' NOT NULL,
|
||||
pf_phpbb_occupation varchar(4000) DEFAULT '' NOT NULL,
|
||||
pf_phpbb_icq varchar(255) DEFAULT '' NOT NULL,
|
||||
PRIMARY KEY (user_id)
|
||||
);
|
||||
|
||||
@@ -1306,7 +1307,6 @@ CREATE TABLE phpbb_users (
|
||||
user_sig TEXT DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_uid varchar(8) DEFAULT '' NOT NULL,
|
||||
user_sig_bbcode_bitfield varchar(255) DEFAULT '' NOT NULL,
|
||||
user_icq varchar(15) DEFAULT '' NOT NULL,
|
||||
user_aim varchar(255) DEFAULT '' NOT NULL,
|
||||
user_yim varchar(255) DEFAULT '' NOT NULL,
|
||||
user_msnm varchar(255) DEFAULT '' NOT NULL,
|
||||
|
@@ -467,10 +467,10 @@ INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id,
|
||||
INSERT INTO phpbb_forums (forum_name, forum_desc, left_id, right_id, parent_id, forum_type, forum_posts_approved, forum_posts_unapproved, forum_posts_softdeleted, forum_topics_approved, forum_topics_unapproved, forum_topics_softdeleted, forum_last_post_id, forum_last_poster_id, forum_last_poster_name, forum_last_poster_colour, forum_last_post_subject, forum_last_post_time, forum_link, forum_password, forum_image, forum_rules, forum_rules_link, forum_rules_uid, forum_desc_uid, prune_days, prune_viewed, forum_parents, forum_flags) VALUES ('{L_FORUMS_TEST_FORUM_TITLE}', '{L_FORUMS_TEST_FORUM_DESC}', 2, 3, 1, 1, 1, 0, 0, 1, 0, 0, 1, 2, 'Admin', 'AA0000', '{L_TOPICS_TOPIC_TITLE}', 972086460, '', '', '', '', '', '', '', 0, 0, '', 48);
|
||||
|
||||
# -- Users / Anonymous user
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_actkey, user_newpasswd, user_allow_massemail) VALUES (2, 1, 'Anonymous', 'anonymous', 0, '', '', 'en', 1, 0, '', 0, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '', 0);
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_aim, user_yim, user_msnm, user_jabber, user_website, user_actkey, user_newpasswd, user_allow_massemail) VALUES (2, 1, 'Anonymous', 'anonymous', 0, '', '', 'en', 1, 0, '', 0, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', 0);
|
||||
|
||||
# -- username: Admin password: admin (change this or remove it once everything is working!)
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_icq, user_aim, user_yim, user_msnm, user_jabber, user_website, user_actkey, user_newpasswd) VALUES (3, 5, 'Admin', 'admin', 0, '21232f297a57a5a743894a0e4a801fc3', 'admin@yourdomain.com', 'en', 1, 1, 'AA0000', 1, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '', '');
|
||||
INSERT INTO phpbb_users (user_type, group_id, username, username_clean, user_regdate, user_password, user_email, user_lang, user_style, user_rank, user_colour, user_posts, user_permissions, user_ip, user_birthday, user_lastpage, user_last_confirm_key, user_post_sortby_type, user_post_sortby_dir, user_topic_sortby_type, user_topic_sortby_dir, user_avatar, user_sig, user_sig_bbcode_uid, user_aim, user_yim, user_msnm, user_jabber, user_website, user_actkey, user_newpasswd) VALUES (3, 5, 'Admin', 'admin', 0, '21232f297a57a5a743894a0e4a801fc3', 'admin@yourdomain.com', 'en', 1, 1, 'AA0000', 1, '', '', '', '', '', 't', 'a', 't', 'd', '', '', '', '', '', '', '', '', '', '');
|
||||
|
||||
# -- Groups
|
||||
INSERT INTO phpbb_groups (group_name, group_type, group_founder_manage, group_colour, group_legend, group_avatar, group_desc, group_desc_uid, group_max_recipients) VALUES ('GUESTS', 3, 0, '', 0, '', '', '', 5);
|
||||
@@ -791,6 +791,7 @@ INSERT INTO phpbb_extensions (group_id, extension) VALUES (9, 'ogm');
|
||||
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_location', 'profilefields.type.string', 'phpbb_location', '20', '2', '100', '', '', '.*', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 1, 0, '', '');
|
||||
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_interests', 'profilefields.type.text', 'phpbb_interests', '3|30', '2', '500', '', '', '.*', 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 2, 0, '', '');
|
||||
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_occupation', 'profilefields.type.text', 'phpbb_occupation', '3|30', '2', '500', '', '', '.*', 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 3, 0, '', '');
|
||||
INSERT INTO phpbb_profile_fields (field_name, field_type, field_ident, field_length, field_minlen, field_maxlen, field_novalue, field_default_value, field_validation, field_required, field_show_novalue, field_show_on_reg, field_show_on_pm, field_show_on_vt, field_show_on_ml, field_show_profile, field_hide, field_no_view, field_active, field_order, field_is_contact, field_contact_desc, field_contact_url) VALUES ('phpbb_icq', 'profilefields.type.string', 'phpbb_icq', '20', '3', '15', '', '', '[0-9]+', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 4, 1, 'SEND_ICQ_MESSAGE', 'https://www.icq.com/people/%s/');
|
||||
|
||||
# User Notification Options (for first user)
|
||||
INSERT INTO phpbb_user_notifications (item_type, item_id, user_id, method) VALUES('post', 0, 2, '');
|
||||
|
@@ -659,6 +659,7 @@ CREATE TABLE phpbb_profile_fields_data (
|
||||
pf_phpbb_location varchar(255) NOT NULL DEFAULT '',
|
||||
pf_phpbb_interests text(65535) NOT NULL DEFAULT '',
|
||||
pf_phpbb_occupation text(65535) NOT NULL DEFAULT '',
|
||||
pf_phpbb_icq varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (user_id)
|
||||
);
|
||||
|
||||
@@ -1005,7 +1006,6 @@ CREATE TABLE phpbb_users (
|
||||
user_sig mediumtext(16777215) NOT NULL DEFAULT '',
|
||||
user_sig_bbcode_uid varchar(8) NOT NULL DEFAULT '',
|
||||
user_sig_bbcode_bitfield varchar(255) NOT NULL DEFAULT '',
|
||||
user_icq varchar(15) NOT NULL DEFAULT '',
|
||||
user_aim varchar(255) NOT NULL DEFAULT '',
|
||||
user_yim varchar(255) NOT NULL DEFAULT '',
|
||||
user_msnm varchar(255) NOT NULL DEFAULT '',
|
||||
|
Reference in New Issue
Block a user