Быстрый лёгкий надёжный форумный движок
Вы не вошли.
Страницы 1
Тема закрыта
Подскажите как можно вставить счетчики на форум такие как rambler,mail, bigmir?
include/template/main.tpl
вставляешь в любое место свой счетчик. лучше всего поставить перед </body>
Куда нужно засунуть код, чтоб кнопка появилась под © Copyright 2002–2005 Rickard Andersson
Куда бы я не втулил все равно не видно её.. Не понимаю почему. Подскажите, а ?
Chika
у меня сделано это в footer.php так:
...
?>
<p class="conr">Powered by <a href="http://www.punbb.org/">PunBB</a><?php if ($pun_config['o_show_version'] == '1') echo ' '.$pun_config['o_cur_version']; ?><br />© Copyright 2002–2005 Rickard Andersson</p>
<?php
// Display debug info (if enabled/defined)
// START Visman - время генерации выводим всегда
// if (defined('PUN_DEBUG'))
// {
// Calculate script generation time
list($usec, $sec) = explode(' ', microtime());
$time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start);
echo "\t\t\t".'<p class="conr">[ Generated '.$time_diff.' sec., '.$db->get_num_queries().' queries ]</p>'."\n";
// }
// END Visman - время генерации выводим всегда
if (!defined('PUN_ADMIN_CONSOLE'))
{
?>
<p class="conr"><script type="text/javascript"><!--
document.write("<a href='http://www.liveinternet.ru/click' "+
"target=_blank><img src='http://counter.yadro.ru/hit?t23.6;r"+
escape(document.referrer)+((typeof(screen)=="undefined")?"":
";s"+screen.width+"*"+screen.height+"*"+(screen.colorDepth?
screen.colorDepth:screen.pixelDepth))+";u"+escape(document.URL)+
";"+Math.random()+
"' alt='' title='LiveInternet' "+
"border=0 width=88 height=15><\/a>")//--></script></p>
<?php
}
?>
<div class="clearer"></div>
</div>
</div>
</div>
<?php
// End the transaction
$db->end_transaction();
// Display executed queries (if enabled)
if (defined('PUN_SHOW_QUERIES'))
display_saved_queries();
$tpl_temp = trim(ob_get_contents());
$tpl_main = str_replace('<pun_footer>', $tpl_temp, $tpl_main);
ob_end_clean();
// END SUBST - <pun_footer>
// Close the db connection (and free up any result data)
$db->close();
// Spit out the page
exit($tpl_main);
Вставлен счетчик от www.liveinternet.ru, в админке не выводится.
Посмотреть как выглядит можно у меня на форуме.
Спасибо!
Страницы 1
Тема закрыта