Forum

Thread tagged as: Question, Addons, Members

Member tags

Hi!

I'm in the middle of creating a data centre and am having issues with the permissions. I have the split the datacentre into different properties and users can only view the files for the properties that they have registered for. I've used tags for this. It's working great, but the only issue i'm having is that the tag doesn't get automatically added to the member when they register. my registerration template is below as well as the diagnostics.

Any help would be much appreciated! Thank you!!

<perch:form id="register" method="post" app="perch_members" type="pwllymyn">
    <div class="col-lg-6 col-lg-offset-3">
                                    <div class="panel">
                                        <div class="panel-body">
                                            <div class="text-center">

                                                <div class="clearfix"></div>
                                                <h5 class="content-group-lg">Create an account <small class="display-block">All fields are required</small></h5>
                                            </div>





                                            <div class="row">
                                                <div class="col-md-6">
                                                    <div class="form-group has-feedback">
                                                        <perch:label for="first_name">First name</perch:label>
        <perch:input type="text" id="first_name" required="true" label="First name" class="form-control"/>
        <perch:error for="first_name" type="required">Please add your name</perch:error>
                                                        <div class="form-control-feedback">
                                                            <i class="icon-user-check text-muted"></i>
                                                        </div>
                                                    </div>
                                                </div>

                                                <div class="col-md-6">
                                                    <div class="form-group has-feedback">
                                                        <perch:label for="last_name">Last name</perch:label>
        <perch:input type="text" id="last_name" required="true" label="Last name" class="form-control"/>
        <perch:error for="last_name" type="required">Please add your name</perch:error>
                                                        <div class="form-control-feedback">
                                                            <i class="icon-user-check text-muted"></i>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>



                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div class="form-group has-feedback">
                                                        <perch:label for="email">Email</perch:label>
        <perch:input type="email" id="email" required="true" placeholder="you@company.com" helper="PerchMembers_Members::check_email" class="form-control" />
        <perch:error for="email" type="required">Please add your email address</perch:error>
        <perch:error for="email" type="helper">That email address is already in use</perch:error>
                                                        <div class="form-control-feedback">
                                                            <i class="icon-mention text-muted"></i>
                                                        </div>


                                                    </div>
                                                </div>
                                                <div class="col-md-6">
                                                    <div class="form-group has-feedback">
                                                        <perch:label for="password">Password</perch:label>
        <perch:input type="password" id="password" required="true" match-with="password2" class="form-control"/>
        <perch:error for="password" type="required">Please add a password</perch:error>
        <perch:error for="password" type="match">Passwords do not match</perch:error>

                                                    </div>
                                                </div>

                                                <div class="col-md-6">
                                                    <div class="form-group has-feedback">
                                                        <perch:label for="password2">Please repeat your password</perch:label>
                                                        <perch:input type="password" id="password2" required="true" class="form-control" />
                                                        <perch:error for="password2" type="required">Please repeat your password</perch:error>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="clearfix">
                                                <perch:input type="submit" value="Register" class="btn bg-pink-400 pull-right" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        <perch:success>
        <p>Thanks!</p>
    </perch:success>

</perch:form>

Perch: 3.1.1, PHP: 5.6.33, MySQL: 5.5.56-MariaDB, with PDO Server OS: Linux, cgi-fcgi Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_blog (5.6.1), perch_forms (1.10), perch_members (1.6.4) App runtimes: <?php $apps_list = [ 'perch_blog', 'perch_members', ]; PERCH_LOGINPATH: /admin PERCH_PATH: /home/hp3-linc1-nfs2-y/099/391099/user/htdocs/admin PERCH_CORE: /home/hp3-linc1-nfs2-y/099/391099/user/htdocs/admin/core PERCH_RESFILEPATH: /home/hp3-linc1-nfs2-y/099/391099/user/htdocs/assets Image manipulation: GD PHP limits: Max upload 20M, Max POST 20M, Memory: 128M, Total max file upload: 20M F1: 3b606135b33e6a102526838f4152a807 Resource folder writeable: Yes SCRIPT_NAME: /admin/core/settings/diagnostics/index.php REQUEST_URI: /admin/core/settings/diagnostics/ DOCUMENT_ROOT: /home/hp3-linc1-nfs2-y/099/391099/user/htdocs HTTP_HOST: backwell.web-design.wales
Jade Marling

Jade Marling 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you go into Members / Forms and select your registration form, you can configure the default tags for a member who signs up using that form.

Great thank you Drew!