From 310b8af1482021cf8ab6fbe839a4150ff281c4e1 Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Tue, 17 Jun 2014 17:51:07 +0530 Subject: [ticket/12729] Add Facebook custom profile field PHPBB3-12729 --- .../migration/data/v310/profilefield_facebook.php | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php (limited to 'phpBB/phpbb/db') diff --git a/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php b/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php new file mode 100644 index 0000000000..1bbf6f2068 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php @@ -0,0 +1,62 @@ + + * @license GNU General Public License, version 2 (GPL-2.0) + * + * For full copyright and license information, please see + * the docs/CREDITS.txt file. + * + */ + +namespace phpbb\db\migration\data\v310; + +class profilefield_facebook extends \phpbb\db\migration\profilefield_base_migration +{ + static public function depends_on() + { + return array( + '\phpbb\db\migration\data\v310\profilefield_types', + '\phpbb\db\migration\data\v310\profilefield_show_novalue', + ); + } + + public function update_data() + { + return array( + array('custom', array(array($this, 'create_custom_field'))), + ); + } + + protected $profilefield_name = 'phpbb_facebook'; + + protected $profilefield_database_type = array('VCHAR', ''); + + protected $profilefield_data = array( + 'field_name' => 'phpbb_facebook', + 'field_type' => 'profilefields.type.string', + 'field_ident' => 'phpbb_facebook', + 'field_length' => '20', + 'field_minlen' => '5', + 'field_maxlen' => '50', + 'field_novalue' => '', + 'field_default_value' => '', + 'field_validation' => '[\w.]+', + 'field_required' => 0, + 'field_show_novalue' => 0, + 'field_show_on_reg' => 0, + 'field_show_on_pm' => 1, + 'field_show_on_vt' => 1, + 'field_show_profile' => 1, + 'field_hide' => 0, + 'field_no_view' => 0, + 'field_active' => 1, + 'field_is_contact' => 1, + 'field_contact_desc' => 'VIEW_FACEBOOK_PROFILE', + 'field_contact_url' => 'http://facebook.com/%s/', + ); + + +} -- cgit v1.2.1 From ab47798a3ebfd0c039d58e00802c5cafd572c784 Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Tue, 17 Jun 2014 17:57:37 +0530 Subject: [ticket/12729] Unnecessary whitespace in profilefield_facebook.php PHPBB3-12729 --- phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'phpBB/phpbb/db') diff --git a/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php b/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php index 1bbf6f2068..6b393e66a5 100644 --- a/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php +++ b/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php @@ -57,6 +57,4 @@ class profilefield_facebook extends \phpbb\db\migration\profilefield_base_migrat 'field_contact_desc' => 'VIEW_FACEBOOK_PROFILE', 'field_contact_url' => 'http://facebook.com/%s/', ); - - } -- cgit v1.2.1 From e127a4fcceb95c343d2dad2aa1e0e0ee68b3cf2a Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Wed, 18 Jun 2014 15:37:18 +0530 Subject: [ticket/12729] Fix block header spacing for profilefield_facebook.php PHPBB3-12729 --- .../db/migration/data/v310/profilefield_facebook.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'phpBB/phpbb/db') diff --git a/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php b/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php index 6b393e66a5..c91f898730 100644 --- a/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php +++ b/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php @@ -1,15 +1,15 @@ - * @license GNU General Public License, version 2 (GPL-2.0) - * - * For full copyright and license information, please see - * the docs/CREDITS.txt file. - * - */ +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ namespace phpbb\db\migration\data\v310; -- cgit v1.2.1 From 2ba12a17b2b9325cfa6419d648f13ed744c3b24e Mon Sep 17 00:00:00 2001 From: Shitiz Garg Date: Wed, 18 Jun 2014 17:55:37 +0530 Subject: [ticket/12729] Convert spaces to tabs PHPBB3-12729 --- .../migration/data/v310/profilefield_facebook.php | 76 +++++++++++----------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'phpBB/phpbb/db') diff --git a/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php b/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php index c91f898730..5964e7a997 100644 --- a/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php +++ b/phpBB/phpbb/db/migration/data/v310/profilefield_facebook.php @@ -15,46 +15,46 @@ namespace phpbb\db\migration\data\v310; class profilefield_facebook extends \phpbb\db\migration\profilefield_base_migration { - static public function depends_on() - { - return array( - '\phpbb\db\migration\data\v310\profilefield_types', - '\phpbb\db\migration\data\v310\profilefield_show_novalue', - ); - } + static public function depends_on() + { + return array( + '\phpbb\db\migration\data\v310\profilefield_types', + '\phpbb\db\migration\data\v310\profilefield_show_novalue', + ); + } - public function update_data() - { - return array( - array('custom', array(array($this, 'create_custom_field'))), - ); - } + public function update_data() + { + return array( + array('custom', array(array($this, 'create_custom_field'))), + ); + } - protected $profilefield_name = 'phpbb_facebook'; + protected $profilefield_name = 'phpbb_facebook'; - protected $profilefield_database_type = array('VCHAR', ''); + protected $profilefield_database_type = array('VCHAR', ''); - protected $profilefield_data = array( - 'field_name' => 'phpbb_facebook', - 'field_type' => 'profilefields.type.string', - 'field_ident' => 'phpbb_facebook', - 'field_length' => '20', - 'field_minlen' => '5', - 'field_maxlen' => '50', - 'field_novalue' => '', - 'field_default_value' => '', - 'field_validation' => '[\w.]+', - 'field_required' => 0, - 'field_show_novalue' => 0, - 'field_show_on_reg' => 0, - 'field_show_on_pm' => 1, - 'field_show_on_vt' => 1, - 'field_show_profile' => 1, - 'field_hide' => 0, - 'field_no_view' => 0, - 'field_active' => 1, - 'field_is_contact' => 1, - 'field_contact_desc' => 'VIEW_FACEBOOK_PROFILE', - 'field_contact_url' => 'http://facebook.com/%s/', - ); + protected $profilefield_data = array( + 'field_name' => 'phpbb_facebook', + 'field_type' => 'profilefields.type.string', + 'field_ident' => 'phpbb_facebook', + 'field_length' => '20', + 'field_minlen' => '5', + 'field_maxlen' => '50', + 'field_novalue' => '', + 'field_default_value' => '', + 'field_validation' => '[\w.]+', + 'field_required' => 0, + 'field_show_novalue' => 0, + 'field_show_on_reg' => 0, + 'field_show_on_pm' => 1, + 'field_show_on_vt' => 1, + 'field_show_profile' => 1, + 'field_hide' => 0, + 'field_no_view' => 0, + 'field_active' => 1, + 'field_is_contact' => 1, + 'field_contact_desc' => 'VIEW_FACEBOOK_PROFILE', + 'field_contact_url' => 'http://facebook.com/%s/', + ); } -- cgit v1.2.1