Material Skin (revcms) register problem

Results 1 to 3 of 3
  1. #1
    Apprentice Didier Bla is offline
    MemberRank
    Aug 2015 Join Date
    5Posts

    sad Material Skin (revcms) register problem

    Hello guy's,

    I have install the skin material for revcms

    The problem is i can not register i ussing Phoenix 3.11 database and i say :
    Security code was incorrect on register page

    Register Page scoure :
    PHP Code:
    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="utf-8">
            <link rel="stylesheet" type="text/css" href="{url}/app/tpl/skins/{skin}/css/index.css">
            <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
            <script type="text/javascript">
                function getUsers() {
                    var http;
                    if (window.XMLHttpRequest) {
                        http = new XMLHttpRequest();
                    } else if (window.ActiveXObject) {
                        http = new ActiveXObject("Microsoft.XMLHTTP");
                    }

                    http.onreadystatechange=function()
                    {
                        if (http.readyState==4 && http.status==200)
                        {
                            document.getElementById("reload_users").innerHTML= http.responseText;
                            setTimeout(getUsers, 1000);
                        }
                    }

                    http.open("GET", "online.php?noCache=" + Math.random(), true);
                    http.send();
                }

                window.onload = getUsers();
            </script>
        </head>

        <body>
            <div class="container">
                <div class="top">
                    <h1>{hotelname}</h1>
                    <h3><span class="online_users"> <span id="reload_users" class="reload_users"></span>{online} MoonPlace(s) online.</span></h3>
                </div>

                <?php
                    
    if(isset($template->form->error)) {
                        echo 
    '<div class="error">'.$template->form->error.'</div>';
                    }
                
    ?>

                <div class="left">
                    <h3>Geen Account? Maak er een aan het is gratis!</h3>
                    <div style="padding: 5px;">
                        <form action="register" method="post" align="center">
                            <input type="text" name="reg_username" placeholder="Username" class="text" id="username" value="<?php echo $template->form->reg_username?>"/>
                            <input type="text" name="reg_email" placeholder="E-Mail" class="text" id="email" value="<?php echo $template->form->reg_email?>" /><br>
                            <input type="password" name="reg_password" placeholder="Password" class="text" id="password" />
                            <input type="password" name="reg_rep_password" placeholder="Repeat password" class="text" id="retypenpassword" /><br>
                            <input type="hidden" name="reg_gender" id="gender" value="m" />
                            <input type="submit" class="btn" value="Register" name="register">
                        </form>
                    </div>
                </div>

                <div class="right">
                    <h3>Inloggen op Moonplace.</h3>
                    <div style="padding: 5px;">
                        <form id="loginformitem" name="loginformitem" method="post" align="center" action="index">
                            <input type="text" name="log_username" placeholder="Username" class="text" id="username"/>
                            <input type="password" name="log_password" placeholder="Password" class="text" id="password"/>
                            <input type="submit" value="Login" name="login" class="btn">
                        </form>
                    </div>
                </div>

                <div class="pre-bottom">
                    <h3>Recently registered users below.</h3>
                    <div style="padding: 5px;">
                        <ul style="list-style-type: none; width: 690px;">
                            <?php
                                $sql 
    mysql_query("SELECT id, look, username FROM users WHERE `rank` < '8' ORDER BY `id` DESC LIMIT 8");
                                while(
    $a mysql_fetch_array($sql)) {
                                    echo 
    "<li style=\"width: 85px; height: 120px; float: left; text-align: center; background: url('http://www.habbo.nl/habbo-imaging/avatarimage?figure={$a['look']}&direction=2&head_direction=2&size=m') center no-repeat;\">".filter($a['username'])."</li>";
                                }
                           
    ?>
                       </ul>
                   </div>
                </div>

                <div class="bottom"><small><b>Material #2</b> 2015 made by <b>Dima</b> [also known as C0R3G4M3R or Proinesis].</small></div>
            </div>
        </body>
    </html>
    Can you helping me ?

    Thank you.


  2. #2
    Wanheda Funsolit is offline
    MemberRank
    Feb 2012 Join Date
    SwedenLocation
    259Posts

    Re: Material Skin (revcms) register problem

    your class.core.php includes that the register page needs to have a default pin, or that it already has one set. I would sugguest you use the original revcms and then add the style.

  3. #3
    Loyalty Vaulient is offline
    MemberRank
    May 2012 Join Date
    MalaysiaLocation
    1,796Posts

    Re: Material Skin (revcms) register problem

    Quote Originally Posted by Funsolit View Post
    your class.core.php includes that the register page needs to have a default pin, or that it already has one set. I would sugguest you use the original revcms and then add the style.
    Or he can just use the default class core ? Or just remove the security code option instead and add recaptcha



Advertisement