[ticket/17623] switch twitter to x in profile#6946
[ticket/17623] switch twitter to x in profile#6946Prosk8er wants to merge 2 commits intophpbb:3.3.xfrom
Conversation
phpbb3 version of PHPBB-17623 PHPBB-17623
|
The attempt to merge branch
A separate PR will be needed to merge |
c2b00e2 to
9c49410
Compare
|
Part of your failure is your commit message for "forgot migration file". You need |
thanks that was going to be my next try |
phpbb3 version of PHPBB-17623 PHPBB-17623
9c49410 to
b5b2b00
Compare
danieltj27
left a comment
There was a problem hiding this comment.
There's still lots of references to Twitter which should be completely changed to say X instead.
Also there needs to be a discussion around the migration schema. I'm pretty sure you should keep old schemas as is and create new ones to update existing data but a second opinion is needed on that.
| 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_yahoo', 'profilefields.type.string', 'phpbb_yahoo', '40', '5', '255', '', '', '.*', 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 8, 1, 'SEND_YIM_MESSAGE', 'ymsgr:sendim?%s'); | ||
| 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_facebook', 'profilefields.type.string', 'phpbb_facebook', '20', '5', '50', '', '', '[\w.]+', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 9, 1, 'VIEW_FACEBOOK_PROFILE', 'https://facebook.com/%s/'); | ||
| 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_twitter', 'profilefields.type.string', 'phpbb_twitter', '20', '1', '15', '', '', '[\w_]+', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 10, 1, 'VIEW_TWITTER_PROFILE', 'https://twitter.com/%s'); | ||
| 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_twitter', 'profilefields.type.string', 'phpbb_twitter', '20', '1', '15', '', '', '[\w_]+', 0, 0, 0, 1, 1, 1, 1, 0, 0, 1, 10, 1, 'VIEW_TWITTER_PROFILE', 'https://x.com/%s'); |
There was a problem hiding this comment.
You need to replace VIEW_TWITTER_PROFILE with VIEW_X_PROFILE although perhaps it needs to be something a bit more unique as that kind of makes it seem like a placeholder. Up for discussion as to whether that's okay as is but it definitely needs changing from Twitter.
| 'AUTH_PROVIDER_OAUTH_SERVICE_FACEBOOK' => 'Facebook', | ||
| 'AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE' => 'Google', | ||
| 'AUTH_PROVIDER_OAUTH_SERVICE_TWITTER' => 'Twitter', | ||
| 'AUTH_PROVIDER_OAUTH_SERVICE_TWITTER' => 'X', |
There was a problem hiding this comment.
Replace with AUTH_PROVIDER_OAUTH_SERVICE_X
| ), | ||
| 'TRACKED_PHP_ERROR' => 'Tracked PHP errors: %s', | ||
| 'TWITTER' => 'Twitter', | ||
| 'TWITTER' => 'X', |
There was a problem hiding this comment.
Replace language string to X
| 'VIEW_FACEBOOK_PROFILE' => 'View Facebook Profile', | ||
| 'VIEW_SKYPE_PROFILE' => 'View Skype Profile', | ||
| 'VIEW_TWITTER_PROFILE' => 'View Twitter Profile', | ||
| 'VIEW_TWITTER_PROFILE' => 'View X Profile', |
|
|
||
| $this->db->sql_query( | ||
| "UPDATE $profile_fields | ||
| SET field_contact_url = 'https://x.com/%s' |
There was a problem hiding this comment.
A second opinion is probably wise although I'm pretty sure you shouldn't be changing database migrations. This only adds a custom profile field that can be changed in the ACP anyway. I think the most appropriate way to go about this is to create a new migration (possibly).
| .phpbb_facebook-icon { background-position: -119px 0; } | ||
| .phpbb_skype-icon { background-position: -161px 0; } | ||
| .phpbb_twitter-icon { background-position: -203px 0; } | ||
| .phpbb_twitter-icon { background-position: -202px 0; } |
There was a problem hiding this comment.
Change the class name to x-icon and update all instances where it's used.
|
Maybe it is a better idea to remove it instead of renaming. |
@danieltj27 i left the vars/strings twitter instead of changing everything to x so its easier to understand what it is plus if i did that there would be a bunch more changes and a single letter for language var like 'X' => 'X', which doesn't seem right to have 1 letter? i could change it all if its deemed necessary |
I don't disagree. Perhaps |
phpbb3 version of PHPBB-17623
Checklist:
Tracker ticket:
https://tracker.phpbb.com/browse/PHPBB-17623