Make Yes/No consistent during installation

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Ideas Centre
User avatar
scootergrisen
Translator
Posts: 257
Joined: Thu Aug 25, 2011 2:25 pm

Make Yes/No consistent during installation

Post by scootergrisen »

During phpBB installation I noticed that it says No before Yes which is opposite order than seen other places like ACP.
I suggest making it consistant which ever way is prefered (Yes/No or No/Yes consistently).

Also the spacing between No and Yes is not the same as in ACP.
So suggest making that consistent too.
NejJa.jpg
JaNej.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26880
Joined: Fri Aug 29, 2008 9:49 am

Re: Make Yes/No consistent during installation

Post by Mick »

You should post this in Ideas.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3996
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Make Yes/No consistent during installation

Post by Kailey »

I'd almost be willing to classify this as a bug, although a very minor one that doesn't impede the operation of the installer. As for switching the options around, this is untested but theoretically should work.

OPEN: /phpbb/install/module/obtain_data/task/obtain_server_data.php

FIND (around line 117):

Code: Select all

				'cookie_secure' => array(
					'label'			=> 'COOKIE_SECURE',
					'description'	=> 'COOKIE_SECURE_EXPLAIN',
					'type'			=> 'radio',
					'options'		=> array(
						array(
							'value'		=> 0,
							'label'		=> 'NO',
							'selected'	=> (!$cookie_secure),
						),
						array(
							'value'		=> 1,
							'label'		=> 'YES',
							'selected'	=> ($cookie_secure),
						),
					),
				),
				'force_server_vars' => array(
					'label'			=> 'FORCE_SERVER_VARS',
					'description'	=> 'FORCE_SERVER_VARS_EXPLAIN',
					'type'			=> 'radio',
					'options'		=> array(
						array(
							'value'		=> 0,
							'label'		=> 'NO',
							'selected'	=> true,
						),
						array(
							'value'		=> 1,
							'label'		=> 'YES',
							'selected'	=> false,
						),
					),
				),
REPLACE WITH:

Code: Select all

				'cookie_secure' => array(
					'label'			=> 'COOKIE_SECURE',
					'description'	=> 'COOKIE_SECURE_EXPLAIN',
					'type'			=> 'radio',
					'options'		=> array(
						array(
							'value'		=> 1,
							'label'		=> 'YES',
							'selected'	=> ($cookie_secure),
						),
						array(
							'value'		=> 0,
							'label'		=> 'NO',
							'selected'	=> (!$cookie_secure),
						),
					),
				),
				'force_server_vars' => array(
					'label'			=> 'FORCE_SERVER_VARS',
					'description'	=> 'FORCE_SERVER_VARS_EXPLAIN',
					'type'			=> 'radio',
					'options'		=> array(
						array(
							'value'		=> 1,
							'label'		=> 'YES',
							'selected'	=> false,
						),
						array(
							'value'		=> 0,
							'label'		=> 'NO',
							'selected'	=> true,
						),
					),
				),
OPEN: /phpbb/install/module/obtain_data/task/obtain_email_data.php

FIND (around line 102):

Code: Select all

				'smtp_delivery' => array(
					'label'			=> 'USE_SMTP',
					'description'	=> 'USE_SMTP_EXPLAIN',
					'type'			=> 'radio',
					'options'		=> array(
						array(
							'value'		=> 0,
							'label'		=> 'NO',
							'selected'	=> true,
						),
						array(
							'value'		=> 1,
							'label'		=> 'YES',
							'selected'	=> false,
						),
					),
				),
REPLACE WITH:

Code: Select all

				'smtp_delivery' => array(
					'label'			=> 'USE_SMTP',
					'description'	=> 'USE_SMTP_EXPLAIN',
					'type'			=> 'radio',
					'options'		=> array(
						array(
							'value'		=> 1,
							'label'		=> 'YES',
							'selected'	=> false,
						),
						array(
							'value'		=> 0,
							'label'		=> 'NO',
							'selected'	=> true,
						),
					),
				),
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders

Return to “phpBB Discussion”