Author Topic: Remove register link in VM Login (code)  (Read 1548 times)

yae

  • Beginner
  • *
  • Posts: 38
Remove register link in VM Login (code)
« on: April 29, 2011, 11:11:24 am »
HI

I want to remove the register link in VM Login. Only I want to create new accounts when an user is processing a new order.

only I need to remove that I've marked in red font?

code /.../mod_virtuemart_login/mod_virtuemart_login.php    

Quote
[...]

<form action="<?php echo $action ?>" method="post" name="login" id="login">
      <?php if( $params->get('pretext') ) : ?>
      <?php echo $params->get('pretext'); ?>
      <br />
      <?php endif; ?>
      <label for="username_vmlogin"><?php echo $VM_LANG->_('USERNAME') ?></label><br/>
      <input class="inputbox" type="text" id="username_vmlogin" size="12" name="username" />
      <br />
      <label for="password_vmlogin"><?php echo $VM_LANG->_('PASSWORD') ?></label><br/>
      <input type="password" class="inputbox" id="password_vmlogin" size="12" name="passwd" />
      <?php if( @VM_SHOW_REMEMBER_ME_BOX == '1' ) {
               $remember_me_checked = $params->get('remember_me_default', 1) ? 'checked="checked"' : '';
         ?>
      <br />
      <label for="remember_vmlogin"><?php echo $VM_LANG->_('REMEMBER_ME') ?></label>
      <input type="checkbox" name="remember" id="remember_vmlogin" value="yes" <?php echo $remember_me_checked ?>  />
      <?php } else { ?>
      <br />
      <input type="hidden" name="remember" value="yes" />
      <?php } ?>
      <br />
      <input type="submit" value="<?php echo $VM_LANG->_('BUTTON_LOGIN') ?>" class="button" name="Login" />
      <ul>
         <li><a href="<?php echo $reset_url ?>"><?php echo $VM_LANG->_('LOST_PASSWORD') ?></a></li>
         <?php if( $remind_url ) : ?>
         <li><a href="<?php echo $remind_url ?>"><?php echo $VM_LANG->_('FORGOT_YOUR_USERNAME') ?></a></li>
         <?php endif; ?>
         <?php if( $mosConfig_allowUserRegistration == '1' ) : ?>
         <li><?php echo $VM_LANG->_('NO_ACCOUNT') ?> <a href="<?php echo $registration_url ?>"><?php echo $VM_LANG->_('CREATE_ACCOUNT') ?></a></li>
         <?php endif; ?>

      </ul>
      <input type="hidden" value="login" name="op2" />
      <input type="hidden" value="<?php echo $return_url ?>" name="return" />
      <input type="hidden" name="<?php echo $validate; ?>" value="1" />
      <?php echo $params->get('posttext'); ?>
   </form>

[...]

Regards
Yae

:-)