Кароче, Склифасовский, объясняю на пальцах:
1. код счётчика сохраняете в файле spy.txt
2. потом этот файл закидываете по фтп туда где файлы вашего форума
3. потом открываете блокнотом файл: ./Themes/ваша_тема/index.template.php
Для SMF 1:
4. Ищем:
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>
</body></html>';
}
5. Меняем на:
// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;', $context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' : '', '">', $txt['ajax_in_progress'], '</div>';
@include_once './spy.txt';
echo '
</body></html>';
}
Для SMF 2:
4. открыли? дальше ищете вот этот код:
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
</body></html>';
}
5. нашли? меняете его вот на этот код:
function template_html_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
@include_once './spy.txt';
echo '
</body></html>';
}