Hello Wei,
<select name="profile[type]">
<option value="0">{$lang.select}</option>
{foreach from=$account_types item='account_type'}
{if $account_type.ID == 5 ||...
Type: Posts; User: Viktor
Hello Wei,
<select name="profile[type]">
<option value="0">{$lang.select}</option>
{foreach from=$account_types item='account_type'}
{if $account_type.ID == 5 ||...
Hello Aytug,
You can create new condition in code if you want.
go to ftp://templates>>your_template>>tpl>>controllers>>registration.tpl find code at line ~124:
<select...
Hello all,
Excuse me for previous fix but it's not correct because I found new error if you delete this code:
foreach ($types as $type)
{
$tmp_types[$type['ID']] = $type;
}
Hello All,
Why you deleted :
return $types; too?
I said in previous answers: you should remove only :
foreach ($types as $type)
nononno you shouldn't delete it. I returned it and it woks good now. Leave it :)
It;s correct fix but Oslo remove next line: return $types;
I have returned and fix works good.
Would you please send me PM with ftp access details I will fix it asap!!!
Hello Oslo,
You should go to ftp://includes>>classes>>rlaccount.class.php find method: 'getAccountTypes'
and remove code from this method:
foreach ($types as $type)
{