How do you edit site registration.php to eliminate or change fields

Permalink 1 user found helpful
We need to change and remove several fields from our site registration form. How do we do that? I've see some discussions about opening the single page registration.php and making changes on it, but they aren't very clear in terms of the steps in the process.

View Replies:
MrKDilkington replied on at Permalink Reply
MrKDilkington
Hi dwsteven,

I believe it can be done this way.

5.7
Single Page
- copy register.php
concrete\single_pages\register.php
- paste into application\single_pages
application\single_pages\register.php

Single Page Controller
- copy register.php
concrete\controllers\single_page\register.php
- paste into application\controllers\single_page
application\controllers\single_page\register.php
- open register.php and change the namespace
namespace Concrete\Controller\SinglePage;
to
namespace Application\Controller\SinglePage;

5.6
http://www.concrete5.org/community/forums/themes/editing-system-pag...
Responsive replied on at Permalink Reply
Responsive
Hi
This works but I have a related problem in that as soon as I apply the theme to the register page using the below , I lose any error messages on the form. Not sure if left anything out.

Have also tested this using the Elemental theme in the concrete directory and works ok so seems to be related to themes installed in the application directory.

application/config/app.php
<?php
return array(
 'theme_paths'         => array(
        '/login'            => 'template',
       '/register'         => 'template',
        '/account/*' => 'template',
        '/account' => 'template',
                '/terms' => VIEW_CORE_THEME
    ),    
);
dbuerer replied on at Permalink Reply
Add "Loader::element('system_errors', array('error' => $error));" into your theme's view.php file just before $innerContent is displayed:


ex:
Loader::element('system_errors', array('error' => $error));
echo $innerContent;
Responsive replied on at Permalink Reply
Responsive
Thank you very much :)

<?php
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>
<main>
    <div class="container">
        <div class="row">
            <div class="col-sm-12">
          <?php Loader::element('system_errors', array('error' => $error));
                 print $innerContent; ?>
            </div>
        </div>
    </div>
</main>
<?php  $this->inc('elements/footer.php'); ?>