Ir para conteúdo

[GESIOR] VictorWEBMaster 2019v


Posts Recomendados

  • 2 weeks later...
  • 2 weeks later...

Ola vctor. eu uso seu website muito bom mesmo mas eu estou presisando que esse script de tranferir points funcionase nele. eu coloco tudo certo mas fala que a quantidade de premium points nao informado eu deu uma editada So mudei o nome de premium points por VIP Points.

 

se puder me ajudar.

 

<?phpif(!$logged) {$link = "index.php?subtopic=transferpoints";include("login.php");}else{if ($action == ""){$main_content .='<div class="TableContainer" ><table class="Table5" cellpadding="0" cellspacing="0" ><div class="CaptionContainer" ><div class="CaptionInnerContainer" ><span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span><span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span><div class="Text" >Transfer Premium Points</div><span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span><span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span><span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span></div></div><tr><td><div class="InnerTableContainer" ><table style="width:100%;" ><tr><td><div class="TableShadowContainerRightTop" ><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);" ></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);" ><div class="TableContentContainer" ><table class="TableContent" width="100%" style="border:1px solid #faf0d7;" ><tr><td><p><b>Avaliação VIP Points:</b> '.$account_logged->getCustomField("premium_points").'</p></table></div></div><div class="TableShadowContainer" ><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);" ><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);" ></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);" ></div></div></div></td></tr><tr><td><div class="TableShadowContainerRightTop" ><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);" ></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);" ><div class="TableContentContainer" ><table class="TableContent" width="100%"  style="border:1px solid #faf0d7;" ><tr><td colspan="2" ><b>Condições para transferir VIP Points:</b></td></tr><tr><td colspan="3" ><ul>';if(!$account_logged->getRecoveryKey())$main_content .='<img src="images/no.gif">Ter account registrada.<br>';else$main_content .='<img src="images/yes.gif">Ter account registrada.<br>';if ($account_logged->getCustomField("premium_points") >= 10)$main_content .='<img src="images/yes.gif">Ter mais que 10 points para tranferir.<br>';else$main_content .='<br><img src="images/no.gif">Ter mais que 10 points para tranferir.<br>';$main_content .='</ul></td></tr></table></div></div><div class="TableShadowContainer" ><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);" ><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);" ></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);" ></div></div></div></td></tr></table></div></table></div></td></tr><br/>';if ($account_logged->getCustomField("premium_points") > 29 && $account_logged->getRecoveryKey()){$main_content .='<table style="width:100%;" ><tr align="center" ><td><form action="index.php?subtopic=transferpoints&action=transfer" method="post" style="padding:0px;margin:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_continue.gif" ></div></div></form></td></tr></table>     ';}else{$main_content .='<table style="width:100%;" ><tr align="center" ><td><form action="index.php?subtopic=accountmanagement" method="post" style="padding:0px;margin:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form></td></tr></table>     ';}}if ($action == "transfer"){if ($account_logged->getCustomField("premium_points") > 29){} else {header ("location: index.php?subtopic=transferpoints");}$main_content .='<div class="TableContainer" ><table class="Table5" cellpadding="0" cellspacing="0" ><div class="CaptionContainer" ><div class="CaptionInnerContainer" ><span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span><span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span><div class="Text" >Escolha o Player</div><span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span><span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span><span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span></div></div><tr><td><div class="InnerTableContainer" ><table style="width:100%;" ><tr><td><div class="TableShadowContainerRightTop" ><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);" ></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);" ><div class="TableContentContainer" ><table class="TableContent" width="100%" style="border:1px solid #faf0d7;" ><tr><td><p><b>Avaliação VIP Points:</b> '.$account_logged->getCustomField("premium_points").'</p></table></div></div><div class="TableShadowContainer" ><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);" ><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);" ></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);" ></div></div></div></td></tr><tr><td><div class="TableShadowContainerRightTop" ><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);" ></div></div><form action="index.php?subtopic=transferpoints&action=transfersuccess" method="post" style="padding:0px;margin:0px;" ><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);" ><div class="TableContentContainer" ><table class="TableContent" width="100%"  style="border:1px solid #faf0d7;" ><tr><td colspan="2" ><b>Player Recebera:</b></td></tr><tr><td colspan="3" ><input type="text" name="name" size="30" /></td></tr><tr><td colspan="2" ><b>Quantidade Transferencia:</b></td></tr><tr><td colspan="3" >';$points = $account_logged->getCustomField("premium_points");if ($points > 0){$main_content .='<select name="quant_transf">';}else$main_content .='<span class="red"><b>You do not have enough points to transfer to another account.</b></span>';if ($points >= 10){$main_content .='<option>10</option>';}if ($points >= 15){$main_content .='<option>15</option>';}if ($points >= 20){$main_content .='<option>20</option>';}if ($points >= 30){$main_content .='<option>30</option>';}if ($points >= 40){$main_content .='<option>40</option>';}if ($points >= 50){$main_content .='<option>50</option>';}$main_content .='</select></td></tr></table></div></div><div class="TableShadowContainer" ><div class="TableBottomShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bm.gif);" ><div class="TableBottomLeftShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-bl.gif);" ></div><div class="TableBottomRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-br.gif);" ></div></div></div></td></tr></table></div></table></div></td></tr><br/><table style="width:100%;" ><tr align="center" ><td><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$layout_name.'/images/buttons/_sbutton_submit.gif" ></div></div></form></td><td><form action="index.php?subtopic=accountmanagement" method="post"><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Back" alt="Back" src="'.$layout_name.'/images/buttons/_sbutton_back.gif" ></div></div></form></td></tr></table> ';}if ($action == "transfersuccess"){#if (!$name){header ("location: index.php?subtopic=transferpoints&action=transfersuccess&name=".$name."&quant_transf=".$quant_transf."");}if (!$quant_transf) {echo '<script>alert("Quantidade nao foi informada."); location.href=\'index.php?subtopic=transferpoints&action=transfer\'</script>';}if (!$name) {echo '<script>alert("Jogador nao foi informado."); location.href=\'index.php?subtopic=transferpoints&action=transfer\'</script>';}$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));if(check_name($name)) {$player = $ots->createObject('Player');$player->find($name);if($player->isLoaded()) {$transfer_ss = $SQL->query ("UPDATE `accounts` SET  `premium_points` =  `premium_points` + ".$quant_transf." WHERE  `accounts`.`id` = ".$player->getCustomField('account_id')." LIMIT 1 ;");$transfer_s = $SQL->query ("UPDATE `accounts` SET  `premium_points` =  `premium_points` - ".$quant_transf." WHERE  `accounts`.`id` = ".$account_logged->getCustomField('id')." LIMIT 1 ;");$main_content .='<center><input type="button" class="btn btn-success" value="Foram transferidos '.$quant_transf.' pontos para '.$name.' com sucesso!" onclick="location.href=\'index.php?subtopic=accountmanagement\'"/></center>';}else$main_content .= '<center><span class="red btn btn-danger" onclick="location.href=\'index.php?subtopic=transferpoints&action=transfer\'"><b>Player name <b>'.$name.'</b> dont exist.</b></span></center>';$transfer_ss;$transfer_s;}}}?>

 

Link para o comentário
Compartilhar em outros sites

Luanmax21 poeria me dizer como esta usando esse sistema ?

pois eu adiciconei ele em meu site e adicionei uma aba na coluna  shop.. ae quando  o player clika nela ele esta sendo direcionado para uma pagina onde so mostra quantos points ele tem mas nada...

se voce tiver mais alguma parte dese script e puder me dizer como esta instalado no seu site talves eu consigo arruma-lo e entao poder-mos usalo..

Tipo essa pagiina de php que se postou ae ele e todo junto assim ou em partes ? me fale em quais paginas do site em algo relacionado com esse script e se tiver outras partes post para eu poder entender melhor o sisterma..

Link para o comentário
Compartilhar em outros sites

Primeiro coloque isso no accountmanagament abaixo da informação publica.

Depois voce cria um arquivo php com nome de transferpoints e coloque o codigo acima que eu postei  dentro não esqueça de adicionar na index. Funciona mas como eu disse voce coloca a quantidade de pontos mas nao aceita.

 

<div class="TableContainer" ><table class="Table5" cellpadding="0" cellspacing="0" ><div class="CaptionContainer" ><div class="CaptionInnerContainer" ><span class="CaptionEdgeLeftTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionEdgeRightTop" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionBorderTop" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span><span class="CaptionVerticalLeft" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span><div class="Text" >VIP Points</div><span class="CaptionVerticalRight" style="background-image:url('.$layout_name.'/images/content/box-frame-vertical.gif);" /></span><span class="CaptionBorderBottom" style="background-image:url('.$layout_name.'/images/content/table-headline-border.gif);" ></span><span class="CaptionEdgeLeftBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span><span class="CaptionEdgeRightBottom" style="background-image:url('.$layout_name.'/images/content/box-frame-edge.gif);" /></span></div></div><tr><td><div class="InnerTableContainer" ><table style="width:100%;" ><tr><td><div class="TableShadowContainerRightTop" ><div class="TableShadowRightTop" style="background-image:url('.$layout_name.'/images/content/table-shadow-rt.gif);" ></div></div><div class="TableContentAndRightShadow" style="background-image:url('.$layout_name.'/images/content/table-shadow-rm.gif);" ><div class="TableContentContainer" ><table class="TableContent" width="100%" style="border:1px solid #faf0d7;" ><tr><td><b>Avaliação VIP Points:</b> '.$account_logged->getCustomField("premium_points").'<br><div style="float:right;" ><form action="index.php?subtopic=informasao" method="post" style="padding:0px;margin:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Add Premium Points" alt="Add Premium Points" src="'.$layout_name.'/images/buttons/_sbutton_addpremiumscrolls.png" ></div></div></form></div><br/><ul>Você pode extender mais VIP Points para sua conta.<br><br>Você tambem pode tranferir VIP Points para outro player.</li><div style="float:right;" ><form action="index.php?subtopic=transferpoints" method="post" style="padding:0px;margin:0px;" ><div class="BigButton" style="background-image:url('.$layout_name.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$layout_name.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Transfer Scrolls" alt="Transfer Scrolls" src="'.$layout_name.'/images/buttons/_sbutton_transferscrolls.gif" ></div></div></form></ul></td></tr></table></div></td></tr></td></tr></table></div></table></div></td></tr><br/>';

 

Editado por luanmax21
Erro
Link para o comentário
Compartilhar em outros sites

Realmente amigo esta apresentando o probblema que informa pontos nao selecionados.. tentei mexer ake so que nao consegui resultados..

 

axo que o problema esta nesta parte ake

 

 

 

if ($action == "transfersuccess"){#if (!$name){header ("location: index.php?subtopic=transferpoints&action=transfersuccess&name=".$name."&quant_transf=".$quant_transf."");}if (!$quant_transf) {echo '<script>alert("Quantidade nao foi informada."); location.href=\'index.php?subtopic=transferpoints&action=transfer\'</script>';}if (!$name) {echo '<script>alert("Jogador nao foi informado."); location.href=\'index.php?subtopic=transferpoints&action=transfer\'</script>';}$name = stripslashes(ucwords(strtolower(trim($_REQUEST['name']))));if(check_name($name)) {$player = $ots->createObject('Player');$player->find($name);if($player->isLoaded()) {$transfer_ss = $SQL->query ("UPDATE `accounts` SET  `premium_points` =  `premium_points` + ".$quant_transf." WHERE  `accounts`.`id` = ".$player->getCustomField('account_id')." LIMIT 1 ;");$transfer_s = $SQL->query ("UPDATE `accounts` SET  `premium_points` =  `premium_points` - ".$quant_transf." WHERE  `accounts`.`id` = ".$account_logged->getCustomField('id')." LIMIT 1 ;");$main_content .='<center><input type="button" class="btn btn-success" value="Foram transferidos '.$quant_transf.' pontos para '.$name.' com sucesso!" onclick="location.href=\'index.php?subtopic=accountmanagement\'"/></center>';}else$main_content .= '<center><span class="red btn btn-danger" onclick="location.href=\'index.php?subtopic=transferpoints&action=transfer\'"><b>Player name <b>'.$name.'</b> dont exist.</b></span></center>';$transfer_ss;$transfer_s;}}}?>

 

 

Repare que a 2ª linha e a única que tem  #  no inicio, eu tentei retira-lo pois achei que poderia ser algo que foi digitado sem querer porem a paina da um erro inormando que a pagina seguinte na foi encontrada ou  algo d tipo.. nao da nenhum erro de php porem da um erro como se nao tivesse iinternet no pc a pagina fica branca.....

se alguem ae souber ajudar porfavor estamos precisando..

 

Link para o comentário
Compartilhar em outros sites

  • 2 weeks later...
Em 11/03/2016 at 14:50, victorfasano disse:

Já roda versões mais atualizadas? Dentre elas TFS 1.x?(.0;.1;.2)

Sim, toda as seguintes versões de TFS

 

0.3.7

0.4

1.0

1.1

1.1

2.0

@victorfasano 

Primeiramente quero agradecer a você por compartilhar seus conhecimentos com a comunidade e pela grande paciência que você teve todo esse tempo. 

E muito obrigado por compartilhar o seu website com a gente. 

 

Só queria tirar uma dúvida. Estou editando um Server Old School, 7.6, 7.72 só que ajustando ele para usar TFS 1.0, já com alguns incrementos. Os códigos sabe que eu estou usando vou por em baixo. Só queria o seu conselho, pra qual versão do seu website usar. não precisar está funcionando 100% não. Queria só uma direção. 

 

Links:

 

https://github.com/tarantonio/TheForgottenServer

https://github.com/tarantonio/RlMap77x

https://github.com/mattyx14/RlMap77x

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...