This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

judeudemolidor
judeudemolidor

you know how make user.plugin and add other fields without tabs (all on one only tab) for front-end (in this case put more fields like photo)

Obs (i dont want effect with user.plus)

judeudemolidor
judeudemolidor

i want to use the Groups on the dropdown for user select groups (not create group only select)

judeudemolidor
judeudemolidor

i resolve with "workaround"

Require -> User.Plugin

open and modify ~/plugins/rainlab/user/updates/create_users_table.php

public function up()
{
    Schema::create('users', function($table)
    {
        $table->engine = 'InnoDB';
        $table->increments('id');
        $table->string('name')->nullable();
        $table->string('email')->unique();
        $table->string('password');

        //put fields what you want add 
        //For more type on schema consult https://laravel.com/docs/4.2/schema
        //Into this case i use "linkedin"
        $table->string('linkedin')->nullable();      

        $table->string('activation_code')->nullable()->index();
        $table->string('persist_code')->nullable();
        $table->string('reset_password_code')->nullable()->index();
        $table->text('permissions')->nullable();
        $table->boolean('is_activated')->default(0);
        $table->timestamp('activated_at')->nullable();
        $table->timestamp('last_login')->nullable();
        $table->timestamps();
    });
}

Into this case i use "linkedin"

and open and modify ~/plugins/rainlab/user/components/account/register.htm

<form data-request="onRegister">

<div class="form-group">
    <label for="registerEmail">Email</label>
    <input
        name="email"
        type="email"
        class="form-control"
        id="registerEmail"
        placeholder="Enter your email" />
</div>

<div class="form-group">
    <label for="registerPassword">Password</label>
    <input
        name="password"
        type="password"
        class="form-control"
        id="registerPassword"
        placeholder="Choose a password" />
</div>