Back to top

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

Offline rushseeker

  • Full Member
  • ***
  • Post: 179
    • 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
  • Cyborg
  • ********
  • Post: 15461
  • Sesso: Maschio
    • Mostra profilo
    • Capri Shop
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.
e il marinaio spiegò le vele al vento, ma il vento non le capì.

Musica e Tastiere che Passione!

Offline rushseeker

  • Full Member
  • ***
  • Post: 179
    • 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>
<>










Offline M_W_C

  • Cyborg
  • ******
  • Post: 12063
  • Web Solutions
    • Mostra profilo
    • Milano Web City
...poi quando aggiorni qualcosa ricordati sempre che devi rifare la modifica....oppure fai un override ... as usual
M.
Questa notte ho dormito poco... sotto casa mia una ragazza che faceva burlesque litigava con il suo statista

Offline rushseeker

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

Offline mygink

  • Newbie
  • *
  • Post: 32
  • 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 sekmo

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

 



Web Design Bolzano Kreatif