willprobr 4 Posted September 20, 2018 Share Posted September 20, 2018 I need to remove this option from the new user registry, but I have nowhere to find the option. Thanks. Link to comment Share on other sites More sharing options...
willprobr 4 Posted September 21, 2018 Author Share Posted September 21, 2018 After a few hours trying, I was able to solve this problem as follows: Edit file register.php in /applications/core/modules/front/system/register.php Select from the row 386 to 408. \IPS\Member::loggedIn()->language()->words[ "reg_agreed_terms" ] = sprintf( \IPS\Member::loggedIn()->language()->get("reg_agreed_terms"), \IPS\Http\Url::internal( 'app=core&module=system&controller=terms', 'front', 'terms', array(), \IPS\Http\Url::PROTOCOL_RELATIVE ) ); /* Build the appropriate links for registration terms & privacy policy */ if ( \IPS\Settings::i()->privacy_type == "internal" ) { \IPS\Member::loggedIn()->language()->words[ "reg_agreed_terms" ] .= sprintf( \IPS\Member::loggedIn()->language()->get("reg_privacy_link"), \IPS\Http\Url::internal( 'app=core&module=system&controller=privacy', 'front', 'privacy', array(), \IPS\Http\Url::PROTOCOL_RELATIVE ), 'data-ipsDialog data-ipsDialog-size="wide" data-ipsDialog-title="' . \IPS\Member::loggedIn()->language()->get("privacy") . '"' ); } else if ( \IPS\Settings::i()->privacy_type == "external" ) { \IPS\Member::loggedIn()->language()->words[ "reg_agreed_terms" ] .= sprintf( \IPS\Member::loggedIn()->language()->get("reg_privacy_link"), \IPS\Http\Url::external( \IPS\Settings::i()->privacy_link ), 'target="_blank"' ); } $form->add( new \IPS\Helpers\Form\Checkbox( 'reg_agreed_terms', NULL, TRUE, array(), function( $val ) { if ( !$val ) { throw new \InvalidArgumentException('reg_not_agreed_terms'); } } ) ); \IPS\Output::i()->jsFiles = array_merge( \IPS\Output::i()->jsFiles, \IPS\Output::i()->js( 'front_system.js', 'core', 'front' ), \IPS\Output::i()->js( 'front_templates.js', 'core', 'front' ) ); return $form; and replace with: \IPS\Member::loggedIn()->language()->words[ "reg_agreed_terms" ] = sprintf( ); /* Build the appropriate links for registration terms & privacy policy */ if ( \IPS\Settings::i()->privacy_type == "internal" ) { \IPS\Member::loggedIn()->language()->words[ "reg_agreed_terms" ] .= sprintf( ); } else if ( \IPS\Settings::i()->privacy_type == "external" ) { \IPS\Member::loggedIn()->language()->words[ "reg_agreed_terms" ] .= sprintf( ); } $form->add( new \IPS\Helpers\Form\Checkbox( 'reg_admin_mails', \IPS\Settings::i()->updates_consent_default == 'enabled' ? TRUE : FALSE, FALSE ) ); \IPS\Output::i()->jsFiles = array_merge( \IPS\Output::i()->jsFiles, \IPS\Output::i()->js( 'front_system.js', 'core', 'front' ), \IPS\Output::i()->js( 'front_templates.js', 'core', 'front' ) ); return $form; I hope this can help others who have doubts about it, that's it guys, see you next time. 1 Link to comment Share on other sites More sharing options...
Recommended Posts