• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

BrainCMS Help

Custom Title Activated
Loyal Member
Joined
Jun 27, 2009
Messages
1,571
Reaction score
170
Hey,

I'm trying to convert RevCMS theme that I used to BrainCMS now the codes are lot different.



Code:

PHP:
<div id="login-form-container">
    <a href="#home" id="habbo-logo"></a>

    <form id="loginformitem" name="loginformitem" method="post">   
    <div id="login-columns">
        <div id="login-column-1">
            <label for="login-username">Username</label>
            <input tabindex="2" type="text" class="login-field" name="log_username" id="credentials-email">
        </div>

        <div id="login-column-2">
            <label for="login-password">Password</label>
            <input tabindex="3" class="login-field" type="password" name="log_password" type="password" id="credentials-password">
        </div>

       <div id="login-column-3">
        <input type="hidden" name="login">
        <input name="login" type="submit" value="login" class="submit" style="margin: -10000px; position: absolute;">
        <a href="#" tabindex="4" class="button" id="credentials-submit"><b></b><span>Login</span></a>
      
</div>   
</div>
        <div id="login-column-4">

<div id="fb-root"></div><font style="font-size:15.3px;"><b>{online}</b> {hotelname}(s) online!</font></div> </div>
    </span>
</a>

</div>        </div>
    </div>
</form>

Now I did find this in original BrainCMS Index page.

PHP:
<?php User::Login(); ?>

So I did place it in my new index.
 
Junior Spellweaver
Joined
Jul 5, 2008
Messages
156
Reaction score
19
PHP:
<?php User::Login(); ?>
can go anywhere on the index, preferably wherever you want the error displayed..

In system/app/classes/class.user.php, did you change all the
PHP:
$_POST['username']; $_POST['password'];
to
PHP:
$_POST['log_username']; $_POST['log_password'];
in the Login() function?

Either that, or change your input names back to "username" and "password".
 
Last edited:
Upvote 0
Back
Top