Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/mybb-es.com/html/inc/class_language.php on line 201
[Tutorial] Agregar Google Traductor a nuestro foro
Ignnacio Ausente   12 Mar, 2011, 6:18 pm
#1
Hola, saludos Wink.

Créditos: V!rus - Traducido por Ignnacio

Este tutorial es muy bueno por si tienen alguna comunidad oficial de alguna cosa en especial, entonces mucha gente llegara a buscar contenido y esto es lo que les falta Smile.

Empezamos el tutorial.

Vamos a:
1.
Código:
Estilos y Plantillas -> Plantillas
2.
Código:
Indice plantillas -> index_boardstats

[Imagen: ztc686.jpg]

Reemplazamos todo por esto:
Código PHP:
<?php 
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<
thead>
<
tr>
<
td class="thead" colspan="2">
<
div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<
div><strong>{$lang->boardstats}</strong></div>
</
td>
</
tr>
</
thead>
<
tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{
$whosonline}
{
$birthdays}
{
$forumstats}
<
tr>
<
td class="tfoot" colspan="2">
<
div class="float_left"><select name="translate"
style="height:20px; font-size:11px;"
onchange="javascript:window.location =
'http://www.google.com/translate_c?hl=tr&langpair=tr%7C' +
this.value + '&u=' + window.location.href;"
> <option
value
="">Language Selector</option> <option
value
="ar">Arabic</option> <option
value
="bg">Bulgarian</option> <option
value
="zh-CN">Chinese Simplified</option> <option
value
="zh-TW">Chinese Traditional</option> <option
value
="hr">Croatian</option> <option
value
="cs">Czech</option> <option value="da">Danish
</option> <option value="nl">Dutch</option>
<
option value="en">English</option> <option
value
="fi">Finnish</option> <option
value
="ph">Filipino</option> <option
value
="fr">French</option> <option
value
="de">German</option> <option
value
="il">Hebrew</option> <option
value
="el">Greek</option> <option
value
="it">Italian</option> <option
value
="id">Indonesian</option> <option
value
="lv">Latvian</option> <option
value
="lt">Lithuanian</option> <option
value
="hi">Hindi</option> <option
value
="ja">Japanese</option> <option
value
="ko">Korean</option> <option
value
="no">Norwegian</option> <option
value
="pl">Polish</option> <option
value
="pt">Portuguese</option> <option
value
="ro">Romanian</option> <option
value
="ru">Russian</option> <option
value
="es">Spanish</option> <option
value
="sv">Swedish</option> <option
value
="rs">Serbian</option> <option
value
="sk">Slovak</option> <option
value
="si">Slovenian</option> <option
value
="ua">Ukrainian</option> <option
value
="vn">Vietnamese</option> <option
value
="tr">Türkçe</option> </select></div><span class="smalltext">
<
div class="float_right">{$logoutlink}
<
a href="misc.php?action=markread">{$lang->markread}</a> |
<
a href="showteam.php">{$lang->forumteam}</a> |
<
a href="stats.php">{$lang->forumstats}</a>
</
div></span>
</
td>
</
tr>
</
tbody>
</
table>
<
br />

Guardan y vuelven a la lista.

Ahora vamos a nuestro foro y podremos visualizar lo siguiente:
[Imagen: 11t4aye.png]

Espero que les haya sido de ayuda.
storm   17 Feb, 2014, 7:42 am
#2
Alguna imagen¿?


Saludos
  
Powered By MyBB, © 2002-2024 MyBB Group.
Made with by Curves UI.