Bom, muitas pessoas gostam do Hall da Fama, então vamo coloca-lo em seu hotel agora.
1. Primeiramente vá a sua área de trabalho/desktop.
Crie
uma pasta com o nome "Hall da fama", depois dentro desta pasta crie uma
pasta chamada "inc" e dentro da pasta inc crie uma pasta chamada "tpl".
Agora vamos salvar na pasta "Hall da Fama" que criamos no inicio do tutorial com o nome "respeitos.php"
Agora vamos abrir outro bloco de notas e colocar este conteudo dentro dele:
Agora vamos salvar na pasta "Hall da famas" que criamos no inicio do tutorial com o nome "ricos.php"
Agora vamos abrir outro bloco de notas e colocar este conteúdo dentro dele:
Agora vamos salva-lo na pasta "Hall da Fama > inc > tpl" com o nome "ricos.tpl"
Agora vamos abrir mais um bloco de notas(O Último) e colocar este conteudo dentro dele:
Agora vamos salva-lo na pasta "Hall da Fama > inc > tpl" com o nome "respeitos
.tpl"
Agora nós vamos ir na pasta "Hall da fama" e copiar tudo o que esta nela e colar na pasta principal da cms!
Pronto o hall da fama está criado, agora vamos criar o menu!
Basta ir na sua database > SQL e colocar este código:
E um novo menu será criado com o nome "Hall da Fama".
Créditos:
GustavoHenrique (Tutorial)
Lucas Reis (Páginas)
1. Primeiramente vá a sua área de trabalho/desktop.
Crie
uma pasta com o nome "Hall da fama", depois dentro desta pasta crie uma
pasta chamada "inc" e dentro da pasta inc crie uma pasta chamada "tpl".
- Código:
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/
define('TAB_ID', 19);
define('PAGE_ID', 21);
require_once "global.php";
if (!LOGGED_IN)
{
header("Location: /");
exit;
}
$tpl->Init();
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('generic');
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-generic');
$tpl->AddGeneric('head-bottom');
$tpl->AddGeneric('generic-top');
$tpl->Write('');
$tpl->AddGeneric('respeitos');
$tpl->Write('
');
$tpl->Write('');
$tpl->Write('
');
$tpl->AddGeneric('generic-column3');
$tpl->SetParam('page_title', 'Respeitos');
$tpl->SetParam('body_id', 'home');
$tpl->Output();
?>
Agora vamos salvar na pasta "Hall da Fama" que criamos no inicio do tutorial com o nome "respeitos.php"
Agora vamos abrir outro bloco de notas e colocar este conteudo dentro dele:
- Código:
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d'
| http://www.meth0d.org
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/
define('TAB_ID', 19);
define('PAGE_ID', 24);
require_once "global.php";
if (!LOGGED_IN)
{
header("Location: /");
exit;
}
$tpl->Init();
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('generic');
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-generic');
$tpl->AddGeneric('head-bottom');
$tpl->AddGeneric('generic-top');
$tpl->Write('');
$tpl->AddGeneric('ricos');
$tpl->Write('
');
$tpl->Write('');
$tpl->Write('
');
$tpl->AddGeneric('generic-column3');
$tpl->SetParam('page_title', 'Ricos');
$tpl->SetParam('body_id', 'home');
$tpl->Output();
?>
Agora vamos salvar na pasta "Hall da famas" que criamos no inicio do tutorial com o nome "ricos.php"
Agora vamos abrir outro bloco de notas e colocar este conteúdo dentro dele:
- Código:
<?php
$get_cc = mysql_query("SELECT * FROM users WHERE
credits IS NOT NULL /*AND rank < 5*/ ORDER BY credits DESC LIMIT 20")
or die(mysql_error());
?>
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hall da Fama !</h2>
<div class="box-content">
<p>
<center>Olá <b>%habboName%</b> ! Veja abaixo os Habbos mais ricos em nosso hotel.</center>
</p>
<br>
<p>
</p>
<p>
<strong>Nota:</strong>
<i>Os membros de nossa equipe não irão ganhar prêmios, por isso
colocamos os 20 mais ricos de nosso hotel.</i>
</p>
<p>
<br>
<div id="contentRight">
<div class="contentHolder">
<div class="contentHeader">
</div>
<div id='credits-promo' class='box-content credits-info'>
<div class='credit-info-text clearfix'>
<div class='tableborder'>
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='tablesubheader' width='50%' align='center'><b>Usuário</b></td>
<td class='tablesubheader' width='50%' align='center'><b>Moedas</b></td>
</tr>
<?php
while($row = mysql_fetch_assoc($get_cc)){
printf(" <tr>
<td class='tablerow1' align='center'><a href="home/%s">%s</a></td>
<td class='tablerow2' align='center'>%s</td>
</tr>", $row['username'], $row['username'], $row['credits']);
}
?>
Agora vamos salva-lo na pasta "Hall da Fama > inc > tpl" com o nome "ricos.tpl"
Agora vamos abrir mais um bloco de notas(O Último) e colocar este conteudo dentro dele:
- Código:
<?php
$get_cc = mysql_query("SELECT * FROM users WHERE
respect IS NOT NULL /*AND rank < 5*/ ORDER BY respect DESC LIMIT 15")
or die(mysql_error());
?>
<div class="habblet-container ">
<div class="cbb clearfix orange ">
<h2 class="title">Hall da Fama !</h2>
<div class="box-content">
<p>
<center>Olá <b>%habboName%</b> ! Veja abaixo os Habbos mais famosos em nosso hotel.</center>
</p>
<br>
<p>
</p>
<p>
<strong>Nota:</strong>
<i>Os membros de nossa equipe não irá ganhar prêmios, por isso
colocamos os 15 mais respeitados.</i>
</p>
<p>
<br>
<div id="contentRight">
<div class="contentHolder">
<div class="contentHeader">
</div>
<div id='credits-promo' class='box-content credits-info'>
<div class='credit-info-text clearfix'>
<div class='tableborder'>
<table cellpadding='4' cellspacing='0' width='100%'>
<tr>
<td class='tablesubheader' width='50%' align='center'><b>Usuário</b></td>
<td class='tablesubheader' width='50%' align='center'><b>Respeitos</b></td>
</tr>
<?php
while($row = mysql_fetch_assoc($get_cc)){
printf(" <tr>
<td class='tablerow1' align='center'><a href="home/%s">%s</a></td>
<td class='tablerow2' align='center'>%s</td>
</tr>", $row['username'], $row['username'], $row['respect']);
}
?>
<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
Agora vamos salva-lo na pasta "Hall da Fama > inc > tpl" com o nome "respeitos
.tpl"
Agora nós vamos ir na pasta "Hall da fama" e copiar tudo o que esta nela e colar na pasta principal da cms!
Pronto o hall da fama está criado, agora vamos criar o menu!
Basta ir na sua database > SQL e colocar este código:
- Código:
--
-- Extraindo dados da tabela `site_navi`
--
INSERT INTO `site_navi` (`id`, `parent_id`, `order_id`, `caption`, `class`, `url`, `visibility`) VALUES
(500, 0, 4, 'Hall da fama', 'tab-register-now', '/respeitos.php', '2'),
(501, 500, 1, 'Inicio', '', '/respeitos.php', '1'),
(502, 500, 2, 'Habbos mais ricos', '', '/ricos.php', '2');
E um novo menu será criado com o nome "Hall da Fama".
Créditos:
GustavoHenrique (Tutorial)
Lucas Reis (Páginas)
Sex Abr 05, 2013 9:30 pm por dirtgames1
» [Hot]Como criar um habbo V66 Com Bling+valentim 2011 Atualizado Sem Bug
Ter Set 06, 2011 8:24 pm por u.u
» [Tutorial] Como Tirar o server do Hamachi Usano No-ip
Qua Ago 24, 2011 2:30 pm por SouFodaAondeTeOQue
» PsyMT2 - Novo Server !!!
Dom Ago 07, 2011 1:42 am por ekenshin
» MuAwaY – Servidor de Mu Online versão 97d+99i – Há 3 anos online!
Qui Jul 28, 2011 9:10 am por katatau
» MuAwaY – Servidor de Mu Online versão 97d+99i – Há 3 anos online!
Qui Jul 28, 2011 9:09 am por katatau
» MuAwaY – Servidor de Mu Online versão 97d+99i – Há 3 anos online!
Qui Jul 28, 2011 9:09 am por katatau
» MuAwaY – Servidor de Mu Online versão 97d+99i – Há 3 anos online!
Qui Jul 28, 2011 9:08 am por katatau
» MuAwaY – Servidor de Mu Online versão 97d+99i – Há 3 anos online!
Qui Jul 28, 2011 9:08 am por katatau