Colocando Hall da fama na sua CMS

 :: Habbo :: Tutorias

View previous topic View next topic Go down

Colocando Hall da fama na sua CMS

Post  Admin-GoogleChrome on Thu 9 Jun - 13:53

Olá hoje eu irei ensinar como colocar Hall da fama em sua Cms
Vamos Lá:

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 abrir um bloco de notas e colocar este conteudo dentro dele:
[spoiler][code][color=#FF8000]/*=======================================================================
| 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.
\======================================================================*/
[/color][color=#0000BB]define[/color][color=#007700]([/color][color=#DD0000]'TAB_ID'[/color][color=#007700], [/color][color=#0000BB]19[/color][color=#007700]);
[/color][color=#0000BB]define[/color][color=#007700]([/color][color=#DD0000]'PAGE_ID'[/color][color=#007700], [/color][color=#0000BB]21[/color][color=#007700]);

require_once [/color][color=#DD0000]"global.php"[/color][color=#007700];

if (![/color][color=#0000BB]LOGGED_IN[/color][color=#007700])
{
[/color][color=#0000BB]header[/color][color=#007700]([/color][color=#DD0000]"Location: /"[/color][color=#007700]);
exit;
}

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Init[/color][color=#007700]();

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'head-init'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddIncludeSet[/color][color=#007700]([/color][color=#DD0000]'generic'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]WriteIncludeFiles[/color][color=#007700]();

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'head-overrides-generic'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'head-bottom'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'generic-top'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Write[/color][color=#007700]([/color][color=#DD0000]''[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'respeitos'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Write[/color][color=#007700]([/color][color=#DD0000]'
'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Write[/color][color=#007700]([/color][color=#DD0000]''[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Write[/color][color=#007700]([/color][color=#DD0000]'
'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'generic-column3'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]SetParam[/color][color=#007700]([/color][color=#DD0000]'page_title'[/color][color=#007700], [/color][color=#DD0000]'Respeitos'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]SetParam[/color][color=#007700]([/color][color=#DD0000]'body_id'[/color][color=#007700], [/color][color=#DD0000]'home'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Output[/color][color=#007700]();

[/color][color=#0000BB]?>[/color][/code][/spoiler]

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:
[spoiler][code][b][color=#FF8000]/*=======================================================================
| 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.
\======================================================================*/
[/color][color=#0000BB]define[/color][color=#007700]([/color][color=#DD0000]'TAB_ID'[/color][color=#007700], [/color][color=#0000BB]19[/color][color=#007700]);
[/color][color=#0000BB]define[/color][color=#007700]([/color][color=#DD0000]'PAGE_ID'[/color][color=#007700], [/color][color=#0000BB]24[/color][color=#007700]);

require_once [/color][color=#DD0000]"global.php"[/color][color=#007700];

if (![/color][color=#0000BB]LOGGED_IN[/color][color=#007700])
{
[/color][color=#0000BB]header[/color][color=#007700]([/color][color=#DD0000]"Location: /"[/color][color=#007700]);
exit;
}

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Init[/color][color=#007700]();

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'head-init'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddIncludeSet[/color][color=#007700]([/color][color=#DD0000]'generic'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]WriteIncludeFiles[/color][color=#007700]();

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'head-overrides-generic'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'head-bottom'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'generic-top'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Write[/color][color=#007700]([/color][color=#DD0000]''[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'ricos'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Write[/color][color=#007700]([/color][color=#DD0000]'
'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Write[/color][color=#007700]([/color][color=#DD0000]''[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Write[/color][color=#007700]([/color][color=#DD0000]'
'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]AddGeneric[/color][color=#007700]([/color][color=#DD0000]'generic-column3'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]SetParam[/color][color=#007700]([/color][color=#DD0000]'page_title'[/color][color=#007700], [/color][color=#DD0000]'Ricos'[/color][color=#007700]);
[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]SetParam[/color][color=#007700]([/color][color=#DD0000]'body_id'[/color][color=#007700], [/color][color=#DD0000]'home'[/color][color=#007700]);

[/color][color=#0000BB]$tpl[/color][color=#007700]->[/color][color=#0000BB]Output[/color][color=#007700]();

[/color][color=#0000BB]?>[/color][/b][/code][/spoiler]


Agora vamos salvar na pasta "Hall da fama" 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:
[spoiler][code][color=#0000BB]<?php
$get_cc [/color][color=#007700]= [/color][color=#0000BB]mysql_query[/color][color=#007700]([/color][color=#DD0000]"SELECT * FROM users WHERE credits IS NOT NULL /*AND rank < 5*/ ORDER BY credits DESC LIMIT 20"[/color][color=#007700]) or die([/color][color=#0000BB]mysql_error[/color][color=#007700]());
[/color][color=#0000BB]?>
[/color]
<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>

[color=#0000BB]<?php

[/color][color=#007700]while([/color][color=#0000BB]$row [/color][color=#007700]= [/color][color=#0000BB]mysql_fetch_assoc[/color][color=#007700]([/color][color=#0000BB]$get_cc[/color][color=#007700])){
[/color][color=#0000BB]printf[/color][color=#007700]([/color][color=#DD0000]" <tr>
<td class='tablerow1' align='center'><a href="home/%s">%s</a></td>
<td class='tablerow2' align='center'>%s</td>
</tr>"[/color][color=#007700], [/color][color=#0000BB]$row[/color][color=#007700][[/color][color=#DD0000]'username'[/color][color=#007700]], [/color][color=#0000BB]$row[/color][color=#007700][[/color][color=#DD0000]'username'[/color][color=#007700]], [/color][color=#0000BB]$row[/color][color=#007700][[/color][color=#DD0000]'credits'[/color][color=#007700]]);
}
[/color][color=#0000BB]?>[/color][/code][/spoiler]


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:
[spoiler][code][b][color=#0000BB]<?php
$get_cc [/color][color=#007700]= [/color][color=#0000BB]mysql_query[/color][color=#007700]([/color][color=#DD0000]"SELECT * FROM users WHERE respect IS NOT NULL /*AND rank < 5*/ ORDER BY respect DESC LIMIT 15"[/color][color=#007700]) or die([/color][color=#0000BB]mysql_error[/color][color=#007700]());
[/color][color=#0000BB]?>
[/color]
<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>

[color=#0000BB]<?php

[/color][color=#007700]while([/color][color=#0000BB]$row [/color][color=#007700]= [/color][color=#0000BB]mysql_fetch_assoc[/color][color=#007700]([/color][color=#0000BB]$get_cc[/color][color=#007700])){
[/color][color=#0000BB]printf[/color][color=#007700]([/color][color=#DD0000]" <tr>
<td class='tablerow1' align='center'><a href="home/%s">%s</a></td>
<td class='tablerow2' align='center'>%s</td>
</tr>"[/color][color=#007700], [/color][color=#0000BB]$row[/color][color=#007700][[/color][color=#DD0000]'username'[/color][color=#007700]], [/color][color=#0000BB]$row[/color][color=#007700][[/color][color=#DD0000]'username'[/color][color=#007700]], [/color][color=#0000BB]$row[/color][color=#007700][[/color][color=#DD0000]'respect'[/color][color=#007700]]);
}
[/color][color=#0000BB]?>
[/color]<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> [/b]
[/code][/spoiler]


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:
[spoiler][code][b]
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');[/b][/code][/spoiler]

Admin-GoogleChrome
Administrador
Administrador

Mensagens Mensagens : 454
Moedas Moedas : 500285
Reputação Reputação : -3
Data de inscrição : 2011-01-15
Idade : 21
Localização : Em frenta ao pc

http://habbocreat.forumeiros.com

Back to top Go down

Re: Colocando Hall da fama na sua CMS

Post  João Rodrigues on Wed 15 Jun - 14:58

Foi vc que criou esse tuto ou foi outro fórum**?

**se foi outro fórum, onde estão os devidos créditos?

João Rodrigues
Administrador
Administrador

Mensagens Mensagens : 568
Moedas Moedas : 100455
Reputação Reputação : -12
Data de inscrição : 2011-01-31
Idade : 20
Localização : Portugal

http://habbocreat.forumeiros.com

Back to top Go down

Re: Colocando Hall da fama na sua CMS

Post  Admin-GoogleChrome on Thu 16 Jun - 13:18

Olá ,

Foi do fórum do meu amigo eu copiei o tópico com permissão.

[b]Atenciosamente ,[/b]

Admin-GoogleChrome
Administrador
Administrador

Mensagens Mensagens : 454
Moedas Moedas : 500285
Reputação Reputação : -3
Data de inscrição : 2011-01-15
Idade : 21
Localização : Em frenta ao pc

http://habbocreat.forumeiros.com

Back to top Go down

Re: Colocando Hall da fama na sua CMS

Post  João Rodrigues on Thu 16 Jun - 19:52

Siiiim.... e os créditos lá do tópico?

[b]Att:[/b]
[color:6056=red][b]Mana do João:
Francisca[/b][/color]

João Rodrigues
Administrador
Administrador

Mensagens Mensagens : 568
Moedas Moedas : 100455
Reputação Reputação : -12
Data de inscrição : 2011-01-31
Idade : 20
Localização : Portugal

http://habbocreat.forumeiros.com

Back to top Go down

Re: Colocando Hall da fama na sua CMS

Post  Sponsored content Today at 12:06


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 :: Habbo :: Tutorias

 
Permissions in this forum:
You cannot reply to topics in this forum