I want to remove the visible login how do I do this as it is already disabled in Blocks?

CommentFileSizeAuthor
#2 big_screenshot.preview.jpg50.47 KBalicemoon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ollar’s picture

I cant understand what do you actually want. Could you attach a screenshot?

alicemoon’s picture

FileSize
50.47 KB

I have removed the login marked with the yellow arrow through the block menu but want to remove the login marked with the red arrow from my pages so that to login you go to a specific page ie /drupal/user and the login is not obvious to most visitors.

ollar’s picture

Status: Active » Fixed

The easiest way to do that is to add that line into your local.css file:

   .log-box{

       display: none;

   }

But if you want to remove it from your page open page.tpl.php and remove the block:


<!-- log-box-->
			
			<div class="log-box <?php if ($_GET['q'] == 'user/register') echo 'inversed'; ?>">
                
				 
				 
    <?php if (!$user->uid): ?>
				 <!-- log-box-first --><div class="log-box-first"><div class="left-side"><div class="right-side">
				 <?php echo l(t("Log in"), "user");?>
				 <!-- /log-box-first --></div></div></div>


				 <?php if ($registration_enabled): ?>    	
                 <!-- log-box-second --><div class="log-box-second"><div class="left-side"><div class="right-side">
				 <?php echo l(t("Create new account"), "user/register");?>
				 <!-- /log-box-second --></div></div></div>
				 <?php endif; ?>

	
 	
    <?php else: ?> 

				<!-- log-box-first --><div class="log-box-first"><div class="left-side"><div class="right-side">
				<?php echo t("<strong>!user</strong>", array('!user' => l($user->name, "user"))); ?>&nbsp;|&nbsp;<?php echo l(t("Edit"), "user/" . $user->uid . "/edit");?>
				 <!-- /log-box-first --></div></div></div>


				 <!-- log-box-second --><div class="log-box-second"><div class="left-side"><div class="right-side">
				 <?php echo l(t("Log out"), "logout"); ?>
				 <!-- /log-box-second --></div></div></div>

    <?php endif; ?>



            <!-- /log-box--></div>

After that "Login box" will not be generated any more.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.