Ir para conteúdo

Featured Replies

Postado

Eae galera do Tibia King, bom vamos ao meu primeiro Tutorial :)

Eu estou com um projeto de ot, e estou desenvolvendo algumas páginas pro website, e vou disponibilizar algumas pra vocês..

O Calendário de Eventos é bem simples, ele é todo editado manualmente.. Mesmo assim, espero que gostem ^^

Primeiro crie um arquivo chamado calendar.php e cole o código abaixo:


<?PHP

$main_content .= '

<center><table cellpadding="6" cellspacing="1"><tr><td width="940px" colspan="3" bgcolor="#555555"><font color="white" size="3"><center><b>Calendário</b></font></center></td></table>

</tr><tr><table cellpadding="7" cellspacing="2"><td width="120px" bgcolor="#F1E0C6"><center><b>Segunda</b></center></td><td width="120px" bgcolor="#D4C0A1"><center><B>Terça</b></td><td width="120px" bgcolor="#F1E0C6"><center><b>Quarta</b></center></td><td width="120px" bgcolor="#D4C0A1"><center><b>Quinta</b></center></td><td width="120px" bgcolor="#F1E0C6"><center><b>Sexta</b></center></td><td width=120px" bgcolor="#D4C0A1"><center><b>Sábado</b></center></td><td width="120px" bgcolor="#F1E0C6"><center><b>Domingo</b></center></td></tr>

<tr><td width="120px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=battlefield">Battlefield</a> <Br> 16h</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=dotaevent">DOTA</a> <Br> 17h</center></td><td width="25px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=defendking">Defend the King</a> <Br> 19h</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=defendking">Defend the King</a> <Br> 19h</center></td><td width="25px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=dotaevent">DOTA</a> <Br> 17h</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=defendking">Defend the King</a> <Br> 19h</center></td><td width="25px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=dotaevent">DOTA</a> <Br> 17h</center></td></tr>

<tr><td width="120px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=defendking">Defend the King</a> <Br> 19h</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=battlefield">Battlefield</a> <Br> 19h</center></td><td width="25px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=zombievent">Zombie Event</a> <Br> 21h</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=battlefield">WOE</a> <Br> 20h</center></td><td width="25px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=zombievent">Zombie Event</a> <Br> 21h</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=zombievent">Zombie Event</a> <Br> 21h</center></td><td width="25px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=zombievent">Zombie Event</a> <Br> 21h</center></td></tr>

<tr><td width="120px" bgcolor="#F1E0C6"><center><a href="zombievent.php">Zombie Event</a> <Br> 21h</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=zombievent">Zombie Event</a> <Br> 21h</center></td><td width="25px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=battlefield">Battlefield</a> <Br> 23h</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=zombievent">Zombie Event</a> <Br> 21h</center></td><td width="25px" bgcolor="#F1E0C6"><center>- / -</center></td><td width="25px" bgcolor="#D4C0A1"><center><a href="index.php?subtopic=battlefield">Battlefield</a> <Br> 23h</center></td><td width="25px" bgcolor="#F1E0C6"><center><a href="index.php?subtopic=woe">WOE</a> <Br> 23h</center></td></tr>

</table>

</center>

<br><br>

<center><table cellpadding="6" cellspacing="1"><td width="940px" bgcolor="#F1E0C6">

<img src="images/ok.gif"> Os eventos listados são 100% automáticos, sendo assim não dependendo da <a href="index.php?subtopic=team">Staff</a> para dar inicio aos mesmos, basta seguir o horário citado acima e se divertir nos eventos.

Caso aconteça algum BUG ou algo do género reporte-o em nosso fórum para ser corrigido o mais rápido possível!</td></table>

<table cellpadding="6" cellspacing="1"><td width="940px" bgcolor="#D4C0A1"><img src="images/nok.gif"> Caso aconteça algum BUG ou algo do gênero <a href="index.php?subtopic=forum">reporte em nosso fórum</a> para ser corrigido o mais rápido possível!</td></table></center>

<center><table cellpadding="6" cellspacing="1"><td width="940px" bgcolor="#F1E0C6">

<img src="images/ok.gif"> </a> Eventos feitos pela <a href="index.php?subtopic=team">Staff</a> terão um aviso prévio no site ou in-game.</td></table>

'

?>

Agora vá em: index.php e após isso:

case "polls";

$topic = "Polls";

$subtopic = "polls";

include("polls.php");

break;

Cole isso:

case "calendar";

	 $topic = "Calendario";

	 $subtopic = "calendar";

	 include("calendar.php");

break;

Após ter feito os passos acima, vá em layouts\tibiacom e abra o arquivo layout.php, e ANTES disso:

<a href='?subtopic=warofemperium'>

<div id='submenu_warofemperium' class='Submenuitem' onmouseover='MouseOverSubmenuItem(this)' onmouseout='MouseOutSubmenuItem(this)'>

	 <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

	 <div id='ActiveSubmenuItemIcon_warofemperium' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

	 <div class='SubmenuitemLabel'>War of Emperium</div>

	 <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

Cole esse código aqui:

<a href='?subtopic=calendar'>

<div id='submenu_calendar' class='Submenuitem' onmouseover='MouseOverSubmenuItem(this)' onmouseout='MouseOutSubmenuItem(this)'>

	 <div class='LeftChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

	 <div id='ActiveSubmenuItemIcon_calendar' class='ActiveSubmenuItemIcon' style='background-image:url(<?PHP echo $layout_name; ?>/images/menu/icon-activesubmenu.gif);'></div>

	 <div class='SubmenuitemLabel' style="color: red;">Calendário</div>

	 <div class='RightChain' style='background-image:url(<?PHP echo $layout_name; ?>/images/general/chain.gif);'></div>

</div>

</a>

E o resultado final é esse:

semttulodvm.png

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

  • Respostas 7
  • Visualizações 3.2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • luanluciano93
    luanluciano93

    Desculpem reviver, mas isso aqui é perfeito, muito bom mesmo, muitas pessoas podem estar atrás disso aqui ... 

Postado
  • Autor

é bem legal, tem um quase igual só que é de invasão, tem as imagens dos bichos, é bem bacana...

Esse é o meu primeiro tutorial, quem sabe o próximo não seja de um página mais complexa kkkkk

Postado
  • Autor

Eu não entendo quase nada de PHP, quando eu vejo paginas bem elaboradas da até vontade de aprender

É, eu estou começando a aprender mexer com php..

Eu estou usando a sua página do Battlefield em meu website gostei bastante dela, só fiz algumas modificações no campo de texto (visual) mesmo, e adicionei uma tabela com os dias e players necessário para o evento acontecer.

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo