Ir para conteúdo

(Resolvido)[WEBSITE] como eu troco o sistema VIP (storage) do gesior pra premium account?

Featured Replies

  • Respostas 17
  • Visualizações 2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Posted Images

Postado
4 minutos atrás, poko360 disse:

@Yinz
funcionou perfeitamente (ficou verde qnd botei vip)
mudei de "vip_time" pra "premdays"


agora so falta essa parte, vc sabe arrumar pra botar a data exata que sai a premium?
aa.png.a57c2815c3c6215e0354ef4407489122.thumb.png.e75eddebd7b66be345d3d5690a6ce5ab.png

 

troca essa parte aqui

 

    //Here start our new accountmanagement ;D
    if($action == "")
    {
        if($account_logged->getCustomField('vip_time') > 0)
            $account_statusOver = '
                <span class="green">
                    <span class="BigBoldText">VIP Account</span>
                </span>';
        else
            $account_statusOver = '
                <span class="red">
                    <span class="BigBoldText">Free Account</span>
                </span>';
                
        if($account_logged->getCustomField('vip_time') > 0)
            $account_statusPic = '<img class="AccountStatusImage" src="'.$layout_name.'/images/account/account-status_green.gif" alt="free account">';
        else
            $account_statusPic = '<img class="AccountStatusImage" src="'.$layout_name.'/images/account/account-status_red.gif" alt="free account">';
            

por essa aq

//Here start our new accountmanagement ;D
	if($action == "")
	{
		if($account_logged->getCustomField('premdays') > 0)
			$account_statusOver = '
				<span class="green">
					<span class="BigBoldText">Premium Account</span>
				</span>';
		else
			$account_statusOver = '
				<span class="red">
					<span class="BigBoldText">Free Account</span>
				</span>';
				
		if($account_logged->getCustomField('premdays') > 0)
			$account_statusPic = '<img class="AccountStatusImage" src="'.$layout_name.'/images/account/account-status_green.gif" alt="free account">';
		else
			$account_statusPic = '<img class="AccountStatusImage" src="'.$layout_name.'/images/account/account-status_red.gif" alt="free account">';

e essa parte aqui

 

 //Here finish our new account management
    $account_id = $account_logged->getId();
    if($account_id == 1) header("Location: ?subtopic=accountmanagement&action=logout");
    
    if($action == "manage")
    {
        $account_reckey = $account_logged->getCustomField("key");
        $dataAtual = time();
        $dataProxima = $account_logged->getCustomField('vip_time');
        $data1 = $dataProxima - $dataAtual;
        $dataCerta = $data1 / 86400;
        if($account_logged->getCustomField('vip_time') > 0)
            $account_status = '<b><font color="#00CD00">VIP Account, '. floor($dataCerta) .' days left</font></b>';
        else
            $account_status = '<b><font color="red">Free Account</font></b>';
        if(empty($account_reckey))
            $account_registred = '<b><font color="red">No</font></b>';
        else
            if($config['site']['generate_new_reckey'] && $config['site']['send_emails'])
                $account_registred = '<b><font color="green">Yes ( <a href="?subtopic=accountmanagement&action=newreckey"> Buy new Rec key </a> )</font></b>';
            else
                $account_registred = '<b><font color="green">Yes</font></b>';
                
        $account_created = $account_logged->getCreateDate();
        $account_email = $account_logged->getEMail();
        $account_email_new_time = $account_logged->getCustomField("email_new_time");
        if($account_email_new_time > 1)
            $account_email_new = $account_logged->getCustomField("email_new");
        $account_rlname = $account_logged->getRLName();
        $account_location = $account_logged->getLocation();

por essa aqui

 

//Here finish our new account management
	$account_id = $account_logged->getId();
	if($account_id == 1) header("Location: ?subtopic=accountmanagement&action=logout");
	
	if($action == "manage")
	{
		$account_reckey = $account_logged->getCustomField("key");
		$daysVip = $account_logged->getPremDays();
		$vipDays = $daysVip * 86400;
		$resDate = time() + $vipDays;
		if($account_logged->getCustomField('premdays') > 0)
			$account_status = '<b><font color="#00CD00">Your Premium Time expires at '.strftime('%b %d %Y, %H:%M:%S', $resDate).'</font></b>';
		else
			$account_status = '<b><font color="red">Free Account</font></b>';
		if(empty($account_reckey))
			$account_registred = '<b><font color="red">No</font></b>';
		else
			if($config['site']['generate_new_reckey'] && $config['site']['send_emails'])
				$account_registred = '<b><font color="green">Yes ( <a href="?subtopic=accountmanagement&action=newreckey"> Buy new Rec key </a> )</font></b>';
			else
				$account_registred = '<b><font color="green">Yes</font></b>';
				
		$account_created = $account_logged->getCreateDate();
		$account_email = $account_logged->getEMail();
		$account_email_new_time = $account_logged->getCustomField("email_new_time");
		if($account_email_new_time > 1)
			$account_email_new = $account_logged->getCustomField("email_new");
		$account_rlname = $account_logged->getRLName();
		$account_location = $account_logged->getLocation();

 

Editado por Yinz (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo