Create Register Page for user registration

Apple vCTo Posted in General Discussion 5 years ago

By default, the registration step is processed on homepage, right?
But I'd like to display "register" link on top menu bar and display register page by clicking the link.
Any suggestion is welcome for this.
Thanks,
Apple-vCTO

Replies
Afrikaans Apple vCTo Replied 5 years ago

Well, how to customize the registration form fields?
I just want to use Email, Username, Password for the registration.

Best,
Apple-vCTO

Afrikaans Apple vCTo Replied 5 years ago

Hi Arsalan, thanks for your correct answer.
I've implemented custom register page, but using custom theme, not using component.
The way to implement was same as using component.
Actually, it was to
1. write ossn_register_page('register', 'custom_register_page'); in ossn_com.php of custom theme
and specifying the custom register page file in ossn_register_page() function.

ossn_register_page('register', 'custom_register_page');

function custom_register_page() {
    $title = 'Register Page';
    $content = ossn_set_page_layout('contents', array(
                   'content' => ossn_view('themes/goapple/plugins/default/pages/contents/user/register'),
                ));
    echo ossn_view_page($title, $content);
}
  1. create custom register page according to specified path above.
Afrikaans Apple vCTo Replied 5 years ago
Indonesian Arsalan Shah Replied 5 years ago

You can create a custom page
You need to create a component that

  1. Override the system/plugins/default/pages/contents/index.php Simply copy system/plugin/default/pages/contents/index.php to components/yourcomponet/plugins/default/pages/contents/index.php
  2. In your ossn_com.php add a ossn_register_page('signup', 'handler_for_singup'); (Simply see hello world component for checking how to create own page)