Back to top

Autore Topic: [RISOLTO] J1.7.4 - Rimuovere dal modulo di login il link non possiedi un account  (Letto 6704 volte)

Offline rushseeker

  • Esploratore
  • **
  • Post: 180
    • Mostra profilo
     Nome utente                Password                   Come da oggetto:
Come faccio a rimuovere Non possiedi un account?
« Ultima modifica: 06 Mar 2012, 09:48:27 da rushseeker »

Offline tomtomeight

  • Global Moderator
  • Fuori controllo
  • ********
  • Post: 32046
  • Sesso: Maschio
  • Gli automatismi aiutano ma non insegnano nulla.
    • Mostra profilo
Re:[probl] Rimuovere dal modulo di login - non possiedi un account
« Risposta #1 il: 06 Mar 2012, 09:38:53 »
Nelle impostazioni da qualche parte, adesso non ricordo, metti consenti registrazione utenti a no.

Offline rushseeker

  • Esploratore
  • **
  • Post: 180
    • Mostra profilo
Re:[probl] Rimuovere dal modulo di login - non possiedi un account
« Risposta #2 il: 06 Mar 2012, 09:47:12 »
Grazie per aver risposto cosi velocemente.
Sto usando:
Jooma 1.7.4




Volevo lasciare attiva la registrazione... ma con il mio modo di inserire dati (fatto in chronoform).... ed ecco dopo un poco di sbattimento.


Ho finalmente trovato la soluzione:
Andate su compontents/com_users/views/login/tmpl
modificate default_login.php


togliete dalla riga 62 alla 69
da cosi:
Codice: [Seleziona]

<?php
/**
 * @version $Id: default_login.php 22060 2011-09-12 14:14:55Z infograf768 $
 * @package Joomla.Site
 * @subpackage com_users
 * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license GNU General Public License version 2 or later; see LICENSE.txt
 * @since 1.5
 */


defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
?>

<div class="login<?php echo $this->pageclass_sfx?>">
<?php if ($this->params->get('show_page_heading')) : ?>
<h1>
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>


<?php if (($this->params->get('logindescription_show') == && str_replace(' '''$this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?>
<div class="login-description">
<?php endif ; ?>


<?php if($this->params->get('logindescription_show') == 1) : ?>
<?php echo $this->params->get('login_description'); ?>
<?php endif; ?>


<?php if (($this->params->get('login_image')!='')) :?>
<img src="<?php echo $this->escape($this->params->get('login_image')); ?>" class="login-image" alt="<?php echo JTEXT::_('COM_USER_LOGIN_IMAGE_ALT')?>"/>
<?php endif; ?>


<?php if (($this->params->get('logindescription_show') == && str_replace(' '''$this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?>
<>
<?php endif ; ?>


<form action="<?php echo JRoute::_('index.php?option=com_users&task=user.login'); ?>" method="post">


<fieldset>
<?php foreach ($this->form->getFieldset('credentials') as $field): ?>
<?php if (!$field->hidden): ?>
<div class="login-fields"><?php echo $field->label?>
<?php echo $field->input?><>
<?php endif; ?>
<?php endforeach; ?>
<button type="submit" class="button"><?php echo JText::_('JLOGIN'); ?></button>
<input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('login_redirect_url',$this->form->getValue('return'))); ?>" />
<?php echo JHtml::_('form.token'); ?>
</fieldset>
</form>
<>
<div>
<ul>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
<?php echo JText::_('COM_USERS_LOGIN_RESET'); ?></a>
</li>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
<?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?></a>
</li>
<?php
$usersConfig JComponentHelper::getParams('com_users');
if ($usersConfig->get('allowUserRegistration')) : ?>

<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration'); ?>">
<?php echo JText::_('COM_USERS_LOGIN_REGISTER'); ?></a>
</li>
<?php endif; ?>
</ul>
<>






a cosi:
Codice: [Seleziona]



<?php
/**
 * @version $Id: default_login.php 22060 2011-09-12 14:14:55Z infograf768 $
 * @package Joomla.Site
 * @subpackage com_users
 * @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license GNU General Public License version 2 or later; see LICENSE.txt
 * @since 1.5
 */


defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
?>

<div class="login<?php echo $this->pageclass_sfx?>">
<?php if ($this->params->get('show_page_heading')) : ?>
<h1>
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php endif; ?>


<?php if (($this->params->get('logindescription_show') == && str_replace(' '''$this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?>
<div class="login-description">
<?php endif ; ?>


<?php if($this->params->get('logindescription_show') == 1) : ?>
<?php echo $this->params->get('login_description'); ?>
<?php endif; ?>


<?php if (($this->params->get('login_image')!='')) :?>
<img src="<?php echo $this->escape($this->params->get('login_image')); ?>" class="login-image" alt="<?php echo JTEXT::_('COM_USER_LOGIN_IMAGE_ALT')?>"/>
<?php endif; ?>


<?php if (($this->params->get('logindescription_show') == && str_replace(' '''$this->params->get('login_description')) != '') || $this->params->get('login_image') != '') : ?>
<>
<?php endif ; ?>


<form action="<?php echo JRoute::_('index.php?option=com_users&task=user.login'); ?>" method="post">


<fieldset>
<?php foreach ($this->form->getFieldset('credentials') as $field): ?>
<?php if (!$field->hidden): ?>
<div class="login-fields"><?php echo $field->label?>
<?php echo $field->input?><>
<?php endif; ?>
<?php endforeach; ?>
<button type="submit" class="button"><?php echo JText::_('JLOGIN'); ?></button>
<input type="hidden" name="return" value="<?php echo base64_encode($this->params->get('login_redirect_url',$this->form->getValue('return'))); ?>" />
<?php echo JHtml::_('form.token'); ?>
</fieldset>
</form>
<>
<div>
<ul>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>">
<?php echo JText::_('COM_USERS_LOGIN_RESET'); ?></a>
</li>
<li>
<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind'); ?>">
<?php echo JText::_('COM_USERS_LOGIN_REMIND'); ?></a>
</li>

</ul>
<>










mau_develop

  • Visitatore
...poi quando aggiorni qualcosa ricordati sempre che devi rifare la modifica....oppure fai un override ... as usual
M.

Offline rushseeker

  • Esploratore
  • **
  • Post: 180
    • Mostra profilo
override? cioè c'è un modo per  rendere permanente sta cosa anche dopo un update?

Offline mygink

  • Esploratore
  • **
  • Post: 51
  • Sesso: Maschio
    • Mostra profilo
ciao, io ho lo stesso problema, uso j2.5 ed ho provato a fare come descritto da rushseeker ma non cambia nulla.... continuo a vedere il link registrati perfettamente funzionante! E' cambiato qualcosa con J2.5?  :'(

Offline mygink

  • Esploratore
  • **
  • Post: 51
  • Sesso: Maschio
    • Mostra profilo

Offline sekmo

  • Nuovo arrivato
  • *
  • Post: 14
    • Mostra profilo
« Ultima modifica: 19 Dic 2012, 15:27:22 da sekmo »
passate a wordpress!

 



Web Design Bolzano Kreatif