[Skip to main content](#vessel-content)

#   URGENT after\_register.php

##

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 6 months ago -  14 years 6 months ago [\#49204](#49204) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  *[URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49204 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")* was created by *[erickb](/forum/user/4069-erickb "View erickb's Profile")*

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 Code:

&lt;? defined('_JEXEC') or die('Restricted access'); require_once JPATH_BASE.DS.'includes'.DS.'framework.php'; jimport( 'joomla.user.user' ); $user =&amp; JFactory::getUser(); ?&gt; &lt;div class="user-msg"&gt; &lt;?= JText::sprintf('THANK_YOU_FOR_REGISTERING_2', $user-&gt;name); ?&gt; &lt;?= JText::sprintf('THANK_YOU_FOR_REGISTERING_3', $user-&gt;email, $user-&gt;password);?&gt; &lt;/div&gt; ?&gt;

mais je ne recupere pas l'$user

merci

Last edit: 14 years 6 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86577
- Thank you received: 14321
-
-

14 years 6 months ago [\#49207](#49207) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49207 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")*

comme ceci:
$user = JRequest::getVar('main_user_data');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 6 months ago -  14 years 6 months ago [\#49208](#49208) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49208 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")*

mais avec quel require_once et que jimport ?

je recupere rien c'est pareil

Last edit: 14 years 6 months ago by [erickb](/forum/user/4069-erickb "View erickb's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86577
- Thank you received: 14321
-
-

14 years 6 months ago [\#49210](#49210) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49210 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")*

aucun require et aucun jimport. Sinon, je vous l'aurais dit.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 6 months ago [\#49212](#49212) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49212 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")*

non ca ne marche pas je ne recupere rien

dans ./templates/MONTPL/html/com_hikashop/user/after_register.php
Code:

&lt;? $user = JRequest::getVar('main_user_data'); ?&gt; &lt;div class="user-msg"&gt; &lt;?= JText::sprintf('THANK_YOU_FOR_REGISTERING_2', $user-&gt;name); ?&gt; &lt;?= JText::sprintf('THANK_YOU_FOR_REGISTERING_3', $user-&gt;email, $user-&gt;password);?&gt; &lt;/div&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86577
- Thank you received: 14321
-
-

14 years 6 months ago [\#49213](#49213) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49213 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")*

Faites un var_dump de $user.
c'est $user pas $user-&gt;email

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 6 months ago [\#49215](#49215) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49215 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")*

ça marche

mais pourquoi (et comment) on ne recupere rien avec $user =&amp; JFactory::getUser(); ?

merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86577
- Thank you received: 14321
-
-

14 years 6 months ago [\#49216](#49216) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49216 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")*

$user =&amp; 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.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[erickb](/forum/user/4069-erickb "View erickb's Profile")**
- [![erickb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4069-erickb "View erickb's Profile") Topic Author
- [ Offline](/forum/user/4069-erickb)

Less More

- Posts: 2704
- Thank you received: 74
-
-

14 years 6 months ago [\#49217](#49217) by [erickb](/forum/user/4069-erickb "View erickb's Profile")  Replied by *[erickb](/forum/user/4069-erickb "View erickb's Profile")* on topic *[Re: URGENT after\_register.php](/forum/5-support-en-francais-french-support-/49204-urgent-after-register-php#49217 "Bonjour  ./templates/MONTPL/html/com&#95;hikashop/user/after&#95;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")*

ok merci

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUtc3VwcG9ydC1lbi1mcmFuY2Fpcy1mcmVuY2gtc3VwcG9ydC0vNDkyMDQtdXJnZW50LWFmdGVyLXJlZ2lzdGVyLXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.082 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
