Ir para conteúdo

Featured Replies

Postado

Boa tarde galera do TK.

Tentei colocar esse script no meu site:

Spoiler

<div id="vt_panel_buttons"> <a href="

essa linha seria a do botão de download e logo a cima do <div id="vt_panel_buttons">

você coloca este código


<div class="bot">{include_php file='templates/naruto/topplayer.php'}
 
bom feito isso pode salvar e fechar, ainda dentro da pasta da template crie um arquivo com o nome topplayer.php dentro dele coloque o seguinte código
 

<table cellpadding="0" cellspacing="0" style="MARGIN-LEFT: 9px">
<tbody>
<tr background="/templates/naruto/images/homepage.png">
<td width="537" height="37">
<center>
<a style="color: yellow; font-size: 12px; text-shadow: #3d2e05 ;"> <b>Top 10</b> </a>
</center></td>
</tr>
</tbody>
</table>


<?php
$ots = POT::getInstance();
$ots -> connect(POT::DB_MYSQL, connection());
$SQL = $ots -> getDBHandle();
$money_list = $SQL->query('SELECT name, level, experience, maglevel FROM players ORDER BY experience DESC, maglevel DESC LIMIT 10')->fetchAll();
$i = 1;
foreach ($money_list as $money_chr) {
echo '<center>';
echo $i . '. <a href="' . WEBSITE . '/index.php/character/view/' . $money_chr['name'] . '">';
$player = $ots -> createObject('Player');
$player -> find($money_chr['name']);
echo '<font color="';
echo($player -> isOnline()) ? 'green' : 'red';
echo '">';
echo '<b>' . $money_chr['name'] . '</b></a></font>';
echo '<br>Level: <span style="color: #10FF00; font-weight: bold;">' . $money_chr['level'] . '</span>    ';
echo 'Ninjutsu: <span style="color: #67CCF9; font-weight: bold;">' . $money_chr['maglevel'] . '</span><br>';


$i++;
}
for ($i; $i <= 10; $i++) {
echo $i . '. <br><i>Empty</i><br /><br />';
}
echo '</center>';
?>

 

Ta dando esse erro:

 

Spoiler

Fatal error: Uncaught exception 'Exception' with message 'Syntax Error in template "templates/NQO-By Mateushurley\index.tpl" on line 117 " &lt;div class=&quot;bot&quot;&gt;{include_php file='templates/naruto/topplayer.php'} " - Unexpected "ï", expected one of: "}" , " "' in C:\xamppp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php:432 Stack trace: #0 C:\xamppp\htdocs\system\application\libraries\sysplugins\smarty_internal_templateparser.php(2579): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 C:\xamppp\htdocs\system\application\libraries\sysplugins\smarty_internal_templateparser.php(2644): Smarty_Internal_Templateparser->yy_syntax_error(8, '?') #2 C:\xamppp\htdocs\system\application\libraries\sysplugins\smarty_internal_smartytemplatecompiler.php(47): Smarty_Internal_Templateparser->doParse(8, '?') #3 C:\xamppp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php(84): Smarty_Internal_SmartyTemplateCompiler->doCom in C:\xamppp\htdocs\system\application\libraries\sysplugins\smarty_internal_templatecompilerbase.php on line 432

 

alguém sabe como resolver

 

valendo 2 rep++

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

AJfwFit.png&key=fe4d679c24a3f021c13992ab

  • Respostas 7
  • Visualizações 531
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Aqui no TibiaKing mensagens como UP e BUMP são proibidas, utilize o botão subir este tópico. Esta é uma mensagem automática!
Pedimos que leia as regras do fórum!

Spoiler

Here in TibiaKing messages like UP and BUMP are prohibited, use the button raise this topic. This is an automated message!
Please read the forum rules.

 

Projeto ATS (Naruto)

Informações Abaixo

Facebook

Youtube
Discord

 

Tutoriais / Conteúdos

Clique Aqui

Postado
Agora, joaovitorbk9 disse:

@up  

 

Tenta usa esse.

Spoiler

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="distribution" content="Global" />
        <meta name="author" content="Vean" />
        <meta name="robots" content="index,follow" />
        <meta name="description" content="Site Description." />
        <meta name="keywords" content="ots, open tibia server, ..." />
        {$head}
        <title>.:: Naruto Online Shinobi ::.</title>
        <link rel="stylesheet" type="text/css" href="{$path}/templates/naruto/main.css" />
        <link href="{$path}/templates/naruto/favicon.ico" rel="shortcut icon" />
    </head>
    <!--Google-->
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-15249041-2']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>
    <body>
        <div id="vt_page">
            <div id="vt_header"></div>
            <div id="vt_container">
                <div id="vt_menu">
                    <div id="vt_news_menu">
<center>
                        <div class="header"></div></center>
                        <ul>
                            <li><a href="{$path}">Novidades</a></li>
                            <li><a href="{$path}/index.php/bugtracker">Bugs Reportados</a></li>
                        </ul>
                    </div>
                    <div id="vt_account_menu"><center>
                        <div class="serv"></div></center>
                        <ul>
                            {if $logged == 1}
                            <li><a href="{$path}/index.php/account/">Minha Conta</a></li>
                            {else}
                            <li><a href="{$path}/index.php/account/create">Criar Conta</a></li>
                            <li><a href="{$path}/index.php/account/login">Login</a></li>
                            {/if}
                        </ul>
                    </div>
                    <div id="vt_community_menu">
                        <div class="comu"></div>
                        <ul>
                            <li><a href="{$path}/index.php/character/view">Procurar Personagem</a></li>
                            <li><a href="{$path}/index.php/guilds">Guilds</a></li>
                            <li><a href="{$path}/index.php/p/v/fragers">Top fraggers</a></li>    
                            <li><a href="{$path}/index.php/video">Videos</a></li>    
                            <li><a href="{$path}/index.php/houses/main">Casas</a></li>    
                            <li><a href="{$path}/index.php/p/v/deaths">Ultimas Mortes</a></li>
                            <li><a href="{$path}/index.php/p/v/gallery">Galeria</a></li>                        
                            <li><a href="{$path}/index.php/highscores">Ranking</a></li>    
                            <li><a href="{$path}/index.php/profile/community">Comunidade</a></li>
                             <li><a href="{$path}/index.php/character/online">Online</a></li>

                        </ul>
                    </div>
                    <div class="info"></div>
                    <ul>
                           <li><a href="{$path}/index.php/p/v/perso">INFO Personagem</a></li>
                           <li><a href="{$path}/index.php/p/v/mapa">Mapa</a></li>
                            <li><a href="{$path}/index.php/p/v/staff">Equipe NTO</a></li>
                            <li><a href="{$path}/index.php/p/v/bans">Banidos NTO</a></li>
                            <li><a href="{$path}/index.php/p/v/bandeira">Evento Bandeira NTO</a></li>
                            </ul>
                    </div>
                <div id="vt_content">
                    {$main}
                </div>
                <div id="vt_panel">
                    <div class="top">
                        <div class="bot">
                            <div id="vt_panel_buttons">
                                <a href="http://www.mediafire.com/?zjrwhwotu9o4dqo" class="button">
                                     <span></span>
                                </a>
                                
                                <a href="{$path}/index.php/p/v/gifts" class="button2"></a>
                                <a href="x" class="button1"></a></div>
                            <div class="vt_panel_module"><center>
                                <div class="header">Server Status</div></centeR>
                                {foreach from=$worlds key=id item=world}
                                <div>
                                    <b>Servidor:</b> {$world} <br />
                                    <b>Status:</b>  
                                    {if $serverOnline[$id]}
                                        <span style="color: green;font-weight: bold;">Online</span><br />
                                        <b>Uptime:</b> {$serverUptime[$id]} <br />
                                        <b>Players:</b> {$serverPlayers[$id]}/{$serverMax[$id]}<br /><br />
                                    {else}
                                        <span style="color: red;font-weight: bold;">Offline</span>
                                    {/if}
                                </div>

<center>
<div class="header">FACEBOOK!</div>
<a href="http://www.facebook.com/pages/NTOShinobi/149810838495212">
<img src="http://img196.imageshack.us/img196/2865/facebookzu.png" width="250" height="250"></a>
</center>
<div>
{$poll} <br />
</div> 
                                {/foreach}
                                
                                <div class="bot">{include_php file='templates/naruto/topplayer.php'}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="vt_footer">
                <div class="column first">
                    <a href=""><img src="{$path}/templates/naruto/images/authornote.png" alt="Designed by Eddy" /></a>
                </div>
                <div class="column second">
                    <p>2011 - NTO Brasil                <p><small>Page rendered in: {$renderTime} {$admin}</small></p>
                </div>
                <div class="column third">

                </div>
            </div>
        </div>
    </body>
</html>

 

 

TopPlayer

Spoiler

<table cellpadding="0" cellspacing="0" style="MARGIN-LEFT: 9px">
<tbody>
<div id="visual-info"><div class="name">Top 3</div></div><br><br><br>
<td width="100" height="100">
<center>
</center></td>
</tr>

<?php

$ots = POT::getInstance();
$ots -> connect(POT::DB_MYSQL, connection());
$SQL = $ots -> getDBHandle();
$money_list = $SQL->query('SELECT name, level, experience, maglevel FROM players ORDER BY experience DESC, maglevel DESC LIMIT 3')->fetchAll();
$i = 1;
foreach ($money_list as $money_chr) {
echo '<center>';
echo $i . '. <a href="' . WEBSITE . '/index.php/character/view/' . $money_chr['name'] . '">';
$player = $ots -> createObject('Player');
$player -> find($money_chr['name']);
echo '<font color="';
echo($player -> isOnline()) ? 'green' : 'red';
echo '">';
echo '<b>' . $money_chr['name'] . '</b></a></font>';

echo '<br>Level: <span style="color: #10FF00; font-weight: bold;">' . $money_chr['level'] . '</span>    ';
echo 'Ninjutsu: <span style="color: #67CCF9; font-weight: bold;">' . $money_chr['maglevel'] . '</span><br>';


$i++;
}
for ($i; $i <= 3; $i++) {
echo $i . '. <br><i>Empty</i><br /><br />';
}
echo '</center>';
?>

 

Se não der Posta seu index.tpl pra mim da uma olhada.

Postado
  • Autor
3 horas atrás, KR3 disse:

Tenta usa esse.

  Ocultar conteúdo

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="distribution" content="Global" />
        <meta name="author" content="Vean" />
        <meta name="robots" content="index,follow" />
        <meta name="description" content="Site Description." />
        <meta name="keywords" content="ots, open tibia server, ..." />
        {$head}
        <title>.:: Naruto Online Shinobi ::.</title>
        <link rel="stylesheet" type="text/css" href="{$path}/templates/naruto/main.css" />
        <link href="{$path}/templates/naruto/favicon.ico" rel="shortcut icon" />
    </head>
    <!--Google-->
    <script type="text/javascript">

      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-15249041-2']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();

    </script>
    <body>
        <div id="vt_page">
            <div id="vt_header"></div>
            <div id="vt_container">
                <div id="vt_menu">
                    <div id="vt_news_menu">
<center>
                        <div class="header"></div></center>
                        <ul>
                            <li><a href="{$path}">Novidades</a></li>
                            <li><a href="{$path}/index.php/bugtracker">Bugs Reportados</a></li>
                        </ul>
                    </div>
                    <div id="vt_account_menu"><center>
                        <div class="serv"></div></center>
                        <ul>
                            {if $logged == 1}
                            <li><a href="{$path}/index.php/account/">Minha Conta</a></li>
                            {else}
                            <li><a href="{$path}/index.php/account/create">Criar Conta</a></li>
                            <li><a href="{$path}/index.php/account/login">Login</a></li>
                            {/if}
                        </ul>
                    </div>
                    <div id="vt_community_menu">
                        <div class="comu"></div>
                        <ul>
                            <li><a href="{$path}/index.php/character/view">Procurar Personagem</a></li>
                            <li><a href="{$path}/index.php/guilds">Guilds</a></li>
                            <li><a href="{$path}/index.php/p/v/fragers">Top fraggers</a></li>    
                            <li><a href="{$path}/index.php/video">Videos</a></li>    
                            <li><a href="{$path}/index.php/houses/main">Casas</a></li>    
                            <li><a href="{$path}/index.php/p/v/deaths">Ultimas Mortes</a></li>
                            <li><a href="{$path}/index.php/p/v/gallery">Galeria</a></li>                        
                            <li><a href="{$path}/index.php/highscores">Ranking</a></li>    
                            <li><a href="{$path}/index.php/profile/community">Comunidade</a></li>
                             <li><a href="{$path}/index.php/character/online">Online</a></li>

                        </ul>
                    </div>
                    <div class="info"></div>
                    <ul>
                           <li><a href="{$path}/index.php/p/v/perso">INFO Personagem</a></li>
                           <li><a href="{$path}/index.php/p/v/mapa">Mapa</a></li>
                            <li><a href="{$path}/index.php/p/v/staff">Equipe NTO</a></li>
                            <li><a href="{$path}/index.php/p/v/bans">Banidos NTO</a></li>
                            <li><a href="{$path}/index.php/p/v/bandeira">Evento Bandeira NTO</a></li>
                            </ul>
                    </div>
                <div id="vt_content">
                    {$main}
                </div>
                <div id="vt_panel">
                    <div class="top">
                        <div class="bot">
                            <div id="vt_panel_buttons">
                                <a href="http://www.mediafire.com/?zjrwhwotu9o4dqo" class="button">
                                     <span></span>
                                </a>
                                
                                <a href="{$path}/index.php/p/v/gifts" class="button2"></a>
                                <a href="x" class="button1"></a></div>
                            <div class="vt_panel_module"><center>
                                <div class="header">Server Status</div></centeR>
                                {foreach from=$worlds key=id item=world}
                                <div>
                                    <b>Servidor:</b> {$world} <br />
                                    <b>Status:</b>  
                                    {if $serverOnline[$id]}
                                        <span style="color: green;font-weight: bold;">Online</span><br />
                                        <b>Uptime:</b> {$serverUptime[$id]} <br />
                                        <b>Players:</b> {$serverPlayers[$id]}/{$serverMax[$id]}<br /><br />
                                    {else}
                                        <span style="color: red;font-weight: bold;">Offline</span>
                                    {/if}
                                </div>

<center>
<div class="header">FACEBOOK!</div>
<a href="http://www.facebook.com/pages/NTOShinobi/149810838495212">
<img src="http://img196.imageshack.us/img196/2865/facebookzu.png" width="250" height="250"></a>
</center>
<div>
{$poll} <br />
</div> 
                                {/foreach}
                                
                                <div class="bot">{include_php file='templates/naruto/topplayer.php'}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="vt_footer">
                <div class="column first">
                    <a href=""><img src="{$path}/templates/naruto/images/authornote.png" alt="Designed by Eddy" /></a>
                </div>
                <div class="column second">
                    <p>2011 - NTO Brasil                <p><small>Page rendered in: {$renderTime} {$admin}</small></p>
                </div>
                <div class="column third">

                </div>
            </div>
        </div>
    </body>
</html>

 

 

TopPlayer

  Ocultar conteúdo

<table cellpadding="0" cellspacing="0" style="MARGIN-LEFT: 9px">
<tbody>
<div id="visual-info"><div class="name">Top 3</div></div><br><br><br>
<td width="100" height="100">
<center>
</center></td>
</tr>

<?php

$ots = POT::getInstance();
$ots -> connect(POT::DB_MYSQL, connection());
$SQL = $ots -> getDBHandle();
$money_list = $SQL->query('SELECT name, level, experience, maglevel FROM players ORDER BY experience DESC, maglevel DESC LIMIT 3')->fetchAll();
$i = 1;
foreach ($money_list as $money_chr) {
echo '<center>';
echo $i . '. <a href="' . WEBSITE . '/index.php/character/view/' . $money_chr['name'] . '">';
$player = $ots -> createObject('Player');
$player -> find($money_chr['name']);
echo '<font color="';
echo($player -> isOnline()) ? 'green' : 'red';
echo '">';
echo '<b>' . $money_chr['name'] . '</b></a></font>';

echo '<br>Level: <span style="color: #10FF00; font-weight: bold;">' . $money_chr['level'] . '</span>    ';
echo 'Ninjutsu: <span style="color: #67CCF9; font-weight: bold;">' . $money_chr['maglevel'] . '</span><br>';


$i++;
}
for ($i; $i <= 3; $i++) {
echo $i . '. <br><i>Empty</i><br /><br />';
}
echo '</center>';
?>

 

Se não der Posta seu index.tpl pra mim da uma olhada.

 

é o mesmo script que estou usando... ta dando o mesmo erro

AJfwFit.png&key=fe4d679c24a3f021c13992ab

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.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo