I am using the Reflection theme, and modified it to look the way I like it. Now, the boxes where you input your username and password are links that link back to the main page. Where is the template file for the login box so I can fix it?

Comments

gunnettmd’s picture

When I created my site off of a PHPTemplate driven theme (Leaf), I added some custom code to display login boxes in my page.tpl.php file inside of my theme directory. Otherwise, I think it is all contained in pre-configured block, is it not?

Mike of Sighing Sage

compuguru’s picture

Could you possibly post a snippet of the code? I'm new to this Template system.

gunnettmd’s picture

Here is what I have in my page.tpl.php file for the login and password boxes. Realize also that I am using login toboggan as a custom login module, but before I had this module I still had the boxes up and functioning properly. Just change the form action item to point to your login link (hover over the existing link to find it I believe). Hope this helps!

       <!-- Login and Logout options including Recent Posts and User Profile links -->

<?php if ($user->uid) : ?> 
    <div id="login">
    Logged in as: <?php print l($user->name,'user/'.$user->uid); ?> |
    <?php print l("logout","logout"); ?> </div>
<?php else : ?> 
    <div id="register">
    <?php print l("REGISTER","toboggan/register"); ?> | LOGIN: <form action="?q=toboggan/login" method="post">
    <input type="hidden" name="edit[destination]" value="user" />
    <input type="text" maxlength="64" class="form-text" name="edit[name]" id="edit-name"
        style="width: 94px" value="" />
    <input type="password" class="form-password" maxlength="64" name="edit[pass]" id="edit-pass" style="width: 94px" 
        value=""/>
    <input type="submit" name="op" value="Go" /></form></div>
<?php endif; ?>

Mike of Sighing Sage