- Posts: 2696
- Thank you received: 74
URGENT after_register.php
14 years 4 months ago - 14 years 4 months ago #49204
by erickb
URGENT after_register.php was created by erickb
Bonjour
./templates/MONTPL/html/com_hikashop/user/after_register.php est vide
comment recuperer l'user qui vient de s'enregistrer avec name username email password ?
j'ai essaye
mais je ne recupere pas l'$user
merci
./templates/MONTPL/html/com_hikashop/user/after_register.php est vide
comment recuperer l'user qui vient de s'enregistrer avec name username email password ?
j'ai essaye
Code:
<?
defined('_JEXEC') or die('Restricted access');
require_once JPATH_BASE.DS.'includes'.DS.'framework.php';
jimport( 'joomla.user.user' );
$user =& JFactory::getUser();
?>
<div class="user-msg">
<?= JText::sprintf('THANK_YOU_FOR_REGISTERING_2', $user->name); ?>
<?= JText::sprintf('THANK_YOU_FOR_REGISTERING_3', $user->email, $user->password);?>
</div>
?>
mais je ne recupere pas l'$user
merci
Last edit: 14 years 4 months ago by erickb.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49207
by nicolas
Replied by nicolas on topic Re: URGENT after_register.php
comme ceci:
$user = JRequest::getVar('main_user_data');
$user = JRequest::getVar('main_user_data');
Please Log in or Create an account to join the conversation.
14 years 4 months ago - 14 years 4 months ago #49208
by erickb
Replied by erickb on topic Re: URGENT after_register.php
mais avec quel require_once et que jimport ?
je recupere rien c'est pareil
je recupere rien c'est pareil
Last edit: 14 years 4 months ago by erickb.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49210
by nicolas
Replied by nicolas on topic Re: URGENT after_register.php
aucun require et aucun jimport. Sinon, je vous l'aurais dit.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49212
by erickb
Replied by erickb on topic Re: URGENT after_register.php
non ca ne marche pas je ne recupere rien
dans ./templates/MONTPL/html/com_hikashop/user/after_register.php
dans ./templates/MONTPL/html/com_hikashop/user/after_register.php
Code:
<?
$user = JRequest::getVar('main_user_data');
?>
<div class="user-msg">
<?= JText::sprintf('THANK_YOU_FOR_REGISTERING_2', $user->name); ?>
<?= JText::sprintf('THANK_YOU_FOR_REGISTERING_3', $user->email, $user->password);?>
</div>
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49213
by nicolas
Replied by nicolas on topic Re: URGENT after_register.php
Faites un var_dump de $user.
c'est $user pas $user->email
c'est $user pas $user->email
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49215
by erickb
Replied by erickb on topic Re: URGENT after_register.php
ça marche
mais pourquoi (et comment) on ne recupere rien avec $user =& JFactory::getUser(); ?
merci
mais pourquoi (et comment) on ne recupere rien avec $user =& JFactory::getUser(); ?
merci
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49216
by nicolas
Replied by nicolas on topic Re: URGENT after_register.php
$user =& JFactory::getUser(); récupère les informations de l'utilisateur courant.
Quand vous vous enregistrez vous n'etes pas connecté, et après l'enregistrement non plus.
Quand vous vous enregistrez vous n'etes pas connecté, et après l'enregistrement non plus.
Please Log in or Create an account to join the conversation.
14 years 4 months ago #49217
by erickb
Replied by erickb on topic Re: URGENT after_register.php
ok merci
Please Log in or Create an account to join the conversation.
Time to create page: 0.237 seconds