Customize User Login Box ( block )

admin's picture
in

If you want to customize the User Login box so that everything is displayed on one line like this, then add the following code to the page.tpl.php file of your theme.

<?php global $user; ?>
<?php if ($user->uid) : ?>
<?php print(t('Logged in as:'))?> <?php print l($user->name,'user/'.$user->uid); ?> |
<?php print l((t('log out')),"logout"); ?>
<?php else : ?>

" method="post">
<?php print l((t('Register')),"user/register"); ?> | <?php print(t('Login:'))?>



" />

<?php endif; ?>

More information can be found on

http://drupal.org/node/19855


's points

Points are visible to logged in users only

descriptionvalue
Members2262
Posts217
Comments112
Reads today
Reads all time
Hits today0