Show the vip status, based in the Vip System Of Kekox.
OutCome:
Account
Character
Firt add in your htdocs/pot/OTS_ACCOUNT.php
Next to
Add this
Next to
Add this
Next to
Add this
After to
Add this
Now, in htdocs/pot/OTS_PLAYER.php
After to
Add this
Htdocs/Accountmanagement,php
Add after to
Add this
Next to
Add this
Htdocs/Characters.PHP
After to
Add this
You end ._.
Don't forget to Rep
OutCome:
Account
Character
Firt add in your htdocs/pot/OTS_ACCOUNT.php
Next to
PHP:
'lastday' => 0,
Add this
PHP:
'vipdays' => 0,
Next to
PHP:
' . $this->db->fieldName('rlname') . ',
Add this
PHP:
'. $this->db->fieldName('vipdays') . ',
Next to
PHP:
' . $this->db->fieldName('rlname') . ' = ' . $this->db->quote($this->data['rlname']) . '
Add this
PHP:
' . $this->db->fieldName('vipdays') . ' = ' . $this->db->quote($this->data['vipdays']) . ',
After to
PHP:
public function getRLName()
{
if( !isset($this->data['rlname']) )
{
throw new E_OTS_NotLoaded();
}
return $this->data['rlname'];
}
Add this
PHP:
public function getPlayerVipDays()
{
if( !isset($this->data['vipdays']) )
{
throw new E_OTS_NotLoaded();
}
return $this->data['vipdays'];
}
Now, in htdocs/pot/OTS_PLAYER.php
After to
PHP:
public function getPremiumEnd()
{
if( !isset($this->data['id']) )
{
throw new E_OTS_NotLoaded();
}
return $this->getAccount()->getPremiumEnd();
}
Add this
PHP:
public function getPlayerVipDays()
{
if( !isset($this->data['id']) )
{
throw new E_OTS_NotLoaded();
}
return $this->getAccount()->getPlayerVipDays();
}
Htdocs/Accountmanagement,php
Add after to
PHP:
$account_email = $account_logged->getEMail();
Add this
PHP:
$account_vip = $account_logged->getPlayerVipDays() ? '<b><font color="green"> Vip Account, '.$account_logged->getPlayerVipDays().' Days left </font></b>' : '<b><font color="red">Not Vip Account</font></b>';
Next to
PHP:
" ><td class="LabelV" >Account Status:</td><td>'.$account_status.'</td></tr><tr style="background-color:'.$config['site']['darkborder'].';
Add this
PHP:
" ><td class="LabelV" >Vip Status:</td><td>'.$account_vip.'</td></tr><tr style="background-color:'.$config['site']['darkborder'].';
Htdocs/Characters.PHP
After to
PHP:
$main_content .= ($account->isPremium()) ? '<b><font color="green">Premium Account</font></b>' : '<b><font color="red">Free Account</font></b>';
Add this
PHP:
if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++;
$main_content .= '<TR BGCOLOR="'.$bgcolor.'"><TD>Vip*Status:</TD><TD>';
$main_content .= ($account->getPlayerVipDays()) ? '<b><font color="green">Vip Account</font></b>' : '<b><font color="red">Not Vip Account</font></b>';
You end ._.
Don't forget to Rep