View Full Version : Hidden account type?
Riba
October 31, 2012, 02:53 PM
Is it possible to have an account type that can be assigned to a user by administrator only and cannot be selected by the user during registration? I would like to have a user class with special benefits that I can assign based on specific criteria. Is there a different way to handle this?
Mike
November 1, 2012, 03:44 AM
Hello,
It's possible with small modification to the code:
open includes/controllers/registration.inc.php file
find code
/* get account types list */
$account_types = $rlAccount -> getAccountTypes('visitor');
$rlSmarty -> assign_by_ref('account_types', $account_types);
and change to
/* get account types list */
$account_types = $rlAccount -> getAccountTypes(array('visitor', 'your_account_type_key'));
$rlSmarty -> assign_by_ref('account_types', $account_types);
Andreas_M
November 1, 2012, 02:16 PM
Thank you, I also need the function
Andreas_M
November 1, 2012, 02:17 PM
Would it be possible to combine different dealer-account-types on one dealer page like /dealer-accounts.html?
Riba
November 1, 2012, 04:09 PM
Hello,
It's possible with small modification to the code:
open includes/controllers/registration.inc.php file
Thanks a ton, Mike!
Yakup calis
March 24, 2017, 07:30 AM
I wrote in the wrong place ...
You did not see sorry
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.