Imagem Tutorial Primeiro você precisa abrir o arquivo " config.php " e encontrar // If useDB is false, this array list will be used for shop offers. $config['shop_offers'] = array( // offer 1 1 => array( 'type' => 1, // 1 = item id offers, 2 = premium days [itemid ignored], 3 = sex change[itemid & c
info
Grupo: Marquês
Registrado: 24/12/09
Posts: 1k
Reputação: +326
Gênero: Masculino
Char no Tibia: Necromanser
Imagem
Tutorial
Primeiro você precisa abrir o arquivo " config.php " e encontrar
// If useDB is false, this array list will be used for shop offers. $config['shop_offers'] = array( // offer 1 1 => array( 'type' => 1, // 1 = item id offers, 2 = premium days [itemid ignored], 3 = sex change[itemid & count ignored], 4+ = custom. 'itemid' => 2160, // item to get in-game 'count' => 5, //if type is 2, this represents premium days 'description' => "Crystal coin.", // Description shown on website 'points' => 100, // How many points this offer costs ), // offer 2 2 => array( 'type' => 1, 'itemid' => 2392, 'count' => 1, 'description' => "Fire sword.", 'points' => 10, ), // offer 3 3 => array( 'type' => 2, 'itemid' => 12466, // Item to display on page 'count' => 7, 'description' => "Premium membership.", 'points' => 25, ), // offer 4 4 => array( 'type' => 3, 'itemid' => 12666, 'count' => 3, 'description' => "Change character gender.", 'points' => 10, ), 5 => array( 'type' => 3, 'itemid' => 12666, 'count' => 0, 'description' => "Change character gender.", 'points' => 20, ), 5 => array( 'type' => 4, 'itemid' => 12666, 'count' => 1, 'description' => "Change character name.", 'points' => 20, ), ); ?>E Substituir com um simples include
// If useDB is false, this array list will be used for shop offers. include 'shopitems.php'; ?>Agora precisamos fazer algumas mudanças no " Shop.php " para torná-lo o principal responsável principal para a seleção categoria
Você deve encontrar esta tabela
<table> <tr class="yellow"> <td>Description:</td> <?php if ($config['shop']['showImage']) { ?><td>Image:</td><?php } ?> <td>Count/duration:</td> <td>Points:</td> <td>Action:</td> </tr> <?php foreach ($shop_list as $key => $offers) { echo '<tr class="special">'; echo '<td>'. $offers['description'] .'</td>'; if ($config['shop']['showImage']) echo '<td><img src="http://'. $config['shop']['imageServer'] .'/'. $offers['itemid'] .'.'. $config['shop']['imageType'] .'" alt="img"></td>'; if ($offers['type'] == 2) echo '<td>'. $offers['count'] .' Days</td>'; else if ($offers['type'] == 3 && $offers['count'] == 0) echo '<td>Unlimited</td>'; else echo '<td>'. $offers['count'] .'x</td>'; echo '<td>'. $offers['points'] .'</td>'; echo '<td>'; ?> <form action="" method="POST"> <input type="hidden" name="buy" value="<?php echo (int)$key; ?>"> <input type="submit" value=" PURCHASE " class="needconfirmation" data-item-name="<?php echo $offers['description']; ?>" data-item-cost="<?php echo $offers['points']; ?>"> </form> <?php echo '</td>'; echo '</tr>'; } ?> </table>E substituir todos com este include
<table> <?php include 'layout/overall/menu.php'; ?> </table>Agora para adicionar o Estilo você deve ir em
e adicione esta linha após a linha Style.css
Anexos
e por final importe esses arquivos
http://www.mediafire.com/download/2jeo81flw9adifc/WWW.rar
Créditos
Kushovu ( Criador )
Mudrock ( traduzir e trazer para o fórum )