Admin activation bug

  • Posts: 27
  • Thank you received: 0
12 years 2 months ago #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_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 or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
12 years 2 months ago #41425

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 or Create an account to join the conversation.

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
12 years 2 months ago #41428

Hi,

HikaShop does not handle admin activation.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
12 years 2 months ago #41430

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: 12 years 2 months ago by justaguy.

Please Log in or Create an account to join the conversation.

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
12 years 2 months ago #41432

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

if ($useractivation == '1'){
to:
if ($useractivation > 0){
in the file administrator/components/com_hikashop/classes/user.php
That might help the system to work like you want.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
12 years 2 months ago #41433

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 or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
12 years 2 months ago #41490

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: 12 years 2 months ago by justaguy.

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 0
12 years 2 months ago #41511

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 or Create an account to join the conversation.

  • Posts: 81677
  • Thank you received: 13102
  • MODERATOR
12 years 2 months ago #41658

The override of joomla doesn't work in emails.

Instead, try to add the code:

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

before the code:
if($model) $result = $model->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->enqueueMessage('An administrator will now have to validate the activation of your account.');

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum