TalkBack!!! Лучший Скрипт Комментариев и Гостевой книги в Сети на Сегодня...


Меню для TalkBack Перевод документации
Скачать Языковой Файл RU
  • Началльные сведения, установка
  • Внедрение комментариев в сайт
  • Языковой Файл
  • Антиспам, Gravatars, Lightbox
  • Настройка скрипта
  • Расширения (моды, модификации)

  • Антиспам, Gravatars, Lightbox

    Проверка на спам
    Параметры настройки
    Akismet информация
    reCAPTCHA информация
    Фильтрация Spam слов
    Фильтрация плохих слов

    Проверка на спам

    Есть три опции для проверки комментариев на спам: Akismet, reCAPTCHA и Фильтрация Spam слов. Вы можете использовать один или два - три в любой комбинации.

    Параметры настройки

    Параметры настройки, которые я использую на всех моих сайтах, кроме демонстрационной версии TalkBack: включен Akismet, reCAPTCHA заблокирован, максимум разрешенных ссылок = 0, комментарии помеченные как спам отвергаются.

    За полтора года было заблокированно более чем 100,000 spam комментариев, но никогда не имел положительный комментарий, помеченный как spam. Иногда я получаю случайные неопределённые спам-комментарии. Так что эти параметры настройки обеспечивают защиту против spam и уменьшают число spam комментариев, которые я должен удалить.

    Я не использую captcha, потому что (1) это - неудобно посетителям, и (2) Akismet делает достаточно хорошо свою работу.

    Любой spam, не пойманный Akismet, будет автоматически одобрен. По этой причин сделана установка максимальных ссылок на 0,. Одна общая характеристика всего спама - то, что всегда есть по крайней мере одна ссылка в тексте комментария.

    У меня комментарии, помеченные Акисметом как спам, не принимаются. Если Вы получаете только несколько spam комментариев в день, эта установка не имеет особого значения. Но если Вы получаете сотни, рассматривать их - пипец.

    Akismet

    Включается через admin панель, параметры настройки конфигурации. Комментарии проверяются на предмет спама сервисом Akisment. Если Akisment помечает комментарий как spam, то он отвергается или ждет проверки модератором, в зависимости от параметров настройки конфигурации

    Почему сервис Akismet, вместо локального кода проверяющего spam? 1) Akismet выдаёт лучшие результаты, по сравнению с любым решением, которое установлено локально. 2) Не было никаких реальных проблем с Akismet. 3) Akismet алгоритмы постоянно меняются, так что динамически отставать от новых уловок спаммеров он не будет. 4) Время ответа от Akismet серверов незначительно. Если Akismet сервер понизился, TalkBack пометит комментарии для вашего одобрения.

    Допуская Akismet, вы должны получить API ключ, подписываясь в Wordpress. Кликните на кнопке "Just a username, please". Введите ключ в TalkBack admin > обслуживание > параметры настройки конфигурации.

    При испытании Akisment, я рекомендую установить “test IP” в admin панели параметров настройки конфигурации. Это предотвратит Akismet от ослабления вашего IP. Используйте любой недопустимый АДРЕС IP типа “ 255.255.255.256”.

    Вы можете легко проверить Akismet. Введите комментарий с именем автора “viagra-test-123”. Если Akismet работает, сценарий отобразит сообщение "комментарий поддержан для одобрения", а в admin панели разоблачит spam листинг.

    Когда Вы закончили проверку, убедитесь, что очистили поле IP в параметрах настройки конфигурации.

    reCAPTCHA

    To enable the captcha, signup at reCAPTCHA to get your public and private keys. Enter those keys into the TalkBack admin > maintenance > configuration settings.

    Чтобы допускать captcha, подпишитесь в reCAPTCHA, чтобы получить ваши общественные и частные клавиши(ключи). Введите те клавиши(ключи) в TalkBack admin > обслуживание > параметры настройки конфигурации.

    Why a service instead of captcha code on your local server? Less workload on your server (creating images consumes resources); I expect that, like Akismet, the reCAPTCHA team will keep up with spammers much faster than the authors of any other solutions; response time from the reCAPTCHA servers is negligible.

    If enabled via the admin configuration settings panel, TalkBack will obtain a captcha from the reCAPTCHA captcha server. When the comment is submitted reCAPTCHA checks to be sure the words were entered correctly.

    If the visitor has Javascript turned off, the default “red” captcha inside an Iframe with an “I’m a human” button will be displayed. It’s not very elegant but nothing can be done to style it diffferently.

    There are four standard captcha themes {examples}: red, white, clean and blackglass (created by recaptcha.net) and one custom theme (created by me). The theme is specified at the time TalkBack is initiated (see adding comments to your pages.

    You can also create your own custom theme. Go to reCAPTCHA API documentation. Scroll down to "Custom theming".

    Below is the default TalkBack custom theme in captcha.php. You can move things around, change the css, add background image, etc. But leve the id's and classes as is. The javascript uses the id's and the css uses the classes.

    if ($captcha_theme == 'custom') {
       print "
       <!-- Captcha checking -->
       <script type='text/javascript'>
          var RecaptchaOptions = {
             theme: 'custom',
             lang: 'en',
             custom_theme_widget: 'recaptcha_widget'
             };
       </script>
       <div id='recaptcha_widget' class='recaptcha_widget' style='display:none'>
          <div id='recaptcha_image' class='recaptcha_image'></div>
          <div id='captcha_actions' class='captcha_actions'>
             <div><a href='javascript:Recaptcha.reload()'><img src='images/captcha-reload.png' width='25' height='18' alt='' /></a></div>
             <div class='recaptcha_only_if_image'><a href=\"javascript:Recaptcha.switch_type('audio')\"><img src='images/captcha-audio.png' width='25' height='15' alt='' /></a></div>
             <div class='recaptcha_only_if_audio'><a href=\"javascript:Recaptcha.switch_type('image')\"><img src='images/captcha-text.png' width='25' height='15' alt='' /></a></div>
             <div><a href='javascript:Recaptcha.showhelp()'><img src='images/captcha-help.png' width='25' height='16' alt='' /></a></div>
          </div>
          
          <div id='response_line' class='response_line'>
             <span class='recaptcha_only_if_image'>{$lang['captcha_visual_prompt']}</span>
             <span class='recaptcha_only_if_audio'>{$lang['captcha_audio_prompt']}</span>
             <input type='text' id='recaptcha_response_field' class='recaptcha_response_field' name='recaptcha_response_field' />
          </div>
          <script type='text/javascript' src='http://api.recaptcha.net/challenge?k={$config['captcha_public']}&lang=en'></script>
          <div class='recaptcha_only_if_incorrect_sol' style='color:red'>Incorrect please try again</div>
    		      
          <script type='text/javascript'>
          window.onload = function() {
              Recaptcha.focus_response_field();
          }
          </script>
       </div>";
    } else {
    

    Фильтрация Spam слов

    I believe the only use for this is if Akismet is not catching some spam comments and those comments have certain words in common. You could enable spam words filtering to reject comments with those words. Rejected comments are held for your approval. To use spam words filtering:

    Check “Enable spam words checking” in the configuration settings panel.

    Copy spamwords.php and name it my-spamwords.php.

    Open my-spamwords.php. A partial list of it’s contents:

    // Email field words/phrases
    // $sw_email[] = '';
    
    // Subject field words/phrases
    // $sw_subject[] = '';
    
    // Author name field words/phrases
    // $sw_name[] = '';
    
    // Comment text area words/phrases
    $spamword[] = '$$$';
    $spamword[] = '[url';  // catches comments that have bbcode format links
    $spamword[] = 'adipren';
    $spamword[] = 'adult';
    $spamword[] = 'ambian';
    $spamword[] = 'ambiian';
    $spamword[] = 'barely legal';

    Add/delete entries in the $spamword table as needed. If you want to optimize efficiency after using it for a while, put phrases which are found most often at the top of the table.

    To do spam word checking on email, subject and/or author name fields, uncomment (remove the preceeding //) the respective table and add entries.

    Справка о gravatars

    Gravatar - маленькое изображение, созданное автором комментария и сохранённый на gravatar.com, который может быть показан с комментарием. Используется emaill автора , чтобы загрузить изображение от gravatar.com. Посетите gravatar.com, чтобы учиться больше о них.

    Включение отображения графических аватаров, и их размер управляется в параметрах настройки конфигурации. Если Вы разрешаете gravatars, Вы должны также установить стили для них. Некоторые значения стилей по умолчанию для gravatar, находятся в разделе Gravatar styles файла style.css, но они закомментированы. Пример размещение gravatar.

    Если автор не создал gravatar, используется unknown.jpg. Если Вы изменяете заданный по умолчанию размер в параметрах настройки конфигурации, Вы должны также изменить размеры images/unknown-40.jpg.

    О Lightbox

    Lightbox, a boxlike object having a uniformly lighted surface, as of ground glass, against which films or transparencies can be held for examination. That’s what the dictionary says. But it has been adopted as a name for any of a number of scripts that will place a small window on top of an opaque or translucent background on a web page. {example}.

    TalkBack uses the ThickBox implementation. It is versitile with ability to display single images, slide shows, in line DIV’s and Iframed pages.

    It is used in two ways. It displays admin configuration panel help pages and comment entry form help pages in Iframes. And, if you enable it in the configuration settings, it will display images (exluding emoticons) in comments in a lightbox window as illustrated in the above example.

    You can test it by enabling lightbox in the configuration settings then enter a comment with an image by clicking the “image” tag button. The “a” (link or anchor) HTML tag must be one of the allowed tags. As you will see the ThickBox script uses an HTML link to accomplish it’s magic instead of an img tag.

    If you want to use ThickBox in your other pages read the ThickBox documentation (link above). It is really pretty simple to use.

    Потенциальные конфликты lightbox

    Уже используете Thickbox?

    If you are already using Thickbox you must decide which version to use: the version you have already installed or the version that came with TalkBack. The Thickbox css included with TalkBack has been slightly modified to improve the appearance of the ThickBox window.

    If you want to use the version you have already installed, edit head-inc.php and remove or comment out the Thickbox code:

    <script type='text/javascript' src='".TB_PATH."includes/jquery-c.js'></script>
    <script type='text/javascript' src='".TB_PATH."includes/thickbox.js'></script>
    <link rel='stylesheet' type='text/css' href='".TB_PATH."styleThickbox.css' />

    If you want to use the version that came with TalkBack, change the paths in your HTML to point to the TalkBack versions of the CSS and javascript.

    Использование различного lightbox?

    If you are using a different lightbox implementation (Greybox, Lightbox JS, etc.), it may not coexist peacefully with ThickBox. Do a test to find out.

    Edit test.php. Add the HTML for your lightbox to the head section above the line:

    <?php include "head-inc.php"; ?>

    In the body of the page, before the TalkBack comments.php include, enter your lightbox HTML for an image link. Browse to test.php and see if your image link works. If it does, use the “image” button to enter an image link into a comment. Does it work? If so, do the help buttons work? If your existing lightbox works and Thickbox works then you are in good shape.

    If one or the other doesn’t work, move the HTML for your lightbox to below the head-inc.php line in the head section. If it still doesn't work you must decide either to switch to ThickBox entirely for your website or disable ThickBox in TalkBack.

    To disable ThickBox in TalkBack, comment out the head-inc.php lines as described in “Already using Thickbox” above.

    При использовании Javascript библиотеки?

    ThickBox uses the Jquery library. If you are using a different library, e.g. Prototype JS, for other applications the two libraries may conflict if used on the same page. Do some tests to find out. If they don’t work together and you want to have comments on a page that uses the other library, you will have to disable Thickbox as described in “Already using Thickbox” above.

    Фильтрация плохих слов

    You can disallow certain words in comment posts by turning on the bad words filter via configuration maintenance and editing the bad words file which is badwords.php. The badwords array in that file looks like this:

    $badword = array(
       array("badword1","%@#*!"),
       array("badword2","*****"),
       array("badword3","bleep")
    ); 

    The word on the left will be replaced with the string of characters on the right. Change or delete the example entries and insert new entries for words you want to filter. All entries in the array except the last must be followed by a comma.


    clix - социальные закладки
    Переводим документацию TalkBack. Активные переводчики (и ссылки на их сайт) будут включены в файлы скрипта и документации. Переводы помещайте в комментариях. Абзац на английском, и следом его перевод. Так же принимаются исправления, и более логичные варианты.
    Кмментариев - 7
    PetrDriver – Russia
    October 01, 2010 - 10:34

    Подполковник вызывает к себе солдата:
    - Рядовой Сидоров, ты в загробную жизнь веришь?
    - ???
    - Тебя на КПП бабушка ждет, к которой ты две недели назад на похороны ездил.

    August 26, 2009 - 03:55

    Любопытно, а есть хоть кто-то, кто не согласен с автором? :)

    кaпpиз – Россия
    August 25, 2009 - 16:33

    Вот про все это я почитал с огромным интересом. И прочитал бы еще больше! Планируете и дальше писать на эту же тему? Спасибо

    Константин – Россия
    August 24, 2009 - 14:44

    Да уж..., а я тут за свои годы, как-то привык к этому, даже внимания на это не обращаю :) Вы тоже привыкнете :)

    Максим Семин – Россия
    July 27, 2009 - 23:28

    Радует, что ваш блог постоянно развивается. Такие посты только прибавляют популярности.

    Руслан Соколов – Россия
    July 14, 2009 - 22:28

    Автору нужно памятник постаить за такое!:)

    Максим Семин – Россия
    July 04, 2009 - 21:17

    Люблю тексты в таком духе! Премного благодарен :)

    Оставьте Комментарий




    ?
    ? ?
    ?

    Замечательный TalkBack
    Поиск по сайту
     

    Скрипт переводили

    Мокосеев Александр Николаевич - автор проекта