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

#   Admin activation bug

##

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

Less More

- Posts: 27
- Thank you received: 0
-
-

14 years 8 months ago [\#41424](#41424) by [justaguy](/forum/user/6149-justaguy "View justaguy's Profile")  *[Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41424 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")* was created by *[justaguy](/forum/user/6149-justaguy "View justaguy's Profile")*

I think I found a bug, but i'm not sure.
I'm using hikashop to register in my website, with both user plugins enabled and published.
In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account.
But if I set it to Admin activation, the user is getting after_register layout and the account is activated without any link.
Also, the user is not logged in.
I don't know if this is hikashop issue or not , i'm using joomla 2.5

Thanks for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 27
- Thank you received: 0
-
-

14 years 8 months ago [\#41425](#41425) by [justaguy](/forum/user/6149-justaguy "View justaguy's Profile")  Replied by *[justaguy](/forum/user/6149-justaguy "View justaguy's Profile")* on topic *[Re: Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41425 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")*

did a little debugin...
if i use joomla registration every thing works.
if i use hikashop registration and user option set to self , it works.
if i use hikashop registration and user option set to admin, it fails.

So, this must be a bug in hikashop as I want only registers users (and only users I activate) will be able to buy and login to my site.

Let me know if you need any more info, and thank you for a great product and support.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 8 months ago [\#41428](#41428) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41428 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")*

Hi,

HikaShop does not handle admin activation.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 27
- Thank you received: 0
-
-

14 years 8 months ago -  14 years 8 months ago [\#41430](#41430) by [justaguy](/forum/user/6149-justaguy "View justaguy's Profile")  Replied by *[justaguy](/forum/user/6149-justaguy "View justaguy's Profile")* on topic *[Re: Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41430 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")*

ok, but it shouldn't activate my users automatically...
he doesn't need's to click on any thing...
you already built the sync users plugins, so when a user needs self activation it works.
but when a user needs admin confirmation, it skips the self and the admin confirmation and activate the account...

Last edit: 14 years 8 months ago by [justaguy](/forum/user/6149-justaguy "View justaguy's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 8 months ago [\#41432](#41432) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41432 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")*

You can try to change the lines (several of them): Code:

if ($useractivation == '1'){

to: Code:

if ($useractivation &gt; 0){

in the file administrator/components/com_hikashop/classes/user.php
That might help the system to work like you want.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 27
- Thank you received: 0
-
-

14 years 8 months ago [\#41433](#41433) by [justaguy](/forum/user/6149-justaguy "View justaguy's Profile")  Replied by *[justaguy](/forum/user/6149-justaguy "View justaguy's Profile")* on topic *[Re: Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41433 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")*

will try tomorrow, its 2 am here now...
Thank you, but I still think it's a bug, I guess you'll be the judge of it...
will let you know tomorrow how it goes...

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 27
- Thank you received: 0
-
-

14 years 8 months ago -  14 years 8 months ago [\#41490](#41490) by [justaguy](/forum/user/6149-justaguy "View justaguy's Profile")  Replied by *[justaguy](/forum/user/6149-justaguy "View justaguy's Profile")* on topic *[Re: Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41490 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")*

just wanted to let you know that it's working now.
there are still some bugs like the user doesn't know the admin should activate him, and the admin gets an email with this text only:
COM_USERS_EMAIL_ACTIVATE_WITH_ADMIN_ACTIVATION_SUBJECT
but all in all it works now.
Thank you.

Last edit: 14 years 8 months ago by [justaguy](/forum/user/6149-justaguy "View justaguy's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 27
- Thank you received: 0
-
-

14 years 8 months ago [\#41511](#41511) by [justaguy](/forum/user/6149-justaguy "View justaguy's Profile")  Replied by *[justaguy](/forum/user/6149-justaguy "View justaguy's Profile")* on topic *[Re: Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41511 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")*

ok, this is strange...
this code is the same as the code in my ini override file, so it should take the text from there, but for some reason it doesn't...
let me know if you need any more info.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 8 months ago [\#41658](#41658) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Admin activation bug](/forum/3-bug-report/41424-admin-activation-bug#41658 "I think I found a bug, but i'm not sure. I'm using hikashop to register in my website, with both user plugins enabled and published. In joomla, when I set the user options to self activation, the user will get a massage that he need's to click on the link to activate his account. But if I set it to Admin activation, the user is getting after&#95;register layout and the account is activated without any link. Also, the user is not logged in. I don't know if this is hikashop issue or not , i'm using joomla 2.5  Thanks for your help.")*

The override of joomla doesn't work in emails.

Instead, try to add the code: Code:

$language =&amp; JFactory::getLanguage(); $language-&gt;load('com_users', JPATH_SITE, $language-&gt;getTag(), true);

before the code: Code:

if($model) $result = $model-&gt;activate($activation);

in the file components/com_hikashop/controllers/checkout.php
that should load the translations of com_users before sending the email to the admin.

If you want to add a message to tell the user that an admin will have to validate his account, it's in the same function that you can do that, like that:
$app-&gt;enqueueMessage('An administrator will now have to validate the activation of your account.');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MTQyNC1hZG1pbi1hY3RpdmF0aW9uLWJ1Zz90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.126 seconds

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