RevCMS Registration Errors

Wolverine

Member
Aug 1, 2014
90
3
im looking to fix registration messages as they're not coming up

whenever i register it doesn't say whats wrong with the error such as "Username already taken"

Code:
        <div class="box_login regi">
        <?php if(isset($template->form->error)) { echo '<span class="error-msg"><i class="fa fa-warning"></i>'.$template->form->error.'</span>'; } ?>
            <form method="post">
                <div class="titulo">Make your own Habbo</div>
                <div class="msg regi">Username</div>
                <input type="username" name="reg_username" placeholder="Habbo Name" >
                <div class="clearfix"></div>
                <div class="msg regi">Password</div>
                <input type="password" name="reg_password" placeholder="Password">
                <div class="clearfix"></div>
                <div class="msg regi">Repeat Password</div>
                <input type="password" name="reg_rep_password" placeholder="Repeat Password">
                <div class="clearfix"></div>
                <div class="msg regi">E-Mail</div>
                <input type="username" name="reg_email" placeholder="E-Mail"><br/><br/><br/><br/>
                <button type="submit" name="register" id="credentials-submit" class="regi">Sign up now!</button>


                <div class="clearfix"></div>
                <div class="box_cinza">By registering, you agree to our Terms & Conditions.</div>
            </form>
        </div>
 

Detox

Member
Jul 24, 2010
365
24
this bring the error message code on screen

PHP:
<?php if(isset($template->form->error)) { echo '<span class="error-msg"><i class="fa fa-warning"></i>'.$template->form->error.'</span>'; } ?>

but in your class.user.php you need to look for this

PHP:
final public function register()
look near bottom for error message username invalid
 

Wolverine

Member
Aug 1, 2014
90
3
this bring the error message code on screen

PHP:
<?php if(isset($template->form->error)) { echo '<span class="error-msg"><i class="fa fa-warning"></i>'.$template->form->error.'</span>'; } ?>

but in your class.user.php you need to look for this

PHP:
final public function register()
look near bottom for error message username invalid
I got that, but it doesnt show for some reason
 

Detox

Member
Jul 24, 2010
365
24
replace this
PHP:
<?php if(isset($template->form->error)) { echo '<span class="error-msg"><i class="fa fa-warning"></i>'.$template->form->error.'</span>'; } ?>

with this code

PHP:
<?php
                if(isset($template->form->error))
                    echo "<div id=\"login-errors\">{$template->form->error}</div>";
            ?>

P.S now keep in mind I'm using Habbo Themed of RevCMS

So mine looks like this

2cgoo4n.jpg
 

5050

Member
Feb 25, 2015
34
13
Add
HTML:
<?php if(isset($template->form->error)) { ?>
                    <div id="loginerrorfieldwrapper">
                        <div id="loginerrorfield">
                            <div><?php echo $template->form->error; ?></div>
                        </div>
                    </div>
                <?php } ?>
to your index page underneath
HTML:
<header>
    <div id="border-left"></div>
    <div id="border-right">
</div>
 

Blasteh

big tits
Apr 3, 2013
1,156
521
They really did nothing but change the div(s), obviously it's not going to work.

Change your PHP to
Code:
<?php global $template; if(isset($template->form->error)) { echo '<span class="error-msg"><i class="fa fa-warning"></i>'.$template->form->error.'</span>'; } ?>
 

Users who are viewing this thread

Top